From 4c0a51f3d4168cdc9a3f751ea5a9c87bd7fe16d3 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Mon, 4 Oct 2010 03:42:23 +0000 Subject: [PATCH] Small update. git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@567 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- inc/versioninfo.php | 7 +++++-- sql.php | 14 ++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/inc/versioninfo.php b/inc/versioninfo.php index dbf568f..a9282af 100644 --- a/inc/versioninfo.php +++ b/inc/versioninfo.php @@ -11,7 +11,7 @@ Copyright 2004-2010 iDB Support - http://idb.berlios.de/ Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: versioninfo.php - Last Update: 09/03/2010 SVN 566 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 09/03/2010 SVN 567 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") { @@ -27,7 +27,7 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) { return $return_var; } // Version number and date stuff. :P $VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 1; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 566; $RName = "iDB"; $SFName = "IntDB"; +$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 567; $RName = "iDB"; $SFName = "IntDB"; $SVNDay[0] = 09; $SVNDay[1] = 03; $SVNDay[2] = 2010; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false); $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,true); @@ -72,4 +72,7 @@ if($Settings['showverinfo']!="on") { //header("X-".$RName."-Powered-By: ".$RName); //header("X-Powered-By: PHP"); header("Generator: ".$RName); } +// Uncomment next two lines to get rid of version info headers +//header("X-Powered-By: "); +//header("Generator: "); ?> diff --git a/sql.php b/sql.php index c9e5096..a63410f 100644 --- a/sql.php +++ b/sql.php @@ -11,7 +11,7 @@ Copyright 2004-2010 iDB Support - http://idb.berlios.de/ Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: sql.php - Last Update: 09/02/2010 SVN 565 - Author: cooldude2k $ + $FileInfo: sql.php - Last Update: 09/03/2010 SVN 567 - Author: cooldude2k $ */ /* Some ini setting changes uncomment if you need them. Display PHP Errors */ @@ -19,8 +19,9 @@ $disfunc = @ini_get("disable_functions"); if($disfunc!="ini_set") { $disfunc = explode(",",$disfunc); } if($disfunc=="ini_set") { $disfunc = array("ini_set"); } if(!in_array("ini_set", $disfunc)) { -// Uncomment next two lines to show errors -/*@ini_set("display_errors", true); +// Uncomment next few lines to show errors +/*@ini_set("track_errors", true); +@ini_set("display_errors", true); @ini_set("display_startup_errors", true); */ } @error_reporting(E_ALL ^ E_NOTICE); /* Get rid of session id in urls */ @@ -28,7 +29,8 @@ if(!in_array("ini_set", $disfunc)) { @ini_set("session.use_trans_sid", false); @ini_set("session.use_cookies", true); @ini_set("session.use_only_cookies", true); -@ini_set("url_rewriter.tags",""); } +@ini_set("url_rewriter.tags",""); +@ini_set("ignore_user_abort", 1); } @set_time_limit(30); @ignore_user_abort(true); /* Change session garbage collection settings */ if(!in_array("ini_set", $disfunc)) { @@ -36,8 +38,8 @@ if(!in_array("ini_set", $disfunc)) { @ini_set("session.gc_divisor", 100); @ini_set("session.gc_maxlifetime", 1440); /* Change session hash type here */ -@ini_set('session.hash_function', 1); -@ini_set('session.hash_bits_per_character', 6); } +@ini_set("session.hash_function", 1); +@ini_set("session.hash_bits_per_character", 6); } /* Do not change anything below this line unless you know what you are doing */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="sql.php"||$File3Name=="/sql.php") { -- 2.11.0