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/_include/current/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/_include/current//friends.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. */



function isFriends($uid1, $uid2)
{
    $uid1 = intval($uid1);
    $uid2 = intval($uid2);
    $r = DB::count('friends_requests', "((user_id='" . $uid1 . "' AND friend_id='" . $uid2 . "') OR (friend_id='" . $uid1 . "' AND user_id='" . $uid2 . "')) AND accepted = 1");
    return ($r > 0);
}
function getFriendsIds()
{
    $rows = DB::select('friends_requests', "(user_id='" . guser('user_id') . "' OR friend_id='" . guser('user_id') . "') AND accepted = 1");
    $r = array();
    foreach ($rows as $row) {
        if (guser('user_id') == $row['user_id']) {
            $r[$row['friend_id']] = $row['friend_id'];
        } else {
            $r[$row['user_id']] = $row['user_id'];
        }
    }
    return $r;
}

class CFriendsMenu extends CHtmlBlock
{
	var $active_button = "friends";

	function parseBlock(&$html)
	{
		global $g_user;
		$html->setvar("button_" . $this->active_button . "_active", "_active");
		$html->setvar("button_oryx_" . $this->active_button . "_active", "active_btn");

		$n_friend_requests = DB::result("SELECT COUNT(user_id) FROM friends_requests WHERE friend_id = " . $g_user["user_id"] . " AND accepted=0");
		$html->setvar("n_friend_requests", $n_friend_requests);
        if(Common::isOptionActive('contact_blocking')) {
            $html->parse("contact_blocking");
        }
		if($n_friend_requests)
			$html->parse("friend_requests_exists", true);
		else
			$html->parse("no_friend_requests", true);

        if (Common::isOptionActive('bookmarks')) {
            $html->parse('friend_bookmarks', false);
        }
        if(Common::isOptionActive('invite_friends')) {
            $html->parse('invite_on');
        }   
		parent::parseBlock($html);
	}
}



Youez - 2016 - github.com/yon3zu
LinuXploit