-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
executable file
·72 lines (67 loc) · 2.55 KB
/
settings.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
include "util/connect.php";
include "util/cookie_home.php";
include "util/home_functions.php";
include "util/form/settings.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Boardr - your notes, nothing more</title>
<link rel="shortcut icon" href="favicon.ico" />
<script type="text/javascript" src="head/scripts.js"></script>
<link type="text/css" rel="stylesheet" href="head/structure.css" />
<?php include "tracker.php";?>
</head>
<body>
<div id='main'>
<?php include "common_head.php"; ?>
<div id='content'>
<div id='left' style='width: 100%;'>
<font size='2' face='verdana,news gothic,arial,heltevica,serif'>
<b>Username</b><br>
<table width='500px'>
<tr>
<td width='200px'>
<?php echo getUsername($number); ?>
</td>
<td width='300px'>
<a href="javascript:toggledisplay('username_change','');">Change username</a>
</td>
</tr>
</table>
<b>Password</b><br>
<table width='500px'>
<tr>
<td width='200px'>
*******
</td>
<td width='300px'>
<a href="javascript:toggledisplay('password_change','');">Change password</a>
</td>
</tr>
</table>
<div id='errors'>
<font face='verdana' color='red'><?php echo $errors;?></font>
</div>
<div id='username_change' style='display:none;'>
<form action='<?php echo $_SERVER['self']; ?>' method='post' name='usrchng'>
<input type='text' name='new_username' value='<?php echo getUsername($number); ?>' style='width: 200px;'>
<input type='submit' value='Change' name='user_change' style='width: 90px; background-color: #f8f8f8; ; color: black;'/>
</form>
</div>
<div id='password_change' style='display:none;'>
<form action='<?php echo $_SERVER['self']; ?>' method='post' name='passchng'>
Old password: <input type='password' name='old_passname' value='' style='width: 200px;'><br>
New password: <input type='password' name='new_passname' value='' style='width: 200px;'><br>
Confirm new password: <input type='password' name='new_passname_c' value='' style='width: 200px;'><br>
<input type='submit' value='Change' name='pass_change' style='width: 90px; background-color: #f8f8f8; ; color: black;'/>
</form>
</div>
</font>
</div>
</div>
</div>
</body>
</html>