📄 admin.php
字号:
<?php// include function files for this applicationrequire_once('book_sc_fns.php'); session_start();if ($_POST['username'] && $_POST['passwd'])// they have just tried logging in{ $username = $_POST['username']; $passwd = $_POST['passwd']; if (login($username, $passwd)) { // if they are in the database register the user id $_SESSION['admin_user'] = $username; } else { // unsuccessful login do_html_header('Problem:'); echo 'You could not be logged in. You must be logged in to view this page.<br />'; do_html_url('login.php', 'Login'); do_html_footer(); exit; } }do_html_header('Administration');if (check_admin_user()) display_admin_menu();else echo 'You are not authorized to enter the administration area.';do_html_footer();?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -