MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Revised BSD License for more details.
- Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
- Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- iDB Installer made by Game Maker 2k - http://upload.idb.s1.jcink.com/
+ Copyright 2004-2009 iDB Support - http://idb.berlios.de/
+ Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
+ iDB Installer made by Game Maker 2k - http://idb.berlios.de/support/category.php?act=view&id=2
- $FileInfo: install.php - Last Update: 06/18/2007 SVN 26 - Author: cooldude2k $
+ $FileInfo: install.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
*/
-@error_reporting(E_ALL ^ E_NOTICE); unset($preact['idb']);
-if ($_GET['act']!="Part4"&&$_POST['act']!="Part4") {
- $preact['idb'] = "installing"; }
+if(@ini_get("register_globals")) {
+require_once('inc/misc/killglobals.php'); }
+@error_reporting(E_ALL ^ E_NOTICE);
+if(@ini_get("register_globals")) {
+ if(!isset($SettDir['misc'])) { $SettDir['misc'] = "inc/misc/"; }
+ require_once($SettDir['misc'].'killglobals.php'); }
+if(!isset($preact['idb'])) { $preact['idb'] = null; }
+if(!isset($_GET['act'])) { $_GET['act'] = null; }
+if(!isset($_POST['act'])) { $_POST['act'] = null; }
if ($_GET['act']==null||$_GET['act']=="view") { $_GET['act']="Part1"; }
if ($_POST['act']==null||$_POST['act']=="view") { $_POST['act']="Part1"; }
-require('preindex.php');
-$SetupDir['setup'] = "setup/"; $SetupDir['convert'] = "setup/convert/";
-$ConvertDir['setup'] = "setup/"; $ConvertDir['convert'] = "setup/convert/";
+$_TEG = array(null); $_TEG['part'] = preg_replace("/Part(1|2|3|4)/","\\1",$_GET['act']);
+$_GET['act'] = strtolower($_GET['act']); if(isset($_TEG['part'])) {
+if($_TEG['part']<=4&&$_TEG['part']>=1) { $_GET['act'] = "Part".$_TEG['part']; } }
+if ($_GET['act']!="Part4"&&$_POST['act']!="Part4") {
+ $preact['idb'] = "installing"; }
+$SetupDir['setup'] = "setup/"; $ConvertDir['setup'] = $SetupDir['setup'];
+$SetupDir['convert'] = "setup/convert/"; $ConvertDir['convert'] = $SetupDir['convert'];
+$Settings['output_type'] = "html"; $Settings['html_type'] = "xhtml10";
+$Settings['board_name'] = "Installing iDB";
+if(!isset($Settings['charset'])) {
+ $Settings['charset'] = "ISO-8859-15"; }
+if(isset($Settings['charset'])) {
+if($Settings['charset']!="ISO-8859-15"&&$Settings['charset']!="ISO-8859-1"&&
+ $Settings['charset']!="UTF-8"&&$Settings['charset']!="CP866"&&
+ $Settings['charset']!="Windows-1251"&&$Settings['charset']!="Windows-1252"&&
+ $Settings['charset']!="KOI8-R"&&$Settings['charset']!="BIG5"&&
+ $Settings['charset']!="GB2312"&&$Settings['charset']!="BIG5-HKSCS"&&
+ $Settings['charset']!="Shift_JIS"&&$Settings['charset']!="EUC-JP") {
+ $Settings['charset'] = "ISO-8859-15"; } }
+$SQLCharset = "latin1";
+if(isset($_POST['charset'])) {
+if($_POST['charset']=="ISO-8859-1") {
+ $SQLCharset = "latin1"; }
+if($_POST['charset']=="ISO-8859-15") {
+ $SQLCharset = "latin1"; }
+if($_POST['charset']=="UTF-8") {
+ $SQLCharset = "utf8"; }
+ $Settings['charset'] = $_POST['charset']; }
+require($SetupDir['setup'].'preinstall.php');
+require_once($SettDir['inc'].'filename.php');
+require_once($SettDir['inc'].'function.php');
require($SetupDir['convert'].'info.php');
-unset($Error); ?>
+require($SettDir['inc'].'xhtml10.php');
+$Error = null; $_GET['time'] = false;
+?>
<title> <?php echo "Installing ".$VerInfo['iDB_Ver_Show']." on ".$OSType2; ?> </title>
</head>
<body>
<?php require($SettDir['inc'].'navbar.php'); ?>
-
+<div class="Table1Border">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableRow1">
+<span style="font-weight: bold; text-align: left;"><?php echo $ThemeSet['TitleIcon']; ?><a href="Install.php">Install <?php echo $VerInfo['iDB_Ver_Show']." on ".$OSType2; ?> </a></span>
+</div>
+<?php } ?>
<table class="Table1">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
<tr class="TableRow1">
-<td class="TableRow1"><span style="float: left;">
- <a href="Install.php">Install <?php echo $VerInfo['iDB_Ver_Show']." on ".$OSType2; ?> </a></span>
-<span style="float: right;"> </span></td>
-</tr>
+<td class="TableColumn1" colspan="2"><span style="font-weight: bold; text-align: left;"><?php echo $ThemeSet['TitleIcon']; ?><a href="Install.php">Install <?php echo $VerInfo['iDB_Ver_Show']." on ".$OSType2; ?> </a></span>
+</td>
+</tr><?php } ?>
<tr class="TableRow2">
-<th class="TableRow2" style="width: 100%; text-align: left;">
+<th class="TableColumn2" style="width: 100%; text-align: left;">
<span style="float: left;"> Inert your install info: </span>
<span style="float: right;"> </span>
</th>
if ($_GET['act']!="Part2"&&$_POST['act']!="Part2") {
if ($_GET['act']!="Part3"&&$_POST['act']!="Part3") {
if ($_GET['act']=="Part4"&&$_POST['act']=="Part4") {
- require($SetupDir['setup'].'/mkconfig.php'); } } } }
+ require($SetupDir['setup'].'mkconfig.php'); } } } }
if ($Error=="Yes") { ?>
<br />Install Failed with errors. <a href="install.php?act=view">Click here</a> to restart install. <_<
<br /><br />
</tr>
<?php } ?>
<tr class="TableRow4">
-<td class="TableRow4" colspan="2"> <a href="index.php?act=ReadMe">Readme.txt</a> </td>
+<td class="TableColumn4"> <a href="index.php?act=ReadMe">Readme.txt</a> </td>
</tr>
-</table>
+</table></div>
<div> </div>
<?php require($SettDir['inc'].'endpage.php'); ?>
</body>