-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
36 lines (35 loc) · 1.26 KB
/
install.php
File metadata and controls
36 lines (35 loc) · 1.26 KB
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
<?php
session_start();
session_destroy();
$rootURL = substr(getenv('HTTP_HOST') . $_SERVER['REQUEST_URI'], 0, -11);
?>
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" title="Common" href="lib/CommonScripts.css">
<meta charset="UTF-8">
<title>Daintree Shopping System</title>
</head>
<body>
<section id="container">
<header>
<h1><a href="install.php">Daintree Shopping System</a></h1>
</header>
<section id="install" class="contentright">
<h2 id="installHeader">Install</h2><br/><br/>
<form id="addprods" class="cmsform" method="POST" action="api/installscript.php">
<label for="dbhost">Database Host Address</label>
<input type="text" id="dbhost" name="dbhost" value="localhost"><br/>
<label for="dbuser">Database Username</label>
<input type="text" id="dbuser" name="dbuser" value="root"><br/>
<label for="dbpassword">Database Password</label>
<input type="password" id="dbpassword" name="dbpassword"><br/>
<label for="companyName">Company Name</label>
<input type="text" id="companyName" name="companyName"><br/>
<input type="hidden" class="hidden" id="rootURL" name="rootURL" value="<?php echo $rootURL;?>"></input>
<br/>
<button id="install" type="submit">Install</button>
</form>
</section>
</section>
</section>