diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-02-28 17:42:27 -0800 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-02-28 17:42:27 -0800 |
commit | c77bb62f2d0a958e074ad0d9b1334d533cb33121 (patch) | |
tree | 0665b176c871b6fd3f4e06c6210d1642f4f6a726 /install.php | |
parent | f0d3ba2bc2b9a4391a89e343e9dea2622d7d9972 (diff) |
show a form for installation
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/install.php b/install.php new file mode 100644 index 000000000..5ee6b10b3 --- /dev/null +++ b/install.php @@ -0,0 +1,68 @@ +<? +function main() +{ + if ($_SERVER['REQUEST_METHOD'] == 'POST') { + handlePost(); + } else { + showForm(); + } +} + +function showForm() +{ +?> +<p>Enter your database connection information below to initialize the database.</p> +<form method='post'> + <fieldset> + <ul class='form_data'> + <li> + <label for='sitename'>Site name</label> + <input type='text' id='sitename' name='sitename' /> + <p>The name of your site</p> + </li> + <li> + <li> + <label for='host'>Database host</label> + <input type='text' id='host' name='host' /> + <p>Database hostname</p> + </li> + <li> + <li> + <label for='username'>Username</label> + <input type='text' id='username' name='username' /> + <p>Database username</p> + </li> + <li> + <label for='password'>Password</label> + <input type='password' id='password' name='password' /> + <p>Database password</p> + </li> + </ul> + <input type='submit' name='submit' value='Submit'> + </fieldset> +</form> +<? +} + +function handlePost() +{ +} +?> +<html> +<head> + <title>Install Laconica</title> + <link rel="stylesheet" type="text/css" href="theme/base/css/display.css?version=0.7.1" media="screen, projection, tv"/> + <link rel="stylesheet" type="text/css" href="theme/base/css/modal.css?version=0.7.1" media="screen, projection, tv"/> + <link rel="stylesheet" type="text/css" href="theme/default/css/display.css?version=0.7.1" media="screen, projection, tv"/> +</head> +<body> + <div id="wrap"> + <div id="core"> + <div id="content"> + <h1>Install Laconica</h1> +<? main() ?> + </div> + </div> + </div> +</body> +</html>
\ No newline at end of file |