Browse Source

Rename .project.ROOT to project_root.php this conforms better with current file naming standards.

markjcrane 9 years ago
parent
commit
f31800f9c0

+ 6 - 6
core/apps/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/databases/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/default_settings/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/domain_settings/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/install/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/menu/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/notifications/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/upgrade/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/user_settings/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
core/users/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 0 - 0
.project.ROOT → project_root.php


+ 6 - 6
resources/captcha/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
resources/classes/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
resources/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
themes/accessible/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
themes/enhanced/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);

+ 6 - 6
themes/minimized/root.php

@@ -39,14 +39,14 @@
 		chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME));
 		$script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
 		$dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
-		if (file_exists('/.project.ROOT')) {
+		if (file_exists('/project_root.php')) {
 			$path = '/';
 		} else {
 			$i    = 1;
 			$path = '';
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
@@ -61,7 +61,7 @@
 	if (!defined('PROJECT_PATH')) {
 		if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
 			define('PROJECT_PATH', '/fusionpbx');
-		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/.project.ROOT')) {
+		} elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
 			define('PROJECT_PATH', '');
 		} else {
 			$dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
@@ -69,13 +69,13 @@
 			$path = $_SERVER["DOCUMENT_ROOT"];
 			while ($i < count($dirs)) {
 				$path .= '/' . $dirs[$i];
-				if (file_exists($path. '/.project.ROOT')) {
+				if (file_exists($path. '/project_root.php')) {
 					break;
 				}
 				$i++;
 			}
-			if(!file_exists($path. '/.project.ROOT')){
-				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+			if(!file_exists($path. '/project_root.php')){
+				die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);