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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot//help.php
<?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. */

include("./_include/core/main_start.php");
include("./_include/current/menu_section.class.php");
if(!Common::isOptionActive('help')) {
    redirect(Common::toHomePage());
}
class CHelp extends CHtmlBlock
{

	var $message;

	function parseBlock(&$html)
	{

        $lang = Common::getOption('lang_loaded', 'main');

        $sql = 'SELECT * FROM help_topic
            WHERE lang = ' . to_sql($lang) . '
            ORDER BY id ASC';
		DB::query($sql);
		$i = 1;
		while ($row = DB::fetch_row())
		{
			$html->setvar("id", $row['id']);
			$html->setvar("name", $row['name']);
			if ($i % 3 == 0)
			{
				$html->parse("topic_column", false);
			}
			else
			{
				$html->setblockvar("topic_column", "");
			}
			$html->parse("topic", true);
			$i++;
		}

		$t = get_param('t', 0);
		$topic = DB::row("SELECT * FROM help_topic WHERE id=" . to_sql($t, "Number") . "");
        if($topic) {
            if($topic['lang'] != $lang) {
                redirect('help.php');
            }
            $html->setvar('topic_name', $topic['name']);
        }

		DB::query("SELECT id, name, text FROM help_answer WHERE topic_id=" . to_sql($t, "Number") . " ORDER BY id");
        $parse = false;
		while ($row = DB::fetch_row())
		{
			$html->setvar("id", $row['id']);
			$html->setvar("name", $row['name']);
			$html->setvar("text", nl2br($row['text']));

			$html->parse("show", true);
			$html->parse("hide", true);
			$html->parse("question", true);
            $parse = true;
		}

        if($parse) {
            $html->parse('show_hide');
        }

		parent::parseBlock($html);
	}
}

$page = new CHelp("", $g['tmpl']['dir_tmpl_main'] . "help.html");
$header = new CHeader("header", $g['tmpl']['dir_tmpl_main'] . "_header.html");
$mailMenu = new CMenuSection('menu_help', $g['tmpl']['dir_tmpl_main'] . "_menu_help.html");
$mailMenu->setActive('help');
$page->add($mailMenu);
$page->add($header);
$footer = new CFooter("footer", $g['tmpl']['dir_tmpl_main'] . "_footer.html");
$page->add($footer);

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

?>

Youez - 2016 - github.com/yon3zu
LinuXploit