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/rebuild.php | |
| parent | e6854ad5469f7885a2858692f37c767662b390bf (diff) | |
use system account
Diffstat (limited to 'tools/rebuild.php')
| -rwxr-xr-x | tools/rebuild.php | 11 |
1 files changed, 9 insertions, 2 deletions
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'); |
