From d42ea6f54bdfebbbf74c4180afc35a2568fd1f3d Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 11 Jan 2014 17:41:14 +0000 Subject: [PATCH] Establish the dir that ICEcoder is running from Used to exclude from file manager and search results --- lib/settings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/settings.php b/lib/settings.php index 3ecfe29..7b764cc 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -78,6 +78,9 @@ if ($_SESSION['loggedIn']) { echo ""; } +// 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