Run Check Tables on Start

This commit is contained in:
earnolmartin 2023-10-07 12:25:35 -06:00
parent 2a9676d8ba
commit 2f2567645a

View file

@ -28,7 +28,6 @@ if($argv and $argc and (is_array($argv))and (!$user)) {
$op=$argv[1]; $op=$argv[1];
print_r($argv); print_r($argv);
echo "Commandline active, argc: $argc \n op:$op:\n argv:".print_r($argv); echo "Commandline active, argc: $argc \n op:$op:\n argv:".print_r($argv);
} else { } else {
session_start(); session_start();
} }
@ -39,8 +38,9 @@ $app->cerceve="standartcerceve";
$app->usertable="domainusers"; $app->usertable="domainusers";
$app->userfields=array("id","domainname","username","email","quota"); $app->userfields=array("id","domainname","username","email","quota");
$app->op=strtolower($op); $app->op=strtolower($op);
if($commandline) {
$app->checkTables(); // Check tables on daemon start
}
$app->run(); $app->run();
?> ?>