📄 footer.html
字号:
</div>
<div id="Menu">
<a href="index.php" title="Home Page">Home</a><br/>
<?php
if(isset($_SESSION['user_id'])){
echo '<a href="logout.php" title="Logout">Logout</a><br/>
<a href="change_password.php" title="Change Your Password">Change Password</a><br/>';
if($_SESSION['user_level']==1){
echo'<a href="view_users.php" title="View All Users">View Users</a><br/>
<a href="#">Some Admin Page</a><br/>';
}
}else{
echo '<a href="register.php" title="Register for the Site">Register</a><br/>
<a href="login.php" title="Login">Login</a><br/>
<a href="forgot_password.php" title="Password Retrieval">Retrieve Password</a><br/>';
}
?>
<a href="#">Some Page</a><br/>
<a href="#">Another Page</a><br/>
</div>
</body>
</html>
<?php
ob_end_flush();
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -