/[LeafOK_CVS]/fenglin/bbs/section_list.inc.php
ViewVC logotype

Diff of /fenglin/bbs/section_list.inc.php

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

Revision 1.1 by sysadm, Thu Apr 10 12:23:25 2025 UTC Revision 1.2 by sysadm, Thu Apr 10 13:38:44 2025 UTC
# Line 1  Line 1 
1  <?  <?
2  function load_section_list(array & $result, callable $filter, mysqli $db_conn) : bool  function load_section_list(array & $result, callable $filter, callable $udf_value_gen, mysqli $db_conn) : bool
3  {  {
4          $sql = "SELECT SID, section_config.CID, section_config.title AS s_title, section_class.title AS c_title          $sql = "SELECT SID, section_config.CID, section_config.title AS s_title, section_class.title AS c_title
5                          FROM section_config INNER JOIN section_class ON section_config.CID = section_class.CID                          FROM section_config INNER JOIN section_class ON section_config.CID = section_class.CID
# Line 39  function load_section_list(array & $resu Line 39  function load_section_list(array & $resu
39                          array_push($section_list, array(                          array_push($section_list, array(
40                                  "sid" => $row["SID"],                                  "sid" => $row["SID"],
41                                  "title" => $row["s_title"],                                  "title" => $row["s_title"],
42                                    "udf_values" => call_user_func($udf_value_gen, $row["SID"]),
43                          ));                          ));
44                  }                  }
45          }          }


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

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