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

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

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

Revision 1.14 by sysadm, Mon Oct 13 07:14:48 2025 UTC Revision 1.16 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 14  Line 14 
14          $menu_file_path = "../../var/bbs_top_menu.conf";          $menu_file_path = "../../var/bbs_top_menu.conf";
15    
16          $buffer_text =          $buffer_text =
17                  "                     \033[1;34m-----\033[37m=====\033[41;37m 本站十大热门话题 \033[40m=====\033[34m-----\033[m\r\n\r\n";                  "                     \033[1;34m-----\033[37m=====\033[41;37m 本站十大热门话题 \033[40m=====\033[34m-----\033[m\n\n";
18    
19          $buffer_screen = <<<SCREEN          $buffer_screen = <<<SCREEN
20  #---------------------------------------------------------------------  #---------------------------------------------------------------------
# Line 43  MENU; Line 43  MENU;
43          if ($rs == false)          if ($rs == false)
44          {          {
45                  echo("Query data error: " . mysqli_error($db_conn));                  echo("Query data error: " . mysqli_error($db_conn));
46                  exit();                  exit(-2);
47          }          }
48    
49          $i = 1;          $i = 1;


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

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