member.php

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

PHP
43
字号
<?php// include function files for this applicationrequire_once('bookmark_fns.php'); session_start();//create short variable names$username = $_POST['username'];$passwd = $_POST['passwd'];if ($username && $passwd)// they have just tried logging in{  try  {    login($username, $passwd);    // if they are in the database register the user id    $_SESSION['valid_user'] = $username;  }  catch(Exception $e)  {    // unsuccessful login    do_html_header('Problem:');    echo 'You could not be logged in.           You must be logged in to view this page.';    do_html_url('login.php', 'Login');    do_html_footer();    exit;  }      }do_html_header('Home');check_valid_user();// get the bookmarks this user has savedif ($url_array = get_user_urls($_SESSION['valid_user']))  display_user_urls($url_array);// give menu of optionsdisplay_user_menu();do_html_footer();?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?