3 require_once("boot.php");
6 @include(".htconfig.php");
8 $lang = get_browser_language();
9 load_translation_table($lang);
11 require_once("include/dba.php");
12 $db = new dba($db_host, $db_user, $db_pass, $db_data, false);
13 unset($db_host, $db_user, $db_pass, $db_data);
14 load_config('config');
15 load_config('system');
19 $maint_mode = intval($argv[1]);
20 set_config('system', 'maintenance', $maint_mode);
23 $mode_str = "maintenance mode";
25 $mode_str = "normal mode";
27 echo "\n\tSystem set in $mode_str\n\n";
29 echo "\tphp {$argv[0]} [1]\tSet the system in maintenance mode\n";
30 echo "\tphp {$argv[0]} 0 \tSet the system in normal mode\n\n";