| 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/m/ |
Upload File : |
<?php
/* (C) Websplosion LLC, 2001-2021
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/pony_start.php");
User::accessCheckToProfile();
$user_id = get_param('user_id', guid());
$isAjaxRequest = get_param('ajax', 0);
$guid = guid();
if ($isAjaxRequest && $guid) {
$cmd = get_param('cmd');
$responseAjax = false;
if ($cmd == 'block_user') {
$responseAjax = User::blockFull($user_id);
} elseif ($cmd == 'unblock_user') {
User::blockRemoveAll($guid, $user_id);
$responseAjax = true;
} elseif ($cmd == 'like_user') {
MutualAttractions::setWantToMeet($user_id, 'Y');
$responseAjax = true;
} elseif ($cmd == 'unlike_user') {
MutualAttractions::unlike($user_id);
$responseAjax = true;
} elseif ($cmd == 'report_user') {
$responseAjax = User::sendReport();
}
die(getResponseDataAjaxByAuth($responseAjax));
}
$g['to_head'][] = '<link rel="stylesheet" href="'.$g['tmpl']['url_tmpl_mobile'].'css/home.css" type="text/css" media="all"/>';
$optionTmplSet = Common::getOption('set', 'template_options');
$page = new CHtmlBlock("", $g['tmpl']['dir_tmpl_mobile'] . "profile_view.html");
$type = get_param("display", "profile");
//if($type == '') {
//$type = 'profile_info';
//}
if($user_id == '') {
$user_id = guid();
}
// wall mode - redirect to wall.php
$display = get_param('display', 'profile');
if ($optionTmplSet != 'urban'
&& (Wall::isProfileWall($display)
&& (Wall::isOnlySeeFriends($user_id) || $display == 'wall')
&& count($_GET) != 0)) {
redirect('wall.php?uid=' . $user_id);
}
if ($type == "info") $list = new CUsersInfo("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_list_users_info.html");
elseif ($type == "gallery") $list = new CUsersGallery("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_list_users_gallery.html");
elseif ($type == "list") $list = new CUsersList("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_list_users_list.html");
elseif ($type == "profile" || $type == "profile_info") {
$tmpl = $g['tmpl']['dir_tmpl_mobile'] . '_profile.html';
if ($optionTmplSet == 'urban'){
$tmpl = array('main' => $g['tmpl']['dir_tmpl_mobile'] . '_profile.html');
if (!Common::isOptionActive('profile_visitor_no_block_report', 'template_options')) {
$tmpl['user_block_report'] = $g['tmpl']['dir_tmpl_mobile'] . '_user_block_report.html';
}
}
if ($user_id != $g_user['user_id'] && Common::isOptionActive('profile_visitor_charts', 'template_options')) {
$tmpl['profile_charts'] = $g['tmpl']['dir_tmpl_mobile'] . '_profile_charts.html';
}
$tmplProfileInfo = Common::getOption('display_info_page_template', 'template_options');
if ($type == "profile_info" && $tmplProfileInfo) {
$tmpl = $g['tmpl']['dir_tmpl_mobile'] . $tmplProfileInfo;
}
$list = new CUsersProfile("users_list", $tmpl);
} elseif ($type == "photo") $list = new CHtmlUsersPhoto("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_photo.html");
else redirect("users_online.php");
$list->m_city_prefix = "| ";
$list->m_sql_where = "u.user_id=" . to_sql($user_id, 'Number') . "";
$list->m_is_me = ($user_id == $g_user['user_id']) ? true : false;
if ($user_id == $g_user['user_id'] && Common::isOptionActive('profile_menu_the_same_user_menu', 'template_options')) {
$userMenu = new CUserMenu('profile_user_menu', $g['tmpl']['dir_tmpl_mobile'] . '_profile_view_menu.html');
$userMenu::setType('profile_view');
$list->add($userMenu);
}
$page->add($list);
$header = new CHeader("header", $g['tmpl']['dir_tmpl_mobile'] . "_header.html");
$page->add($header);
$footer = new CFooter("footer", $g['tmpl']['dir_tmpl_mobile'] . "_footer.html");
$page->add($footer);
if (Common::isParseModule('friends_list')) {
$friends_list = new CFriendsList("friends_list", $g['tmpl']['dir_tmpl_mobile'] . "_friends_list.html");
$friends_list->user_id = $user_id;
$page->add($friends_list);
}
if (Common::isParseModule('profile_view_menu')) {
$isParseViewMenu = true;
if ($optionTmplSet == 'urban' && $type == "profile_info") {
$isParseViewMenu = false;
}
if ($isParseViewMenu) {
include("./_include/current/profile_view_menu.php");
$profile_view_menu = new CProfileViewMenu("profile_view_menu", $g['tmpl']['dir_tmpl_mobile'] . "_profile_view_menu.html");
$profile_view_menu->user_id = $user_id;
$page->add($profile_view_menu);
}
}
if (Common::isParseModule('user_menu')) {
$user_menu = new CUserMenu("user_menu", $g['tmpl']['dir_tmpl_mobile'] . "_user_menu.html");
if ($optionTmplSet == 'urban') {
$header->add($user_menu);
} else {
$page->add($user_menu);
}
}
loadPageContentAjax($page);
include("./_include/core/main_close.php");