From 97f430b2b72302bcb56d80b1f31ae0723e4c8b7e Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Wed, 25 Jul 2012 19:10:08 +0100 Subject: [PATCH] shortURL changes shortURL is now basePath with shortURLStarts conditionally removed from start --- lib/file-control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index f3c4f5c..183b8ed 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -30,7 +30,8 @@ if ($_GET['action']=="load") { if ($_SESSION['userLevel'] == 10 || ($_SESSION['userLevel'] < 10 && $bannedFile==false)) { echo ''; + echo 'top.ICEcoder.shortURL = shortURL.substr(top.basePath.length);'; + echo 'if (shortURL.indexOf(top.shortURLStarts)==0) {shortURL.replace(top.shortURLStarts,"")}'; $loadedFile = file_get_contents($file); echo '","",$loadedFile).''; } else {