Parent Directory
|
Revision Log
Add support for invoked as web page
| 1 | <? |
| 2 | if (isset($_SERVER["argv"][0])) |
| 3 | chdir(substr($_SERVER["argv"][0],0,strrpos($_SERVER["argv"][0],"/"))); |
| 4 | |
| 5 | require_once "./session_init.inc.php"; |
| 6 | |
| 7 | //Set data for session |
| 8 | $_SESSION["MNG_uid"]=-1; |
| 9 | $_SESSION["MNG_priv"]["db_cleanup"]=1; |
| 10 | $_SESSION["MNG_priv"]["score_cacl"]=1; |
| 11 | |
| 12 | include "./db_cleanup.php"; |
| 13 | include "./db_repair.php"; |
| 14 | |
| 15 | include "./bbs_score_calculate.php"; |
| 16 | |
| 17 | session_unset(); |
| 18 | session_destroy(); |
| 19 | ?> |
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |