-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.php
37 lines (33 loc) · 960 Bytes
/
setup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
define('QCOM1', true);
if (file_exists('conf/config.php'))
exit('Script has already been setup.<br /><b>config.php</b> exists.');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
</head>
<body style="background:#99aabb;">
<div style="background:#cceeff;width:626px;margin:auto;padding:10px 10px">
<?php
if (isset($_POST['step'])) {
require 'setup/setup'.$_POST['step'].'.php';
exit();
}
?>
<h2>Welcome! Setup step 1</h2>
<form method="post">
<fieldset>
<b>Database:</b><br>
<select name="dbdriver">
<option value="sqlite" selected>SQLite</option>
<option value="mysql">MySQL</option>
</select> Database you want to use<br><br>
<input type="submit" value="SUBMIT">
<input type="hidden" name="step" value="2">
<br>
</fieldset>
</form>
<?php
exit();