File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 3
3
include_once ('footer.php ' );
4
4
include_once ('db.php ' );
5
5
6
- $ strSQL = "SELECT * FROM users WHERE username = ' " .$ _SESSION ['username ' ]."' " ;
6
+ /* $strSQL = "SELECT * FROM users WHERE username = '".$_SESSION['username']."'";*/
7
7
?>
8
8
<!DOCTYPE html>
9
9
<html lang="en" dir="ltr">
15
15
</head>
16
16
<body>
17
17
<p>Welcome
18
- <strong>
18
+ <!-- < strong>
19
19
<?php echo $ _SESSION [username]; ?>
20
- </strong>
20
+ </strong> -->
21
21
</p>
22
22
</body>
23
23
</html>
Original file line number Diff line number Diff line change 37
37
38
38
39
39
$ req ->closeCursor ();
40
- header ("Location: index.php " );
40
+ header ("Location:index.php " );
41
41
42
42
exit ();
43
43
Original file line number Diff line number Diff line change 25
25
if ( !empty ($ _POST ['password ' ]) AND isset ($ _POST ['confirmPassword ' ])){
26
26
if ($ _POST ["password " ]== $ _POST ["confirmPassword " ]) {
27
27
$ password = trim ($ _POST ['password ' ]);
28
- $ passhash = password_hash ($ password, PASSWORD_DEFAULT );
28
+ $ passhash = sha1 ($ password );
29
29
}
30
30
}
31
31
else
54
54
55
55
$ req ->execute ();
56
56
$ req ->closeCursor ();
57
- header ("Location: index .php " );
57
+ header ("Location:profile .php " );
58
58
exit ();
59
59
60
-
61
-
62
60
}
63
61
else {
64
62
print_r ($ mistakes );
79
77
</head>
80
78
<body>
81
79
82
- <form method="post " class='login-form' action="signin.php">
80
+ <form method="POST " class='login-form' action="signin.php">
83
81
84
82
<div class="flex-row">
85
83
<label class="lf--label" for="username">
You can’t perform that action at this time.
0 commit comments