From b97c332f830c3541f2143764862d44308b2c2505 Mon Sep 17 00:00:00 2001 From: mattpass Date: Fri, 28 Feb 2020 17:08:07 +0000 Subject: [PATCH] Set iceURLPath, use that and remove top. --- lib/headers.php | 2 ++ lib/plugins-display.php | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/headers.php b/lib/headers.php index 52c3bbf..91274fd 100644 --- a/lib/headers.php +++ b/lib/headers.php @@ -4,6 +4,8 @@ if(strpos(str_replace("\\","/",dirname(__FILE__)),"tmp/oldVersion") !== false) { die("This is an old version of ICEcoder. Won't run from tmp/oldVersion/ dir."); } +$iceURLPath = rtrim(rtrim($_SERVER['REQUEST_URI'], "index.php"), "/"); + // Load common functions include_once(dirname(__FILE__)."/settings-common.php"); if (isset($_SESSION['text'])) { diff --git a/lib/plugins-display.php b/lib/plugins-display.php index 1a6e432..48c816f 100644 --- a/lib/plugins-display.php +++ b/lib/plugins-display.php @@ -10,19 +10,19 @@ if ($_SESSION['loggedIn']) { $pluginsDisplay = ""; for ($i=0;$i'.$ICEcoder[

'; + $pluginsDisplay .= ''.$ICEcoder[

'; }; // If we're updating plugins, update those shown if (isset($_GET['updatedPlugins'])) { - echo ""; + echo ""; } // Work out what plugins we'll need to set on a setInterval $onLoadExtras = ""; for ($i=0;$i