Browse Source

Further clean up

nsITobin 3 years ago
parent
commit
c305dc6e70
1 changed files with 3 additions and 20 deletions
  1. 3 20
      index.php

+ 3 - 20
index.php

@@ -23,24 +23,6 @@ const SOFTWARE_VERSION    = '1.0.0a1';
 // the globalConstants/globalFunctions scheme used by other BinOC Applications.
 require_once('./fundamentals.php');
 
-
-const HTTPS_SCHEME          = 'https' . SCHEME_SUFFIX;
-const BINOC_DOMAIN          = 'binaryoutcast.com';
-
-// ====================================================================================================================
-
-// == | Functions | ===================================================================================================
-
-/**********************************************************************************************************************
-* Adhoc load a "component" and ensure that the script exits after execution if not terminated earlier
-*
-* @param $aComponentPath  string
-**********************************************************************************************************************/
-function gfLoadComponent($aComponentPath) {
-  require_once($aComponent);
-  exit();
-}
-
 // ====================================================================================================================
 
 // == | Main | ========================================================================================================
@@ -85,11 +67,12 @@ if ($gaRuntime['qComponent'] != 'site') {
 $gaRuntime['currentDomain'] = gfSuperVar('var', gfGetDomain($gaRuntime['phpServerName']));
 $gaRuntime['currentSubDomain'] = gfSuperVar('var', gfGetDomain($gaRuntime['phpServerName'], true));
 
-// Switch to the special component
+// --------------------------------------------------------------------------------------------------------------------
+
+// Switch to the special component internally
 $gaRuntime['qComponent'] = 'special';
 require_once(gfBuildPath(ROOT_PATH, 'base', $gaRuntime['qComponent'] . PHP_EXTENSION));
 exit();
-}
 
 // ====================================================================================================================
 ?>