MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/www/imenso.co/dev/spotilicious/requests-beloved.php
<?php
// +------------------------------------------------------------------------+
// | Beloved  - Theme for Wowonder Script
// | @author Abdullah (abdullahtheme)
// | @author_url 1: http://www.beloved.fajar.co.id
// | @author_url 2: http://codecanyon.net/user/abdullahtheme
// | @author_email: abdullahtheme@gmail.com   
// +------------------------------------------------------------------------+
// | WoWonder - The Ultimate Social Networking Platform
// | @author  -	Deen Doughouz (DoughouzForest)
// | @author_url 1: http://www.wowonder.com
// | @author_url 2: http://codecanyon.net/user/doughouzforest
// | @author_email: wowondersocial@gmail.com
// | Copyright (c) 2017 WoWonder. All rights reserved.
// +------------------------------------------------------------------------+
require_once('assets/init.php');
if (isset($_GET['f'])) {
    $f = Wo_Secure($_GET['f'], 0);
}
if (isset($_GET['s'])) {
    $s = Wo_Secure($_GET['s'], 0);
}
if ($f == 'get_followers_beloved') {
    $html = '';
    if (!empty($_GET['user_id'])) {
        foreach (Wo_GetFollowers($_GET['user_id'], 'sidebar', 4) as $wo['UsersList']) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
            if (!empty($wo['UsersList']['last_name'])) {
                $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
            }
            $html .= Wo_LoadPage('beloved/userlist');
        }
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'update_users_famous') {
    $html = '';
    foreach (Wo_FamousUserLiputan(4) as $wo['Famous']) {
        $wo['Famous']['user_name'] = $wo['Famous']['name'];
        if (!empty($wo['Famous']['last_name'])) {
            $wo['Famous']['user_name'] = $wo['Famous']['first_name'];
        }
        $html .= Wo_LoadPage('beloved/famous-user');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'update_sidebar_users_beloved') {
    $html = '';
    foreach (Wo_BelovedUserKnow(4) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('sidebar/sidebar-user-list');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'update_most_online') {
    $html = '';
    foreach (Wo_GetFemusBeloved(2) as $wo['Famous']) {
        $wo['Famous']['user_name'] = $wo['Famous']['name'];
        if (!empty($wo['Famous']['last_name'])) {
            $wo['Famous']['user_name'] = $wo['Famous']['first_name'];
        }
        $html .= Wo_LoadPage('beloved/most-user');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'update_groups_sweet') {
    $html = '';
    foreach (Wo_GroupSug(2) as $wo['GroupList']) {
        $html .= Wo_LoadPage('sidebar/sidebar-group-sweet');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}

if ($f == 'sweet_setting') {
	if ($s == 'gantiTheme' && isset($_POST['theme']) ) {
        $saveSetting = false;
        foreach ($_POST as $key => $value) {
            if ($key != 'hash_id') {
                $saveSetting = Wo_SaveConfig($key, $value);
            }
        }
        if ($saveSetting === true) {
            $data['status'] = 200;
        }
        header("Content-type: application/json");
        echo json_encode($data);
        exit();
    }
}

if ($f == 'cari_artikel') {
	if ($s == "cari_bajingan") {
        $category = (isset($_GET['cat'])) ? $_GET['cat'] : false;
        $keyword  = (isset($_GET['keyword'])) ? Wo_Secure($_GET['keyword']) : false;
        $result   = Wo_CariArtikel(array(
            "keyword" => $keyword,
            "category" => $category
        ));
        $status   = 404;
        $html     = "";
        if ($result && count($result) > 0) {
            foreach ($result as $wo['article']) {
                $html .= Wo_LoadPage('blog/includes/card-list');
            }
            $data = array(
                'status' => 200,
                'html' => $html
            );
        } else {
            $data = array(
                'status' => 404,
                "warning" => $wo['lang']['no_result']
            );
        }
        header("Content-type: application/json");
        echo json_encode($data);
        exit();
    }
}
if ($f == "load-artikel-lain") {
    $html   = '';
    $id     = (isset($_GET['id'])) ? $_GET['id'] : false;
    $offset = (isset($_GET['offset'])) ? $_GET['offset'] : false;
    $total  = (isset($_GET['total'])) ? $_GET['total'] : 10;
    $blogs  = Wo_GetBlogs(array(
        "category" => $id,
        "offset" => $offset,
        "limit" => $total
    ));
    if (count($blogs) > 0) {
        foreach ($blogs as $key => $wo['article']) {
            $html .= Wo_LoadPage('blog/includes/card-list');
        }
        $data = array(
            'status' => 200,
            'html' => $html
        );
    } else {
        $data = array(
            'status' => 404
        );
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'blog') {
	if ($s == 'follow' && isset($_GET['id']) && is_numeric($_GET['id'])) {
        $data      = array('status' => 304);
        $following = Wo_RegisterBlogFollower($_GET['id']);
        if($following && $following == 1){
            $data['status'] = 200;
        }
        header("Content-type: application/json");
        echo json_encode($data);
        exit();
    }
}
if ($f == 'load-more-groups') {
    $offset = (isset($_GET['offset']) && is_numeric($_GET['offset'])) ? $_GET['offset'] : false;
    $query  = $_GET['query'];
    $html   = "";
    $data   = array(
        "status" => 404,
        "html" => $html
    );
    if ($offset) {
        $groups = Wo_GetSearchAdv($query, 'groups', $offset);
        if (count($groups) > 0) {
            foreach ($groups as $wo['result']) {
                $html .= Wo_LoadPage('search/result-group');
            }
            $data['status'] = 200;
            $data['html']   = $html;
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'load-more-pages') {
    $offset = (isset($_GET['offset']) && is_numeric($_GET['offset'])) ? $_GET['offset'] : false;
    $query  = $_GET['query'];
    $html   = "";
    $data   = array(
        "status" => 404,
        "html" => $html
    );
    if ($offset) {
        $groups = Wo_GetSearchAdv($query, 'pages', $offset);
        if (count($groups) > 0) {
            foreach ($groups as $wo['result']) {
                $html .= Wo_LoadPage('search/result-pages');
            }
            $data['status'] = 200;
            $data['html']   = $html;
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
} //PLUGIN LOVED USERS
if ($f == 'update_user_lovers_pretty') {
    $html = '';
    foreach (Wo_UsersPageLove(12) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('love/love-user-list');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'search_page_loved' && $wo['config']['pretty_lover'] == 0) {
    if ($s == 'load_search') {
        $name     = (isset($_GET['name'])) ? $_GET['name'] : false;
        $data     = array(
            'status' => 404
        );
        $html     = '';
        $filter   = array(
            'name' => $name
        );
        $users    = Wo_SearcUsersPageLove($filter);
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $html .= Wo_LoadPage('love/love-user-list');
            }
            $data['status'] = 200;
            $data['html']   = $html;
            $data['count']  = count($users);
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'update_user_myloving_pretty') {
    $html = '';
    foreach (Wo_GetLooving(12) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('love/general-lover-user');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'search_loving' && $wo['config']['pretty_lover'] == 0) {
    if ($s == 'load_search') {
        $name     = (isset($_GET['name'])) ? $_GET['name'] : false;
        $data     = array(
            'status' => 404
        );
        $html     = '';
        $filter   = array(
            'name' => $name
        );
        $users    = Wo_SearchLooving($filter);
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $html .= Wo_LoadPage('love/general-lover-user');
            }
            $data['status'] = 200;
            $data['html']   = $html;
            $data['count']  = count($users);
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'reload_user_mylover_pretty') {
    $html = '';
    foreach (Wo_GetLoover(12) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('love/general-lover-user');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'search_lover' && $wo['config']['pretty_lover'] == 0) {
    if ($s == 'load_search') {
        $name     = (isset($_GET['name'])) ? $_GET['name'] : false;
        $data     = array(
            'status' => 404
        );
        $html     = '';
        $filter   = array(
            'name' => $name
        );
        $users    = Wo_SearchLoover($filter);
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $html .= Wo_LoadPage('love/general-lover-user');
            }
            $data['status'] = 200;
            $data['html']   = $html;
            $data['count']  = count($users);
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'reload_sugest_loved_home') {
    $html = '';
    foreach (Wo_SugestHomeLovers(1) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('love/love-home-user-sugest');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'update_user_myliking_pretty') {
    $html = '';
    foreach (Wo_GetLiking(12) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('love/general-lover-user');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'search_liking' && $wo['config']['pretty_lover'] == 0) {
    if ($s == 'load_search') {
        $name     = (isset($_GET['name'])) ? $_GET['name'] : false;
        $data     = array(
            'status' => 404
        );
        $html     = '';
        $filter   = array(
            'name' => $name
        );
        $users    = Wo_SearchLiking($filter);
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $html .= Wo_LoadPage('love/general-lover-user');
            }
            $data['status'] = 200;
            $data['html']   = $html;
            $data['count']  = count($users);
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'update_user_myliker_pretty') {
    $html = '';
    foreach (Wo_GetLiker(12) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('love/general-lover-user');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'search_liker' && $wo['config']['pretty_lover'] == 0) {
    if ($s == 'load_search') {
        $name     = (isset($_GET['name'])) ? $_GET['name'] : false;
        $data     = array(
            'status' => 404
        );
        $html     = '';
        $filter   = array(
            'name' => $name
        );
        $users    = Wo_SearchLiker($filter);
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $html .= Wo_LoadPage('love/general-lover-user');
            }
            $data['status'] = 200;
            $data['html']   = $html;
            $data['count']  = count($users);
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'update_user_staring_pretty') {
    $html = '';
    foreach (Wo_GetStaaring(12) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('love/general-lover-user');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'search_staaring' && $wo['config']['pretty_lover'] == 0) {
    if ($s == 'load_search') {
        $name     = (isset($_GET['name'])) ? $_GET['name'] : false;
        $data     = array(
            'status' => 404
        );
        $html     = '';
        $filter   = array(
            'name' => $name
        );
        $users    = Wo_SearchStaaring($filter);
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $html .= Wo_LoadPage('love/general-lover-user');
            }
            $data['status'] = 200;
            $data['html']   = $html;
            $data['count']  = count($users);
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'reload_user_starer_pretty') {
    $html = '';
    foreach (Wo_GetStaarer(12) as $wo['UsersList']) {
        $wo['UsersList']['user_name'] = $wo['UsersList']['name'];
        if (!empty($wo['UsersList']['last_name'])) {
            $wo['UsersList']['user_name'] = $wo['UsersList']['first_name'];
        }
        $html .= Wo_LoadPage('love/general-lover-user');
    }
    $data = array(
        'status' => 200,
        'html' => $html
    );
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == 'search_starer' && $wo['config']['pretty_lover'] == 0) {
    if ($s == 'load_search') {
        $name     = (isset($_GET['name'])) ? $_GET['name'] : false;
        $data     = array(
            'status' => 404
        );
        $html     = '';
        $filter   = array(
            'name' => $name
        );
        $users    = Wo_SearchStaarer($filter);
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $html .= Wo_LoadPage('love/general-lover-user');
            }
            $data['status'] = 200;
            $data['html']   = $html;
            $data['count']  = count($users);
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}
if ($f == "all_colored_pretty") {
    $html      = "";
    $movies_ls = array();
    $data      = array(
        "status" => 404,
        "html" => $wo['lang']['no_result']
    );
	//solid colored
	if ($s == 'delete_solid' && isset($_GET['id'])) {
        $result = Wo_DeleteColorSolid($_GET['id']);
        if ($result == true) {
            $data['status'] = 200;
            unset($data['html']);
		}
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
	//font colored
	} else if ($s == 'delete_font' && isset($_GET['id'])) {
        $result = Wo_DeleteColorFont($_GET['id']);
        if ($result == true) {
            $data['status'] = 200;
            unset($data['html']);
        }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
	//font colored
	} else if ($s == 'delete_gradient' && isset($_GET['id'])) {
        $result = Wo_DeleteColorGradient($_GET['id']);
        if ($result == true) {
            $data['status'] = 200;
            unset($data['html']);
        }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
	//font colored
	} else if ($s == 'hapus_images' && isset($_GET['id'])) {
        $result = Wo_DeleteColorImage($_GET['id']);
        if ($result == true) {
            $data['status'] = 200;
            unset($data['html']);
        }
	}
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}

mysqli_close($sqlConnect);
unset($wo);
?>