use system account

This commit is contained in:
Michael Save 2012-03-14 16:45:59 +11:00
parent e6854ad546
commit a79b8c473b
2 changed files with 19 additions and 2 deletions

10
tools/inc/cli.php Normal file
View File

@ -0,0 +1,10 @@
<?php
$mod = Array(
'id' => -1,
'type' => ADMIN,
'username' => '?',
'boards' => Array('*')
);

View File

@ -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');