index.php

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

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