footer.html
来自「用PHP/MySQL/Apache实现的简单用户注册/登录系统。」· HTML 代码 · 共 25 行
HTML
25 行
</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 + =
减小字号Ctrl + -
显示快捷键?