403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/chatme24.com/wwwroot/update/update-chameleon-4.6-4.7/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/update/update-chameleon-4.6-4.7//users_viewed_me.php
<?php
/* (C) Websplosion LTD., 2001-2014

IMPORTANT: This is a commercial software product
and any kind of using it must agree to the Websplosion's license agreement.
It can be found at http://www.chameleonsocial.com/license.doc

This notice may not be removed from the source code. */

$area = "login";
include("./_include/core/main_start.php");

CustomPage::setSelectedMenuItemByTitle('column_narrow_profile_visitors');

if (Common::isOptionActive('column_narrow_menu', 'template_options')) {
    $optionTmplName = Common::getOption('name', 'template_options');
    $sql = 'SELECT `status`
              FROM `pages`
             WHERE `menu_title` = "column_narrow_profile_visitors"
               AND `set` = ' . to_sql($optionTmplName) . '
               AND `lang` = "default"';
    if (!DB::result($sql)) {
        Common::toHomePage();
    }
}

$where = "u.user_id!=" . to_sql($g_user['user_id'], "Number") . "";
$order = "v.id DESC";

/* URBAN */
$fromAddCustom = '';
if (Common::getOption('viewed_me_custom_settings', 'template_options')) {
    $isAjaxRequest = get_param('ajax');
    $id = get_param('id');
    if ($isAjaxRequest && $id) {
        $fromAddCustom = ' AND v.id < ' . to_sql($id, 'Number');
    }
} elseif(UserFields::isActive('orientation') && Common::isOptionActive('user_choose_default_profile_view')){
    $gender = get_param('gender');
    $isSearch = User::isListOrientationsSearch();
    if (!$gender && $isSearch) {
        $gender = guser('default_online_view');
    }
    if ($gender && $gender != 'B') {
        $where .= ' AND u.gender = ' . to_sql($gender);
    }
}
/* URBAN */

$from_add = " JOIN users_view AS v ON (u.user_id=v.user_from AND v.user_to=" . to_sql($g_user['user_id'], "Number") . $fromAddCustom . ")";

DB::execute("UPDATE users_view SET new='N' WHERE user_to=" . to_sql($g_user['user_id'], "Number") . "");
if(DB::affected_rows()) {
    DB::execute("UPDATE user SET new_views=0 WHERE user_id=" . to_sql($g_user['user_id'], "Number") . "");
}

$template = 'users_list_base.html';
$templateTmpl = Common::getOptionTemplate('user_list_template');
if ($templateTmpl) {
    $template =  $templateTmpl;
}
$page = Users_List::show($where, $order, $from_add, $template);

include("./_include/core/main_close.php");

Youez - 2016 - github.com/yon3zu
LinuXploit