| 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/_include/current/ |
Upload File : |
<?php
class CMenuSection extends CHtmlBlock
{
var $active = '';
function setActive($active)
{
$this->active = $active;
}
function parseBlock(&$html)
{
if($this->active) {
$html->setvar($this->active . '_active', '_active', true);
$html->setvar('button_oryx_' . $this->active . '_active', 'active_btn', true);
}
$favorite = DB::count('users_favorite', '`user_from` = ' . to_sql(guid(), 'Number'));
$fans = DB::count('users_interest', '`user_to` = ' . to_sql(guid(), 'Number'));
$interest = DB::count('users_interest', '`user_from` = ' . to_sql(guid(), 'Number'));
if (Common::isOptionActive('mail')) {
$html->parse('mail_on');
}
if ($favorite > 0 && Common::isOptionActive('favorite_add')) {
$html->parse('favorite_on');
}
if ($fans > 0) {
$html->parse('fans_on');
}
if ($interest > 0) {
$html->parse('interest_on');
}
if (Common::isOptionActive('music'))
{
$html->parse("my_music", true);
}
if (Common::isOptionActive('blogs'))
{
$html->parse("my_blog", true);
}
if(Common::isOptionActive('wink')) {
$html->parse('wink_on', false);
}
if($this->active == 'gallery_admin') {
$html->parse('head');
} else {
$html->parse('head2');
}
if(Common::isOptionActive('news')) {
$html->parse('news_on');
}
if(Common::isOptionActive('help')) {
$html->parse('help_on');
}
if(Common::isOptionActive('contact')) {
$html->parse('contact_on');
}
if (Common::isOptionActive('adv_search') || Common::isOptionActive('saved_searches')) {
$html->parse('menu_search_basic', false);
}
if(Common::isOptionActive('adv_search')) {
$html->parse('menu_search_advanced', false);
}
if (Common::isOptionActive('saved_searches')) {
$html->parse('menu_search_saved', false);
}
parent::parseBlock($html);
}
}