X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fincludes.php;h=a9af02b50245144ec9ed515900e5e26c51395b59;hp=96e6aba694b26c46be536097fa418621a8f60519;hb=b848cab53db89342f0a854a00be91cadbcff2967;hpb=425cd4dda06724de295f7762c27efc2e539c2a53 diff --git a/inc/includes.php b/inc/includes.php index 96e6aba..a9af02b 100644 --- a/inc/includes.php +++ b/inc/includes.php @@ -29,14 +29,14 @@ $cfg = FrameworkConfiguration::getInstance(); require(sprintf("%sinc/loader/class_ClassLoader%s", PATH, $cfg->readConfig('php_extension'))); // Does the user has an application specified? -if (!empty($_GET[$cfg->readConfig('app_selector_get')])) { +if (!empty($_GET['app'])) { // Set the application from string - $application = (string) $_GET[$cfg->readConfig('app_selector_get')]; + $application = (string) $_GET['app']; } elseif (!empty($_SERVER['argv'][1])) { // Set the application from string $application = (string) $_SERVER['argv'][1]; $app = explode('=', trim($application)); - if ($app[0] == $cfg->readConfig('app_selector_get')) { + if ($app[0] == 'app') { // Application is valid! $application = trim($app[1]); } else {