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

Annotation of /fenglin/manage/db_daily_process.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Jun 15 18:16:18 2004 UTC (21 years, 9 months ago) by sysadm
Branch: MAIN
Add shell for db_cleanup and db_repair

1 sysadm 1.1 <?
2     switch($_SERVER["argc"])
3     {
4     case 1:
5     break;
6     default:
7     echo ("Usage: db_daily_process.php\n");
8     exit();
9     }
10    
11     chdir(substr($_SERVER["argv"][0],0,strrpos($_SERVER["argv"][0],"/")));
12    
13     require_once "./session_init.inc.php";
14    
15     //Set data for session
16     $_SESSION["MNG_uid"]=-1;
17     $_SESSION["MNG_priv"]["db_cleanup"]=1;
18     $_SESSION["MNG_priv"]["score_cacl"]=1;
19    
20     include "./db_cleanup.php";
21     include "./db_repair.php";
22    
23     include "./bbs_score_calculate.php";
24    
25     session_unset();
26     session_destroy();
27     ?>

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