OSDN Git Service

You can now pick what hash format to use for passwords. :P
[idb/iDB.git.git] / install.php
index f581ebd..b3cd54f 100644 (file)
@@ -8,13 +8,18 @@
     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: 07/01/2007 SVN 35 - Author: cooldude2k $
+    $FileInfo: install.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
 */
+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; }
@@ -28,28 +33,52 @@ if ($_GET['act']!="Part4"&&$_POST['act']!="Part4") {
 $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";
+$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');
 require($SettDir['inc'].'xhtml10.php');
-unset($Error); $_GET['time'] = false;
+$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;">
-&nbsp;<a href="Install.php">Install <?php echo $VerInfo['iDB_Ver_Show']." on ".$OSType2; ?> </a></span>
-<span style="float: right;">&nbsp;</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;">&nbsp;Inert your install info: </span>
 <span style="float: right;">&nbsp;</span>
 </th>
@@ -92,7 +121,7 @@ if($_POST['SetupType']=="install") {
 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. &lt;_&lt;
 <br /><br />
@@ -100,9 +129,9 @@ if ($Error=="Yes") { ?>
 </tr>
 <?php } ?>
 <tr class="TableRow4">
-<td class="TableRow4" colspan="2">&nbsp;<a href="index.php?act=ReadMe">Readme.txt</a>&nbsp;</td>
+<td class="TableColumn4">&nbsp;<a href="index.php?act=ReadMe">Readme.txt</a>&nbsp;</td>
 </tr>
-</table>
+</table></div>
 <div>&nbsp;</div>
 <?php require($SettDir['inc'].'endpage.php'); ?>
 </body>