fixed first name not being shown correctly
This commit is contained in:
parent
0ce0c5dccb
commit
975217fe80
30
welcome.php
Normal file
30
welcome.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
require_once("./assets/php/utils.php");
|
||||||
|
|
||||||
|
// Check if the user is logged in, if not then redirect him to login page
|
||||||
|
if(!is_connected()){
|
||||||
|
header("location: login.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Welcome</title>
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css">
|
||||||
|
<style type="text/css">
|
||||||
|
body{ font: 14px sans-serif; text-align: center; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>Hi, <b><?php echo htmlspecialchars(get_user_info_from_session_id($_COOKIE[$SESSION_COOKIE_NAME], "first_name")); ?></b>. Welcome to our site.</h1>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
<a href="reset-password.php" class="btn btn-warning">Reset Your Password</a>
|
||||||
|
<a href="logout.php" class="btn btn-danger">Sign Out of Your Account</a>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user