| 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/ |
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/main_start.php");
$optionTmplName = Common::getTmplName();
if ($optionTmplName != 'edge') {
Common::toHomePage();
}
if(!Common::isOptionActive('contact_blocking')) {
Common::toHomePage();
}
$guid = guid();
$groupId = Groups::getParamId();
if (!$groupId) {
Common::toHomePage();
}
$groupInfo = Groups::getInfoBasic($groupId);
if (!$groupInfo) {
Common::toHomePage();
}
if ($groupInfo['user_id'] != $guid) {
Common::toHomePage();
}
class CPage extends CHtmlBlock
{
function init()
{
}
function parseBlock(&$html)
{
$guid = guid();
$uid = User::getParamUid(0);
$ajax = get_param('ajax');
$optionTmplName = Common::getTmplName();
$groupId = Groups::getParamId();
if (!$groupId) {
Common::toHomePage();
}
$groupInfo = Groups::getInfoBasic($groupId);
$isPage = $groupInfo['page'];
$page = get_param_int('page');
$page = $page < 1 ? 1 : $page;
if ($isPage) {
$pageDescription = '';
} else {
$pageDescription = '';
}
$pageUrl = Common::pageUrl('group_block_list', $groupId);
$vars = array('page_title' => l('page_title'),
'page_description' => $pageDescription,
'url_pages' => $pageUrl,
'page_number' => $page,
'page_user_id' => $guid,
'page_param' => 'page',
'page_type' => 'group_block_list',
'page_filter' => 0,
'page_guid' => $guid,
'group_id' => $groupId
);
$pagerOnPage = Common::getOptionInt('list_people_number_users', "{$optionTmplName}_general_settings");
$mOnBar = Common::getOption('usersinfo_pages_per_list', 'template_options');
if (!$mOnBar) {
$mOnBar = 5;
}
$limit = (($page - 1) * $pagerOnPage) . ',' . $pagerOnPage;
$block = 'list_photos';
$class = "Template{$optionTmplName}";
$typeOrderDefault = Common::getOption('list_photos_type_order', "{$optionTmplName}_general_settings");
$itemsTotal = Groups::getNumberBlocked($groupId);
if ($ajax) {
$html->setvar('num_total', $itemsTotal);
} else {
$html->assign('', $vars);
TemplateEdge::parseColumn($html, $uid ? $uid : $guid);
}
$profileDisplayType = Common::getOption('list_people_display_type', "{$optionTmplName}_general_settings");
$block = "list_people_{$profileDisplayType}";
$html->parse($block, false);
$rows = Groups::getListBlocked($groupId, $limit);
if ($rows) {
$numberRow = Common::getOptionInt('list_people_number_row', "{$optionTmplName}_general_settings");
foreach ($rows as $key => $row) {
$class::parseUser($html, $row, $numberRow, $profileDisplayType, 'users_list_item');
$html->parse('users_list_item');
}
Common::parsePagesListUrban($html, $page, $itemsTotal, $pagerOnPage, $mOnBar, $pageUrl);
} else {
$html->parse('list_noitems');
}
parent::parseBlock($html);
}
}
$isAjaxRequest = get_param('ajax');
$tmplList = getPageCustomTemplate('groups_block_list_template.html', 'groups_block_list_template');
if ($isAjaxRequest) {
$tmplList['main'] = $g['tmpl']['dir_tmpl_main'] . 'search_results_ajax.html';
unset($tmplList['profile_column_left']);
unset($tmplList['profile_column_right']);
}
$page = new CPage("", $tmplList);
if($isAjaxRequest) {
getResponsePageAjaxByAuthStop($page, guid());
}
$header = new CHeader("header", $g['tmpl']['dir_tmpl_main'] . "_header.html");
$page->add($header);
$footer = new CFooter("footer", $g['tmpl']['dir_tmpl_main'] . "_footer.html");
$page->add($footer);
include('./_include/core/main_close.php');