Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 81ba383

Browse files
committed
Massive clean: remove IE7 specific resources plus unused classes or archived classes.
1 parent b75f3d0 commit 81ba383

22 files changed

+2
-11539
lines changed

core/src/plugins/gui.ajax/class.AJXP_ClientDriver.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ public function isEnabled()
3838
public function loadConfigs($configData)
3939
{
4040
parent::loadConfigs($configData);
41-
if (preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT'])) {
42-
// Force legacy theme for the moment
43-
$this->pluginConf["GUI_THEME"] = "oxygen";
44-
}
4541
if (!defined("AJXP_THEME_FOLDER")) {
4642
define("CLIENT_RESOURCES_FOLDER", AJXP_PLUGINS_FOLDER."/gui.ajax/res");
4743
define("AJXP_THEME_FOLDER", CLIENT_RESOURCES_FOLDER."/themes/".$this->pluginConf["GUI_THEME"]);
@@ -53,10 +49,6 @@ public function loadConfigs($configData)
5349

5450
public function switchAction($action, $httpVars, $fileVars)
5551
{
56-
if (preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT'])) {
57-
// Force legacy theme for the moment
58-
$this->pluginConf["GUI_THEME"] = "oxygen";
59-
}
6052
if (!defined("AJXP_THEME_FOLDER")) {
6153
define("CLIENT_RESOURCES_FOLDER", AJXP_PLUGINS_FOLDER."/gui.ajax/res");
6254
define("AJXP_THEME_FOLDER", CLIENT_RESOURCES_FOLDER."/themes/".$this->pluginConf["GUI_THEME"]);
@@ -227,8 +219,8 @@ public function switchAction($action, $httpVars, $fileVars)
227219
} else {
228220
$content = file_get_contents(AJXP_INSTALL_PATH."/plugins/gui.ajax/res/html/gui.html");
229221
}
230-
if (preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT'])) {
231-
$content = str_replace("ajaxplorer_boot.js", "ajaxplorer_boot_protolegacy.js", $content);
222+
if (preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT'])){
223+
$ADDITIONAL_FRAMEWORKS = "";
232224
}
233225
$content = str_replace("AJXP_ADDITIONAL_JS_FRAMEWORKS", $ADDITIONAL_FRAMEWORKS, $content);
234226
$content = AJXP_XMLWriter::replaceAjxpXmlKeywords($content, false);

core/src/plugins/gui.ajax/res/html/gui_debug.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323

2424
<?php
2525
$list = AJXP_INSTALL_PATH."/".CLIENT_RESOURCES_FOLDER."/js/ajaxplorer_boot_list.txt";
26-
if(preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT']) || preg_match('/MSIE 8/',$_SERVER['HTTP_USER_AGENT'])){
27-
$list = AJXP_INSTALL_PATH."/".CLIENT_RESOURCES_FOLDER."/js/ajaxplorer_boot_protolegacy_list.txt";
28-
}
2926
$lines = file($list);
3027
foreach ($lines as $line){
3128
print("<script language=\"javascript\" type=\"text/javascript\" src=\"".CLIENT_RESOURCES_FOLDER."/".trim($line)."\"></script>\n");

core/src/plugins/gui.ajax/res/js/ajaxplorer_boot_protolegacy.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/src/plugins/gui.ajax/res/js/ajaxplorer_boot_protolegacy_list.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)