Added a registration form, and made the pages look a little bit nicer
This commit is contained in:
parent
90f3a4021b
commit
351004de44
|
@ -9,6 +9,6 @@
|
||||||
|
|
||||||
# this is such a lonely file...
|
# this is such a lonely file...
|
||||||
?>
|
?>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -13,9 +13,9 @@ $title = $title ?? '~chan';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="/css/main.css">
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
<title><?php echo $title; ?></title>
|
<title><?php echo $title; ?></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="main">
|
||||||
|
|
|
@ -10,6 +10,9 @@ body {
|
||||||
background-color: var(--bg-color);
|
background-color: var(--bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.main {
|
||||||
|
}
|
||||||
|
|
||||||
/* stuff for input's like the login and post forms */
|
/* stuff for input's like the login and post forms */
|
||||||
form.input-form {
|
form.input-form {
|
||||||
}
|
}
|
||||||
|
|
39
login.php
39
login.php
|
@ -16,22 +16,29 @@ $path = $_SERVER['DOCUMENT_ROOT'];
|
||||||
include($path . '/core/header.php');
|
include($path . '/core/header.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form action="login.php" class="input-form">
|
<div style="
|
||||||
<table>
|
margin: auto;
|
||||||
<tr>
|
width: 300px;
|
||||||
<td><b>username:</b></td>
|
padding-top: 100px;
|
||||||
<td>
|
">
|
||||||
<input name="user" type="text">
|
<h1>login</h1>
|
||||||
</td>
|
<form action="login.php" class="input-form">
|
||||||
</tr>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>password:</b></td>
|
<td><b>username:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<input name="pass" type="password">
|
<input name="user" type="text">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
<tr>
|
||||||
</form>
|
<td><b>password:</b></td>
|
||||||
|
<td>
|
||||||
|
<input name="pass" type="password">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include($path . '/core/footer.php');
|
include($path . '/core/footer.php');
|
||||||
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
<?php
|
||||||
|
# - # - # - # - # - # - # - #
|
||||||
|
# #
|
||||||
|
# ~chan #
|
||||||
|
# - #
|
||||||
|
# by stilbruch #
|
||||||
|
# #
|
||||||
|
# - # - # - # - # - # - # - #
|
||||||
|
|
||||||
|
// if a registration was submitted
|
||||||
|
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$path = $_SERVER['DOCUMENT_ROOT'];
|
||||||
|
include($path . '/core/header.php');
|
||||||
|
?>
|
||||||
|
<div style="
|
||||||
|
margin: auto;
|
||||||
|
width: 350px;
|
||||||
|
padding-top: 100px;
|
||||||
|
">
|
||||||
|
<h1>register</h1>
|
||||||
|
<form action="login.php" class="input-form">
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td><b>username:</b></td>
|
||||||
|
<td>
|
||||||
|
<input name="user" type="text">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><b>password:</b></td>
|
||||||
|
<td>
|
||||||
|
<input name="pass" type="password">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><b>confirm password:</b></td>
|
||||||
|
<td>
|
||||||
|
<input name="confirm_pass" type="password">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><b>email:</b></td>
|
||||||
|
<td>
|
||||||
|
<input name="email" type="email">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><b>confirm email:</b></td>
|
||||||
|
<td>
|
||||||
|
<input name="confirm_email" type="email">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
include($path . '/core/footer.php');
|
||||||
|
# the end...
|
||||||
|
?>
|
Loading…
Reference in New Issue