admin.php

来自「php源码 php源码参考」· PHP 代码 · 共 41 行

PHP
41
字号
<?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 + =
减小字号Ctrl + -
显示快捷键?