Copyright 2004-2009 iDB Support - http://idb.berlios.de/
Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: admin.php - Last Update: 12/13/2009 SVN 403 - Author: cooldude2k $
+ $FileInfo: admin.php - Last Update: 12/16/2009 SVN 414 - Author: cooldude2k $
*/
if(ini_get("register_globals")) {
require_once('inc/misc/killglobals.php'); }
if($_GET['act']=="view"&&$GroupInfo['ViewDBInfo']!="yes") {
$_GET['act']="view"; }
if($_GET['act']=="vercheck"&&$GroupInfo['ViewDBInfo']=="yes") {
- header("Location: ".$VerCheckURL."&bid=".$Settings['bid']."&vercheck=newtype"); }
+ if($Settings['vercheck']!=1&&$Settings['vercheck']!=2) {
+ $Settings['vercheck'] = 1; }
+ if($Settings['vercheck']===1) {
+ header("Location: ".$VerCheckURL."&name=".urlencode($iDBVerName); }
+ if($Settings['vercheck']===2) {
+ header("Location: ".$VerCheckURL."&bid=".$Settings['bid']."&vercheck=newtype"); } }
if($_GET['act']=="view")
{ $AdminMenu = "menu";
if($_GET['menu']==null) {
Copyright 2004-2009 iDB Support - http://idb.berlios.de/
Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: versioninfo.php - Last Update: 12/16/2009 SVN 413 - Author: cooldude2k $
+ $FileInfo: versioninfo.php - Last Update: 12/16/2009 SVN 414 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
return $return_var; }
// Version number and date stuff. :P
$VER1[0] = 0; $VER1[1] = 3; $VER1[2] = 5; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 413; $RName = "iDB"; $SFName = "IntDB";
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 414; $RName = "iDB"; $SFName = "IntDB";
$SVNDay[0] = 12; $SVNDay[1] = 16; $SVNDay[2] = 2009; $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);
Copyright 2004-2009 iDB Support - http://idb.berlios.de/
Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: sql.php - Last Update: 12/13/2009 SVN 404 - Author: cooldude2k $
+ $FileInfo: sql.php - Last Update: 12/16/2009 SVN 414 - Author: cooldude2k $
*/
/* Some ini setting changes uncomment if you need them.
Display PHP Errors */
//ini_set("display_errors", true);
//ini_set("display_startup_errors", true);
error_reporting(E_ALL ^ E_NOTICE);
+//ini_set("error_prepend_string","<span style='color: ff0000;'>");
+//ini_set("error_append_string","</span>");
/* Get rid of session id in urls */
//ini_set("session.use_trans_sid", false);
//ini_set("session.use_cookies", true);
$Settings['charset']!="Shift_JIS"&&$Settings['charset']!="EUC-JP") {
$Settings['charset'] = "ISO-8859-15"; } }
$chkcharset = $Settings['charset'];
-ini_set('default_charset', $Settings['charset']);
+@ini_set('default_charset', $Settings['charset']);
//session_save_path($SettDir['inc']."temp/");
if(!isset($Settings['sqldb'])) {
if(file_exists("install.php")) { header('Location: install.php'); die(); }
if(!file_exists("install.php")) { header("Content-Type: text/plain; charset=UTF-8");
echo "403 Error: Sorry could not find install.php\nTry uploading files again and if that dose not work try download iDB again."; die(); } }
if(!isset($Settings['sqlhost'])) { $Settings['sqlhost'] = "localhost"; }
-ini_set("error_prepend_string","<span style='color: ff0000;'>");
-ini_set("error_append_string","</span>");
if($Settings['fixpathinfo']=="on") {
$_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
putenv("PATH_INFO=".$_SERVER['ORIG_PATH_INFO']); }
if(!isset($_SERVER['HTTPS'])) { $_SERVER['HTTPS'] = "off"; }
require_once($SettDir['misc'].'utf8.php');
require_once($SettDir['inc'].'filename.php');
+$iDBVerName = "iDB|".$VER2[1]."|".$VER1[0].".".$VER1[1].".".$VER1[2]."|".$VER2[2]."|".$SubVerN;
+/* This way checks iDB version by sending the iDBVerName to the iDB Version Checker.*/
+$Settings['vercheck'] = 1;
+/* This way checks iDB version by sending the board url to the iDB Version Checker.*/
+$Settings['vercheck'] = 2;
+if($Settings['vercheck']!=1&&
+ $Settings['vercheck']!=2) {
+ $Settings['vercheck'] = 2; }
+if($Settings['vercheck']===2) {
if($_GET['act']=="versioninfo") { header("Content-Type: text/plain; charset=UTF-8"); ?>
<charset><?php echo $Settings['charset']; ?></charset>
<title><?php echo $Settings['board_name']; ?></title>
-<?php echo "<name>iDB|".$VER2[1]."|".$VER1[0].".".$VER1[1].".".$VER1[2]."|".$VER2[2]."|".$SubVerN."</name>"; die(); }
+<?php echo "<name>".$iDBVerName."</name>"; die(); } }
+if($Settings['vercheck']===1) {
+if($_GET['act']=="versioninfo") { header("Content-Type: text/plain; charset=UTF-8");
+header("Location: ".$VerCheckURL."&name=".urlencode($iDBVerName); die(); } }
if(!isset($Settings['use_hashtype'])) {
$Settings['use_hashtype'] = "sha256"; }
if(!function_exists('hash')||!function_exists('hash_algos')) {