Location: PHPKode > projects > Content*Builder > modules/article/reload.inc.php
<?php

$pattern = "id";

function fog_log($artID)
{
   global $REMOTE_ADDR;
   $user_addr = $REMOTE_ADDR;

   $is_viewed_res = mysql_query("SELECT * FROM ".TABLE."_sext_statistik WHERE userIP = '$user_addr' AND artID = '$artID'");
   $is_viewed_row = mysql_fetch_array($is_viewed_res);
   if($is_viewed_row)
   {

   }
   else
   {
      $time = time();
      $exp_time = $time + 172800;
      $statID  = $user_addr;
      $statID .= " - ".$time;
      mysql_query("INSERT INTO ".TABLE."_sext_statistik (statID, time, expiretime, artID, userIP) VALUES ('$statID', '$time', '$exp_time', '$artID', '$user_addr')");
   }
}


$pattern_look_up = explode("&", $QUERY_STRING);
for($y = 0;$y <= count($pattern_look_up); $y++)
{
   $name_content = explode("=", $pattern_look_up[$y]);
   if(ereg("^$pattern$", $name_content[0]))
   {
      fog_log($name_content[1]);
   }
}

?>
Return current item: Content*Builder