-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjoin.php
More file actions
executable file
·30 lines (30 loc) · 849 Bytes
/
join.php
File metadata and controls
executable file
·30 lines (30 loc) · 849 Bytes
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
<?php
include_once 'conf.php';
$auth = new auth();
$form = '
<br /><a href="/index.php">Login</a><br />
<form action="" method="post">
Login <input type="text" name="login" id="" value="'.@$_POST['login'].'" /><br />
Password <input type="password" name="passwd" id="" /><br />
Password again <input type="password" name="passwd2" id="" /><br />
E-mail <input type="text" name="mail" value="'.@$_POST['mail'].'" /><br />
Sex
<select name="sex">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
<br />
<input type="submit" value="send" name="send" /><br />
</form>
';
if (isset($_POST['send'])) {
if ($auth->reg()) {
print '
Registration successful. <a href="index.php">Login</a>.
';
} else {
print $auth->error_reporting();
print $form;
}
} else print $form;
?>