Changed status page to use config-check (tentative) and removed time-intensive check in index routing
This commit is contained in:
parent
2f0b3d423c
commit
44018b2cbf
5 changed files with 201 additions and 67 deletions
|
@ -1,17 +1,3 @@
|
|||
html {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 2em 0;
|
||||
min-width: 600px;
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
margin: 3em auto;
|
||||
border: 1px solid lightgray;
|
||||
border-radius: 5em;
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
|
|
|
@ -16,6 +16,11 @@ function showConfigCheckPage() {
|
|||
die();
|
||||
}
|
||||
|
||||
function isApiCall() {
|
||||
$path = $_SERVER['PHP_SELF'];
|
||||
return strpos($path, "api") !== false;
|
||||
}
|
||||
|
||||
// Define application path constants
|
||||
define('ROOT_PATH', dirname( __DIR__) . '/');
|
||||
define('LIB_PATH', ROOT_PATH . 'library/');
|
||||
|
@ -40,20 +45,6 @@ if (array_key_exists('config', $_GET)) {
|
|||
|
||||
// If a configuration file exists, forward to our boot script
|
||||
if (file_exists(AIRTIME_CONFIG_STOR . AIRTIME_CONFIG)) {
|
||||
/*
|
||||
* Even if the user has been through the setup process and
|
||||
* created an airtime.conf file (or they may have simply
|
||||
* copied the example file) their settings aren't necessarily
|
||||
* correctly configured.
|
||||
*
|
||||
* If something is improperly configured, show the user a
|
||||
* configuration checklist page so they know what went wrong
|
||||
*/
|
||||
if (!checkConfiguration()) {
|
||||
$configRun = true;
|
||||
showConfigCheckPage();
|
||||
}
|
||||
|
||||
require_once(APPLICATION_PATH . 'airtime-boot.php');
|
||||
}
|
||||
// Otherwise, we'll need to run our configuration setup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue