| 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 |
|
|
?>
|