basic web+fork handling
[phorkie.git] / www / setup.php
1 <?php
2 /**
3  * Check if all is setup correctly
4  */
5 namespace phorkie;
6 $reqWritePermissions = false;
7 require_once 'www-header.php';
8
9 if (!$GLOBALS['phorkie']['cfg']['setupcheck']) {
10     header('HTTP/1.0 403 Forbidden');
11     header('Content-type: text/plain');
12     echo "Setup check is disabled\n";
13     exit(1);
14 }
15
16 SetupCheck::run();
17
18 header('Content-type: text/plain');
19 echo "All fine\n";
20 ?>