diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-14 16:45:59 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-14 16:45:59 +1100 |
| commit | a79b8c473b8ac136ede9f1333be891b11d068f76 (patch) | |
| tree | 80346a56345233211490b821a8dee57f44a3dbc6 /tools | |
| parent | e6854ad5469f7885a2858692f37c767662b390bf (diff) | |
use system account
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/inc/cli.php | 10 | ||||
| -rwxr-xr-x | tools/rebuild.php | 11 |
2 files changed, 19 insertions, 2 deletions
diff --git a/tools/inc/cli.php b/tools/inc/cli.php new file mode 100644 index 00000000..5305c1ac --- /dev/null +++ b/tools/inc/cli.php @@ -0,0 +1,10 @@ +<?php + +$mod = Array( + 'id' => -1, + 'type' => ADMIN, + 'username' => '?', + 'boards' => Array('*') +); + + diff --git a/tools/rebuild.php b/tools/rebuild.php index 8bb8373b..9099ffeb 100755 --- a/tools/rebuild.php +++ b/tools/rebuild.php @@ -7,7 +7,14 @@ require 'inc/user.php'; require 'inc/mod.php'; - set_time_limit($config['mod']['rebuild_timelimit']); + require dirname(__FILE__) . '/inc/cli.php'; + + $mod = Array( + 'id' => -1, + 'type' => ADMIN, + 'username' => '?', + 'boards' => Array('*') + ); $start = microtime(true); @@ -71,5 +78,5 @@ printf("Complete! Took %g seconds\n", microtime(true) - $start); - // modLog('Rebuilt everything using tools/rebuild.php'); + modLog('Rebuilt everything using tools/rebuild.php'); |
