Remove unused code

This commit is contained in:
Miraty 2022-02-26 16:45:39 +01:00
parent c990ca46fb
commit bcab1baadf

View File

@ -23,17 +23,6 @@ if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
} }
require "locales/" . $locale . ".php"; 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( $params = array(
"txt" => "", "txt" => "",
"redundancy" => DEFAULT_REDUNDANCY, "redundancy" => DEFAULT_REDUNDANCY,
@ -116,11 +105,12 @@ if (
<meta name="referrer" content="no-referrer"> <meta name="referrer" content="no-referrer">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self' data:; style-src 'self'; form-action 'self';"> <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self' data:; style-src 'self'; form-action 'self';">
<?php <?php
require "themes/" . THEME . "/theme.php";
$colorScheme['theme'] = THEME;
require_once "less.php/lib/Less/Autoloader.php"; require_once "less.php/lib/Less/Autoloader.php";
Less_Autoloader::register(); Less_Autoloader::register();
$colorScheme['theme'] = THEME;
$options = array('cache_dir' => 'css/', 'compress' => true); $options = array('cache_dir' => 'css/', 'compress' => true);
$cssFileName = Less_Cache::Get(array("style.less" => ""), $options, $colorScheme); $cssFileName = Less_Cache::Get(array("style.less" => ""), $options, $colorScheme);
?> ?>