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//mail_compose_select_friend.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");



$g['to_head'][] = '<link rel="stylesheet" href="'.$g['tmpl']['url_tmpl_mobile'].'css/friends.css" type="text/css" media="all"/>';
$g['to_head'][] = '<link rel="stylesheet" href="'.$g['tmpl']['url_tmpl_mobile'].'css/home.css" type="text/css" media="all"/>';

class CUsersInfoFriends extends CUsersInfo
{
	var $user_id = null;
	var $parsed_item_n;

	function action()
	{
		global $g;
		global $g_user;

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

		if ($cmd == "delete")
		{
			foreach($_POST as $name => $value)
			{
				if(substr($name, 0, 7) == 'delete_')
				{
					$id = substr($name, 7);
					if(is_numeric($id))
					{
						User::friendDelete($g_user['user_id'], $id);
					}
				}
			}


		}
	}

	function onItem(&$html, $row, $i, $last)
	{
		parent::onItem($html, $row, $i, $last);

		global $g_user;
		global $g;

		if($this->row_breaks && !($this->parsed_item_n % $this->row_breaks_n_cols) && $this->parsed_item_n < 16)
		{
			if(floor($this->parsed_item_n / $this->row_breaks_n_cols) % 2)
			{
				if($this->parsed_item_n == 2)
					$html->setvar('row_break_', '<th rowspan="3"><div style="background-image:url('. "'" . $g['tmpl']['url_tmpl_mobile'] . 'img/usr/0b2.jpg' . "'" . ');"><a href="#"></a></div></th></tr><tr>');
				else
				{
					if($this->parsed_item_n > 6)
						$html->setvar('row_break_', '<td>&nbsp;</td></tr><tr>');
					else
						$html->setvar('row_break_', '</tr><tr>');
				}
			}
			else
				$html->setvar('row_break_', '</tr><tr class="blue">');
		}
		else
			$html->setvar('row_break_', '');

		++$this->parsed_item_n;
	}

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

		$html->setvar('user_id', $this->user_id);

		$this->parsed_item_n = 1;

		parent::parseBlock($html);
	}

	function onPostParse(&$html,$row=array())
	{
		global $g_user;
		global $g;

		for($i = $this->parsed_item_n; $i <= 16; ++$i)
		{
			if($this->row_breaks && !($i % $this->row_breaks_n_cols) && $i < 16)
			{
				if(floor($i / $this->row_breaks_n_cols) % 2)
				{
					if($i == 2)
						$html->setvar('row_break_', '<th rowspan="3"><div style="background-image:url('. "'" . $g['tmpl']['url_tmpl_mobile'] . 'img/usr/0b2.jpg' . "'" . ');"><a href="#"></a></div></th></tr><tr>');
					else
					{
						if($i > 6)
							$html->setvar('row_break_', '<td>&nbsp;</td></tr><tr>');
						else
							$html->setvar('row_break_', '</tr><tr>');
					}
				}
				else
					$html->setvar('row_break_', '</tr><tr class="blue">');
			}
			else
				$html->setvar('row_break_', '');
			$html->parse('users_list_no_item');
		}
	}
}

$user_id = get_param('user_id', $g_user['user_id']);

if($user_id == $g_user['user_id'])
{
	$l['profile_view_friends.php']['title'] = $g['main']['title'] . ' - My Friends';
}

//if (defined('IS_DEMO')) {
//	DB::query("SELECT * FROM im_open WHERE to_user=12 AND from_user=" . to_sql($g_user['user_id'], "Number") . "");
//	if (DB::num_rows() == 0) DB::execute("INSERT INTO im_open SET to_user=12, from_user=" . to_sql($g_user['user_id'], "Number") . "");
//}

$page = new CHtmlBlock("", $g['tmpl']['dir_tmpl_mobile'] . "profile_view_friends.html");
$header = new CHeader("header", $g['tmpl']['dir_tmpl_mobile'] . "_header.html");
$page->add($header);
$footer = new CFooter("footer", $g['tmpl']['dir_tmpl_mobile'] . "_footer.html");
$page->add($footer);

$list = new CUsersInfoFriends("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_list_mail_compose_select_friend.html");

$list->m_last_visit_only_online = true;
$list->m_on_page = 16;
$list->row_breaks = true;
$list->row_breaks_n_cols = 2;
$list->user_id = $user_id;

$list->m_sql_from_add = ' JOIN friends_requests AS f
    ON ( (u.user_id = f.user_id AND f.friend_id = ' . to_sql($user_id, 'Number') . ')
        OR (u.user_id = f.friend_id AND f.user_id = ' . to_sql($user_id, 'Number') . '))';
$list->m_sql_where = ' f.accepted = 1 ';


$page->add($list);

$user_menu = new CUserMenu("user_menu", $g['tmpl']['dir_tmpl_mobile'] . "_user_menu.html");
if($user_id == $g_user['user_id'])
{
	$user_menu->setActive('friends');
}
$page->add($user_menu);

include("./_include/current/profile_view_menu.php");
$profile_view_menu = new CProfileViewMenu("profile_view_menu", $g['tmpl']['dir_tmpl_mobile'] . "_profile_view_menu.html");
$profile_view_menu->user_id = $user_id;
$list->add($profile_view_menu);

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

?>

Youez - 2016 - github.com/yon3zu
LinuXploit