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-2023 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2023 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
13 iDB Installer made by Game Maker 2k - http://idb.berlios.net/
15 $FileInfo: presetup.php - Last Update: 6/28/2023 SVN 996 - Author: cooldude2k $
17 $File3Name = basename($_SERVER['SCRIPT_NAME']);
18 if ($File3Name=="presetup.php"||
$File3Name=="/presetup.php") {
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
>
31 <tr
class="TableRow3">
32 <td
class="TableColumn3">
33 <form style
="display: inline;" method
="post" id
="install" action
="<?php echo url_maker("install
",".php
","act
=Part3
","&","=",null,null); ?>">
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
>
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
>
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
>
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(class_exists('SQLite3')) { ?
>
56 <option value
="sqlite3">SQLite
3 Database
</option
>
57 <?php
} if(function_exists("cubrid_connect")) { ?
>
58 <option value
="cubrid">CUBRID Database
</option
>
59 <?php
} if(extension_loaded("PDO")) {
60 if(extension_loaded("PDO_MYSQL")) {?
>
61 <option value
="pdo_mysql">PDO MySQL
Database ( WIP
! )</option
>
62 <?php
} if(extension_loaded("PDO_PGSQL")) { ?
>
63 <option value
="pdo_pgsql">PDO PostgreSQL
Database ( WIP
! )</option
>
64 <?php
} if(extension_loaded("PDO_SQLITE")) { ?
>
65 <option value
="pdo_sqlite3">PDO SQLite
3 Database ( WIP
! )</option
>
66 <?php
} if(extension_loaded("PDO_CUBRID")) { ?
>
67 <option value
="pdo_cubrid">PDO CUBRID
Database ( WIP
! )</option
>
68 <?php
} } if(!function_exists("mysql_connect")&&!function_exists("mysqli_connect")&&
69 !function_exists("pg_connect")&&!function_exists("sqlite_open")&&!class_exists('SQLite3')&&
70 !function_exists("cubrid_connect")&&!extension_loaded("PDO")) { ?
>
71 <option value
="none">No Database Available
</option
>
75 <td style
="width: 50%;"><label
class="TextBoxLabel" for="charset">Select html charset
:</label
></td
>
76 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="charset" id
="charset">
77 <option value
="UTF-8">Unicode (UTF
-8)</option
>
78 <option value
="ISO-8859-15">Latin
-9 (ISO
-8859-15)</option
>
79 <option value
="ISO-8859-1">Latin
-1 (ISO
-8859-1)</option
>
81 <?php
if($ConvertInfo['ConvertFile']!=null) { ?
>
83 <td style
="width: 50%;"><label
class="TextBoxLabel" for="SetupType">Type of install to
do:</label
></td
>
84 <td style
="width: 50%;"><select size
="1" class="TextBox" name
="SetupType" id
="SetupType">
85 <option value
="convert" selected
="selected"><?php
echo $ConvertInfo['ConvertName']; ?
></option
>
86 <option value
="install">Install iDB
</option
>
90 <table style
="text-align: left;">
91 <tr style
="text-align: left;">
92 <td style
="width: 100%;">
93 <?php
if($ConvertInfo['ConvertFile']==null) { ?
>
94 <input type
="hidden" name
="SetupType" value
="install" style
="display: none;" />
96 <input type
="hidden" name
="act" value
="Part3" style
="display: none;" />
97 <input type
="submit" class="Button" value
="Next Page" name
="Install_Board" />
98 <input type
="reset" value
="Reset Form" class="Button" name
="Reset_Form" />