/[LeafOK_CVS]/fenglin/manage/gen_ex_daily.php
ViewVC logotype

Annotation of /fenglin/manage/gen_ex_daily.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations)
Wed Mar 19 09:13:10 2025 UTC (11 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.5: +1 -38 lines
Refact gen_ex generating feature

1 sysadm 1.1 <?
2 sysadm 1.4 if (!isset($_SERVER["argc"]))
3     $_SERVER["argc"] = 0;
4    
5 sysadm 1.2 if (isset($_SERVER["argv"][0]))
6     chdir(substr($_SERVER["argv"][0],0,strrpos($_SERVER["argv"][0],"/")));
7 sysadm 1.1
8     require_once "./session_init.inc.php";
9    
10     //Set data for session
11     $_SESSION["MNG_uid"]=-1;
12     $_SESSION["MNG_priv"]["gen_ex"]=1;
13    
14     $new = false;
15    
16     $db_conn_shell=include "./db_open.inc.php";
17    
18     $rs_shell=mysql_query("select section_config.SID,section_config.title as s_title,".
19 sysadm 1.6 "section_config.ex_gen_tm,section_config.ex_update,".
20 sysadm 1.1 "section_class.title as c_title from section_config inner join section_class on".
21     " section_config.CID=section_class.CID where section_config.enable".
22     " and section_class.enable and ex_update=1 order by".
23     " section_class.sort_order,section_config.sort_order")
24     or die("Query section error!");
25    
26     while($row_shell=mysql_fetch_array($rs_shell))
27     {
28 sysadm 1.5 echo ("更新 [".$row_shell["s_title"]."] 中...\n");
29 sysadm 1.1 $_GET["sid"] = $row_shell["SID"];
30     include "./gen_ex_section.php";
31     $new = true;
32     }
33    
34     mysql_free_result($rs_shell);
35    
36 sysadm 1.2 if ($new)
37     {
38 sysadm 1.5 echo ("生成目录中...\n");
39 sysadm 1.2 include "./gen_ex_context.php";
40     }
41 sysadm 1.1
42     session_unset();
43     session_destroy();
44     ?>

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