Now able to delete nodes
[estigi.git] / install / index.php
blob8950b8127b6c80791302b009027339e6f4186b5f
1 <?php
3 define('LIFE_IS_GOOD', 'YES');
5 if(file_exists('../settings.php')){
6 echo 'The system has already been installed.';
7 exit;
10 include_once('../includes/modules.inc.php');
11 include_once('../includes/database.inc.php');
12 include_once('../includes/core.inc.php');
14 //Special function used in the system installation may go to install.php
15 function install_core_install(){
17 $core_modules = modules_required_modules();
19 foreach($core_modules as $module){
20 echo '../modules/'.$module.'/'.$module;
21 include_once('../modules/'.$module.'/'.$module.'.install');
24 install_core_install();
26 <form name="install_form" action="#" method="post">
27 <table border=1>
28 <tr>
29 <td colspan="2">Hello
30 </td>
31 </tr>
32 <tr>
33 <td>Database User Name
34 </td>
35 <td><input type="text" value="root" name="db_user">
36 </td>
37 </tr>
38 <tr>
39 <td>Database Password
40 </td>
41 <td><input type="password" value="" name="db_server">
42 </td>
43 </tr>
44 <tr>
45 <td>Database Server
46 </td>
47 <td><input type="text" value="localhost" name="db_server">
48 </td>
49 </tr>
50 <tr>
51 <td>Admin Name
52 </td>
53 <td><input type="text" value="asterix" name="admin_name">
54 </td>
55 </tr>
56 <tr>
57 <td>Admin Password
58 </td>
59 <td><input type="password" value="" name="admin_password">
60 </td>
61 </tr>
62 <tr>
63 <td>Admin Password Again!
64 </td>
65 <td><input type="password" value="" name="admin_password_2">
66 </td>
67 </tr>
68 <tr>
69 <td>
70 </td>
71 <td><input type="submit" value="Process" name="install_system">
72 </td>
73 </tr>
74 </table>
75 </form>