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/look_message_im.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. */

#$area = "login";
include("../_include/core/administration_start.php");

class CHon extends CHtmlBlock
{
	function action()
	{
		global $g;
		global $g_user;
        global $p;

		$action = get_param('action');
		$id = get_param_int('id');
		if($action=='delete' && $id){
            $uid = get_param_int('user_id');
            $_GET['mid'] = $id;
            $_GET['from_me'] = 1;
            $g_user['user_id'] = $uid;
            CIm::deleteMessages();

            CIm::closeEmptyIm();

			redirect($p."?user_id={$uid}");
		}
	}
	function parseBlock(&$html)
	{
	 	global $g;
		global $l;
		global $g_user;
		$user_id = get_param('user_id',0);
		$user_name=DB::result("select name from user where user_id=".to_sql($user_id));
		$html->setvar("user_name", $user_name);

		parent::parseBlock($html);
	}
}


class Cgroups extends CHtmlList
{
	function init()
	{
		parent::init();
		global $g;
		global $g_user;
		$user_id = get_param('user_id');
		$this->m_on_page = 10;

		$this->m_sql_count = "SELECT count(M.id) FROM im_msg as M  join user as U2 on U2.user_id = M.to_user";

		$this->m_sql = "SELECT M.*,M.name AS u_from, U2.name AS u_to
                          FROM im_msg AS M
                          JOIN user AS U2 ON U2.user_id = M.to_user";


		$this->m_sql_where = " (M.from_user = " . to_sql( $user_id) . " AND M.from_user_deleted = 0)
                            OR (M.to_user = " . to_sql($user_id) . ' AND M.to_user_deleted = 0)';
		$this->m_sql_order = " born ";
		$this->m_params = "&user_id=".get_param('user_id');
		$this->m_field['id'] = array("id", null);
		$this->m_field['u_from'] = array("u_from", null);
		$this->m_field['u_to'] = array("u_to", null);
		$this->m_field['msg'] = array("msg", null);
		$this->m_field['born'] = array("born", null);



	}
	function onItem(&$html, $row, $i, $last)
	{
		global $g;
		$user_id = get_param('user_id');
		$html->setvar("id", $row['id']);
		$html->setvar("user_id", $user_id);
		$html->setvar("user_to", $row['u_to']);
		$html->setvar("user_from", $row['u_from']);

        /*
        $msg = $row['msg'];
        if ($row['system'] && $row['system_type'] == 2) {
            $msg = CIm::grabsRequest($msg, $row['u_from'], $row['u_to'], true);
        } else {
            $msg = CIm::prepareMediaFromComment($msg, $row['u_from'], true);
        }

		$html->setvar("text", $msg);
         */
		$html->setvar("data", date('d-m-Y h:i:s',time_mysql_dt2u($row['born'])));

        CIm::parseImOneMsg($html, $row);

        if ($i % 2 == 0) {
            $html->setvar("class", 'color');
            $html->setvar("decl", '_l');
            $html->setvar("decr", '_r');
        } else {
            $html->setvar("class", '');
            $html->setvar("decl", '');
            $html->setvar("decr", '');
        }

	}
	function parseBlock(&$html)
	{
		global $g;
		global $g_user;

		$user_id = get_param('user_id');
		$html->setvar("user_id", $user_id);

		parent::parseBlock($html);
	}
}


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

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

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

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

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

Youez - 2016 - github.com/yon3zu
LinuXploit