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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/m/messages_ajax.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/pony_start.php");

if(Flashchat::isBanned(Flashchat::user())) {
    die('ban');
}

Flashchat::updateVisit();

//payment_check('3d_chat');

class CChatAjax extends CHtmlBlock
{
	function init()
	{
		parent::init();
		global $g;
		global $g_user;

		$id = get_param("id", "");

		$this->m_on_page = 11;
		$this->m_sql_count = "SELECT count(id) FROM flashchat_messages WHERE room=1 ORDER BY id ASC, time ASC";
		$this->m_sql = "SELECT * FROM flashchat_messages WHERE room=1 ORDER BY id ASC, time ASC";
		//$this->m_debug = "Y";
	}
	function onItem(&$html, $row)
	{
		global $g;

        $row['msgtext'] = Flashchat::translateSystemMessage($row['msgtext']);

		$html->setvar('user_id', DB::result("select user_id from user where name=".to_sql($row['user'], 'Text')."", 0, 2));
		$html->setvar('user', $row['user']);
        $msg = Common::parseLinksSmile($row['msgtext'], '_blank', '', false);
        //$msg = replaceSmile($msg);
		#$html->setvar('msgtext', strip_tags($msg,'a'));
        $html->setvar('msgtext', $msg);
		$html->parse('chat_item', true);
	}
	function parseBlock(&$html)
	{
		global $g;
		global $g_user;

		$num = DB::result($this->m_sql_count);
		DB::query($this->m_sql . " LIMIT ".max(0, $num - $this->m_on_page).", ".$this->m_on_page, 1);
		while($row = DB::fetch_row(1))
		{
			self::onItem($html, $row);
		}

		parent::parseBlock($html);
	}
}

g_user_full();

$page = new CChatAjax("chat", $g['tmpl']['dir_tmpl_mobile'] . "chat_ajax.html");

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

Youez - 2016 - github.com/yon3zu
LinuXploit