/[LeafOK_CVS]/lbbs/utils/bin/gen_section_menu.php
ViewVC logotype

Diff of /lbbs/utils/bin/gen_section_menu.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 by sysadm, Mon Oct 13 00:18:28 2025 UTC Revision 1.13 by sysadm, Tue Jan 6 15:43:33 2026 UTC
# Line 2  Line 2 
2          if (!isset($_SERVER["argc"]))          if (!isset($_SERVER["argc"]))
3          {          {
4                  echo ("Invalid usage");                  echo ("Invalid usage");
5                  exit();                  exit(-1);
6          }          }
7    
8          chdir(dirname($_SERVER["argv"][0]));          chdir(dirname($_SERVER["argv"][0]));
# Line 18  Line 18 
18          if ($buffer == false)          if ($buffer == false)
19          {          {
20                  echo "Unable to load menu config file " . $menu_input_path . "\n";                  echo "Unable to load menu config file " . $menu_input_path . "\n";
21                  exit();                  exit(-2);
22          }          }
23    
24          // Load section list          // Load section list
# Line 84  Line 84 
84          if ($ret == false)          if ($ret == false)
85          {          {
86                  echo "Query section list error: " . mysqli_error($db_conn);                  echo "Query section list error: " . mysqli_error($db_conn);
87                  exit();                  exit(-3);
88          }          }
89    
90          // Generate menu of section class          // Generate menu of section class
# Line 229  MENU; Line 229  MENU;
229          if ($ret == false)          if ($ret == false)
230          {          {
231                  echo "Query excerptional section list error: " . mysqli_error($db_conn);                  echo "Query excerptional section list error: " . mysqli_error($db_conn);
232                  exit();                  exit(-3);
233          }          }
234    
235          // Generate menu of excerptional section class          // Generate menu of excerptional section class
# Line 346  MENU; Line 346  MENU;
346          // Generate menu of favorite sections          // Generate menu of favorite sections
347          $buffer .= <<<MENU          $buffer .= <<<MENU
348  #---------------------------------------------------------------------  #---------------------------------------------------------------------
349  %menu M_FAVOUR  %menu M_FAVOR_SECTION
350  title       0, 0, "[版块收藏]"  title       0, 0, "[版块收藏]"
351  screen      2, 0, S_BOARD  screen      2, 0, S_BOARD
352  use_filter  use_filter


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1