Merge pull request #1396 from mafoo/Enhance-BugFix

Enhance root.php
This commit is contained in:
FusionPBX 2016-01-18 11:22:41 -07:00
commit 1e9343aa46
69 changed files with 207 additions and 0 deletions

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}

View File

@ -74,6 +74,9 @@
}
$i++;
}
if(!file_exists($path. '/.project.ROOT')){
throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
}
$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
define('PROJECT_PATH', $project_path);
}