Small update.
[iDB.git] / setup / presetup.php
blob90e6e6c41ab067784e1d10489c6bafc919a97bac
1 <?php
2 /*
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the Revised BSD License.
6 This program is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 Revised BSD License for more details.
11 Copyright 2004-2009 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
13 iDB Installer made by Game Maker 2k - http://idb.berlios.net/
15 $FileInfo: presetup.php - Last Update: 12/16/2009 SVN 413 - Author: cooldude2k $
17 $File3Name = basename($_SERVER['SCRIPT_NAME']);
18 if ($File3Name=="presetup.php"||$File3Name=="/presetup.php") {
19 require('index.php');
20 exit(); }
21 if(!isset($SetupDir['setup'])) { $SetupDir['setup'] = "setup/"; }
22 if(!isset($SetupDir['convert'])) { $SetupDir['convert'] = "setup/convert/"; }
23 if ($_POST['License']!="Agree") { $Error="Yes"; ?>
24 <tr class="TableRow3">
25 <td class="TableColumn3">
26 <span class="TableMessage">
27 <br />You need to agree to the tos.<br /></span>
28 <?php }
29 if($Error!="Yes") {
31 <tr class="TableRow3">
32 <td class="TableColumn3">
33 <form style="display: inline;" method="post" id="install" action="install.php?act=Part3">
34 <table style="text-align: left;">
35 <tr style="text-align: left;">
36 <td style="width: 50%;"><label class="TextBoxLabel" for="DatabaseUserName">Insert Database User Name:</label></td>
37 <td style="width: 50%;"><input type="text" name="DatabaseUserName" class="TextBox" id="DatabaseUserName" size="20" /></td>
38 </tr><tr>
39 <td style="width: 50%;"><label class="TextBoxLabel" for="DatabasePassword">Insert Database Password:</label></td>
40 <td style="width: 50%;"><input type="password" name="DatabasePassword" class="TextBox" id="DatabasePassword" size="20" /></td>
41 </tr><tr>
42 <td style="width: 50%;"><label class="TextBoxLabel" for="DatabaseHost">Insert Database Host:</label></td>
43 <td style="width: 50%;"><input type="text" name="DatabaseHost" class="TextBox" id="DatabaseHost" size="20" value="localhost" /></td>
44 </tr><tr>
45 <td style="width: 50%;"><label class="TextBoxLabel" for="DatabaseType">Select Database Type:</label></td>
46 <td style="width: 50%;"><select size="1" class="TextBox" name="DatabaseType" id="DatabaseType">
47 <?php if(function_exists("mysql_connect")) { ?>
48 <option value="mysql">MySQL Database</option>
49 <?php } if(function_exists("mysqli_connect")) { ?>
50 <option value="mysqli">MySQLi Database</option>
51 <?php } if(function_exists("pg_connect")) { ?>
52 <option value="pgsql">PostgreSQL Database</option>
53 <?php } if(function_exists("sqlite_open")) { ?>
54 <option value="sqlite">SQLite Database</option>
55 <?php } if(!function_exists("mysql_connect")&&!function_exists("mysqli_connect")&&
56 !function_exists("pg_connect")&&!function_exists("sqlite_open")) { ?>
57 <option value="none">No Database Available</option>
58 <?php } ?>
59 </select></td>
60 </tr><tr>
61 <td style="width: 50%;"><label class="TextBoxLabel" for="charset">Select html charset:</label></td>
62 <td style="width: 50%;"><select size="1" class="TextBox" name="charset" id="charset">
63 <option value="ISO-8859-15">Latin-9 (ISO-8859-15)</option>
64 <option value="ISO-8859-1">Latin-1 (ISO-8859-1)</option>
65 <option value="UTF-8">Unicode (UTF-8)</option>
66 </select></td>
67 <?php if($ConvertInfo['ConvertFile']!=null) { ?>
68 </tr><tr>
69 <td style="width: 50%;"><label class="TextBoxLabel" for="SetupType">Type of install to do:</label></td>
70 <td style="width: 50%;"><select size="1" class="TextBox" name="SetupType" id="SetupType">
71 <option value="convert" selected="selected"><?php echo $ConvertInfo['ConvertName']; ?></option>
72 <option value="install">Install iDB</option>
73 </select></td>
74 <?php } ?>
75 </tr></table>
76 <table style="text-align: left;">
77 <tr style="text-align: left;">
78 <td style="width: 100%;">
79 <?php if($ConvertInfo['ConvertFile']==null) { ?>
80 <input type="hidden" name="SetupType" value="install" style="display: none;" />
81 <?php } ?>
82 <input type="hidden" name="act" value="Part3" style="display: none;" />
83 <input type="submit" class="Button" value="Next Page" name="Install_Board" />
84 <input type="reset" value="Reset Form" class="Button" name="Reset_Form" />
85 </td></tr></table>
86 </form>
87 </td>
88 </tr>
89 <?php } ?>