⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 《PHP和MySQL Web开发》(第三版) Source
💻 PHP
字号:
<?php  include ('include_fns.php');  session_start();  // check if we have created our session variable  if(!isset($_SESSION['expanded']))  {    $_SESSION['expanded'] = array();  }  // check if an expand button was pressed    // expand might equal 'all' or a postid or not be set  if(isset($_GET['expand']))  {    if($_GET['expand'] == 'all')      expand_all($_SESSION['expanded']);    else      $_SESSION['expanded'][$_GET['expand']] = true;  }   // check if a collapse button was pressed    // collapse might equal all or a postid or not be set  if(isset($_GET['collapse']))  {    if($_GET['collapse']=='all')      $_SESSION['expanded'] = array();    else      unset($_SESSION['expanded'][$_GET['collapse']]);  }   do_html_header('Discussion Posts');  display_index_toolbar();  // display the tree view of conversations  display_tree($_SESSION['expanded']);    do_html_footer();?> 

⌨️ 快捷键说明

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