|
@@ -89,7 +89,7 @@
|
|
$edit_directory = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/provision";
|
|
$edit_directory = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/provision";
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
- default:
|
|
|
|
|
|
+ default:
|
|
$edit_directory = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/provision/";
|
|
$edit_directory = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/provision/";
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -119,8 +119,14 @@
|
|
|
|
|
|
//validate the path
|
|
//validate the path
|
|
if (realpath($path_prefix) == realpath($edit_directory)) {
|
|
if (realpath($path_prefix) == realpath($edit_directory)) {
|
|
|
|
+ //clear the output
|
|
|
|
+ ob_clean();
|
|
|
|
+
|
|
|
|
+ //send the content of the file
|
|
|
|
+ echo file_get_contents($file_name);
|
|
|
|
|
|
//get the contents of the file
|
|
//get the contents of the file
|
|
|
|
+ /*
|
|
$handle = fopen($file_name, "r");
|
|
$handle = fopen($file_name, "r");
|
|
if ($handle) {
|
|
if ($handle) {
|
|
while (!feof($handle)) {
|
|
while (!feof($handle)) {
|
|
@@ -129,6 +135,7 @@
|
|
}
|
|
}
|
|
fclose($handle);
|
|
fclose($handle);
|
|
}
|
|
}
|
|
|
|
+ */
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|