3 use \Friendica\Core\Config;
5 require_once("boot.php");
8 @include(".htconfig.php");
10 $lang = get_browser_language();
11 load_translation_table($lang);
13 require_once("include/dba.php");
14 $db = new dba($db_host, $db_user, $db_pass, $db_data, false);
15 unset($db_host, $db_user, $db_pass, $db_data);
21 $maint_mode = intval($argv[1]);
22 set_config('system', 'maintenance', $maint_mode);
25 $mode_str = "maintenance mode";
27 $mode_str = "normal mode";
29 echo "\n\tSystem set in $mode_str\n\n";
31 echo "\tphp {$argv[0]} [1]\tSet the system in maintenance mode\n";
32 echo "\tphp {$argv[0]} 0 \tSet the system in normal mode\n\n";