Onbekend |
|
Ik snap niet hoe hij bij /games/ID/js/thumbs.js komt?
En soms werkt het wel heel vaag.
code:
function OnlineLog($sTime = 1500)
{
mysql_query("DELETE FROM `online`
WHERE `tijd` < ".(time()-$sTime))
or die(mysql_error());
$cCountSql = mysql_query("SELECT COUNT(`id`)
FROM `online` WHERE `ip` = '".$_SERVER['REMOTE_ADDR']."'");
$cCount = mysql_result($cCountSql,0);
if($cCount == 0)
{
mysql_query("INSERT INTO `online`
VALUES ('','".$_SERVER['REMOTE_ADDR']."',
'".$_SERVER['REQUEST_URI']."',".time().")")
or die(mysql_error());
} //
else
{
mysql_query("UPDATE `online` SET
`tijd` = ".time().",
`locatie` = '".$_SERVER['REQUEST_URI']."'
WHERE `ip` = '".$_SERVER['REMOTE_ADDR']."'")
or die(mysql_error());
}
}
function OnlineLog($sTime = 1500) { WHERE `tijd` < ".(time()-$sTime)) FROM `online` WHERE `ip` = '".$_SERVER['REMOTE_ADDR']."'"); if($cCount == 0) { VALUES ('','".$_SERVER['REMOTE_ADDR']."', '".$_SERVER['REQUEST_URI']."',".time().")") } // else { `locatie` = '".$_SERVER['REQUEST_URI']."' WHERE `ip` = '".$_SERVER['REMOTE_ADDR']."'") } }
|