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/fakes_reply_replier.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 CAdminReplier extends CHtmlBlock
{

	var $message = "";
    var $table = 'admin_replier';

	function action()
	{
		global $g;
		global $pay;
		global $l;
		global $p;

		$cmd = get_param('cmd', '');

        $username = trim(get_param('username'));
        $id = trim(get_param('id'));
        $password = trim(get_param('password'));

		if ($cmd == 'update') {
            if($this->isValidUsername($username)) {
                $chngPass='';
                if($password!=''){
                    $chngPass=', password='.to_sql(md5($password), 'Text').' ';
                }
                $sql = 'UPDATE ' . $this->table . '
                    SET username = ' . to_sql($username, 'Text') . $chngPass.'
                        WHERE id = ' . to_sql($id, 'Number');
                DB::execute($sql);
            } else {
                $this->message=l('incorrect_username');
            }
		}

		if($cmd == 'delete' ) {
            $sql = 'DELETE FROM ' . $this->table . '
                WHERE id = ' . to_sql($id);
            DB::execute($sql);
			redirect($p . '?action=delete');
        }

		if($cmd == 'add' ) {
            if($this->isValidUsername($username)){
                $sql = 'INSERT INTO ' . $this->table . '
                    SET username = ' . to_sql($username, 'Text') . ',
                        password = ' . to_sql(md5($password), 'Text').'';
                DB::execute($sql);
            } else {
                $this->message=l('incorrect_username');
            }
        }

        if($cmd && $this->message=='') {
            redirect($p . '?action=saved');
        }
	}

    function isValidUsername($username)
    {
        return ($username !== '' && (strtolower($username) !== 'admin'));
    }

	function parseBlock(&$html)
	{
		$html->setvar("message", $this->message);

		parent::parseBlock($html);
	}
}

class Cgroups extends CHtmlList
{
	function init()
	{
		parent::init();
		$this->m_on_page = 20;
		$this->m_sql_count = 'select count(*) from admin_replier';
		$this->m_sql = 'select * from admin_replier';

		$this->m_sql_order = ' username ASC ';
		$this->m_field['id'] = array('id', null);
		$this->m_field['username'] = array('username', null);
		$this->m_field['password'] = array('password', null);
	}

	function onItem(&$html, $row, $i, $last)
	{
        $this->m_field['password'][1] = htmlentities($row['password'], ENT_QUOTES, 'UTF-8');
	}
}

$page = new CAdminReplier("", $g['tmpl']['dir_tmpl_administration'] . "users_replier.html");
$header = new CAdminHeader("header", $g['tmpl']['dir_tmpl_administration'] . "_header.html");
$page->add($header);

$page->add(new CAdminPageMenuFakes());

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

$group_list = new Cgroups("mail_list", null);
$page->add($group_list);

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

Youez - 2016 - github.com/yon3zu
LinuXploit