403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/myschool/khaesai/modules/useronline/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/khaesai/modules/useronline/counter.php
<?                   



include("modules/useronline/startconnect.php");

$ct_ip = $_SERVER["REMOTE_ADDR"];
$ct_yyyy = date("Y") ;
$ct_mm = date("m") ;
$ct_dd = date("d") ;
$ct_time = time();

$sql = "select * from ".TB_ACTIVEUSER." where ct_yyyy = '$ct_yyyy' AND ct_mm = '$ct_mm' AND ct_dd = '$ct_dd' AND ct_ip = '$ct_ip' ";
$result = mysql_query($sql);
$num = mysql_num_rows($result);

if(!isset($_SESSION["ss_counter"]))
{

	$_SESSION["ss_counter"] = "y";
	if($num==0)
	{
		$sql = "insert into ".TB_ACTIVEUSER." (ct_yyyy,ct_mm,ct_dd,ct_ip,ct_count,ct_time) values ('$ct_yyyy','$ct_mm','$ct_dd','$ct_ip','1','$ct_time')";
		$result = mysql_query($sql);
	}
	else
	{
		$sql = "update ".TB_ACTIVEUSER." set ct_count = ct_count+1 , ct_time = '$ct_time' , where ct_yyyy = '$ct_yyyy' AND ct_mm = '$ct_mm' AND ct_dd = '$ct_dd' AND ct_ip = '$ct_ip' ";
		$result = mysql_query($sql);
	}
}
else
{
	if($num==0)
	{
		$sql = "insert into ".TB_ACTIVEUSER." (ct_yyyy,ct_mm,ct_dd,ct_ip,ct_count,ct_time) values ('$ct_yyyy','$ct_mm','$ct_dd','$ct_ip','1','$ct_time')";
		$result = mysql_query($sql);
	}
	else
	{
		$sql = "update ".TB_ACTIVEUSER." set ct_time = $ct_time where ct_yyyy = '$ct_yyyy' AND ct_mm = '$ct_mm' AND ct_dd = '$ct_dd' AND ct_ip = '$ct_ip' ";
		$result = mysql_query($sql);
	}
}

include("modules/useronline/endconnect.php");

?>

Youez - 2016 - github.com/yon3zu
LinuXploit