Establish the dir that ICEcoder is running from

Used to exclude from file manager and search results
This commit is contained in:
Matt Pass
2014-01-11 17:41:14 +00:00
parent 3c4a0eba6d
commit d42ea6f54b

View File

@@ -78,6 +78,9 @@ if ($_SESSION['loggedIn']) {
echo "<script>top.docRoot='".$docRoot."';top.iceRoot='".$iceRoot."'</script>";
}
// Establish the dir ICEcoders running from
$ICEcoderDir = rtrim(str_replace(str_replace("\\","/",$docRoot),"",str_replace("\\","/",dirname(__FILE__))),"/lib");
// Setup our file security vars
$settingsArray = array("findFilesExclude","bannedFiles","allowedIPs");
for ($i=0;$i<count($settingsArray);$i++) {