aboutsummaryrefslogtreecommitdiff
path: root/www/setup.php
blob: d62efe0d3918f945bafab037369de75394d8daf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Check if all is setup correctly
 */
namespace phorkie;
$reqWritePermissions = false;
require_once 'www-header.php';

if (!$GLOBALS['phorkie']['cfg']['setupcheck']) {
    header('HTTP/1.0 403 Forbidden');
    header('Content-type: text/plain');
    echo "Setup check is disabled\n";
    exit(1);
}

SetupCheck::run();

header('Content-type: text/plain');
echo "All fine\n";
?>