All pastes #955696 Raw Edit

Stuff

public php v1 · immutable
#955696 ·published 2008-03-24 20:14 UTC
rendered paste body
<?phperror_reporting(E_ALL);include("connection.php");$sid = addslashes($_GET['sid']);$sid = mysql_real_escape_string($sid);$ip = $_SERVER['REMOTE_ADDR'];$check_click = @file_exists("logs/$ip-$sid");if($check_click) {  @mysql_query("UPDATE stock_log SET clicks=clicks+1 WHERE sid='$sid'") or die(mysql_error());  file_put_contents("logs/$ip-$sid",null);}?>