Author: nextgens
Date: 2006-02-17 23:08:53 +0000 (Fri, 17 Feb 2006)
New Revision: 8057
Modified:
trunk/website/index.php
Log:
will be better like that
Modified: trunk/website/index.php
===================================================================
--- trunk/website/index.php 2006-02-17 22:51:30 UTC (rev 8056)
+++ trunk/website/index.php 2006-02-17 23:08:53 UTC (rev 8057)
@@ -14,7 +14,7 @@
include_once "config.inc";
$a=mysql_connect("mysql4-f", $mysql_user, $mysql_password);
$a=mysql_select_db("f978_access");
-$a=mysql_query("INSERT INTO access VALUES (\"".$_SERVER["REMOTE_ADDR"]."\",
\"".$_SERVER["HTTP_REFERER"]."\", NOW())");
+$a=mysql_query("INSERT INTO access VALUES (\"".$_SERVER["REMOTE_ADDR"]."\",
\"".mysql_real_escape_string($_SERVER["HTTP_REFERER"])."\", NOW())");
$a=mysql_close();
$modes = array("beginner"=>FALSE, "user"=>FALSE, "developer"=>FALSE);