diff --git a/index.php b/index.php index ed5509a..7023602 100755 --- a/index.php +++ b/index.php @@ -23,17 +23,6 @@ if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { } require "locales/" . $locale . ".php"; -// Defines the root URL -if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') - $protocol = "https"; -else - $protocol = "http"; -$rootPath = $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; -$rootPath = preg_replace('#\?.*$#', '', $rootPath); -$rootPath = preg_replace('#(manifest|opensearch|index).php$#i', '', $rootPath); - -require "themes/" . THEME . "/theme.php"; // Load the theme - $params = array( "txt" => "", "redundancy" => DEFAULT_REDUNDANCY, @@ -116,11 +105,12 @@ if ( 'css/', 'compress' => true); $cssFileName = Less_Cache::Get(array("style.less" => ""), $options, $colorScheme); ?>