From b50897cb0fdf0d42d306b20b8e38f19f8e2832e3 Mon Sep 17 00:00:00 2001 From: jimmacfx Date: Tue, 14 Feb 2006 20:52:54 +0000 Subject: add sqlite hooks git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@9 4fa712ea-3c06-0410-9261-c11b4c06c003 --- www/index.php | 356 ++++++++++++++++++---------------------------------------- 1 file changed, 110 insertions(+), 246 deletions(-) (limited to 'www/index.php') diff --git a/www/index.php b/www/index.php index 011a614..1483b84 100644 --- a/www/index.php +++ b/www/index.php @@ -2,14 +2,6 @@ # uncomment this to check for uninitialized variables etc.: # error_reporting (E_ALL); -# get variables from the _SERVER array in order to not -# rely on register_globals = On -# (this will not work with standalone PHP) -$ThisScript=preg_replace('/\?.*$/', '', $_SERVER['REQUEST_URI']); -$ScriptFileName=$_SERVER['SCRIPT_FILENAME']; -$HostName=$_SERVER['SERVER_NAME']; -$ThisUrl = $_SERVER['REQUEST_URI']; - #language support require_once ("lib/lib.l10n.php"); require_once("inc/config.inc.php"); @@ -68,78 +60,7 @@ if ($galerie) { } } -// processing of the user comment data -if($comments && @$_POST["commentdata"]) { - $username = @$_COOKIE["username"]; - $comment_name = @$_POST["commentname"]; - $save_comment_name = @$_POST["savecommentname"]; - $comment_data = @$_POST["commentdata"]; - $comment_kolacek = @$_POST["commentkolacek"]; - $comment_spamcheck = @$_POST["commentspamcheck"]; - - #check for HTML tags - - $comment_name = stripslashes(strip_tags($comment_name)); - $allowedTags = '