Add capability to the editor to work with grammar, script, php, xml, and provsion directories.

This commit is contained in:
Mark Crane
2013-05-25 16:19:40 +00:00
parent f00cde21df
commit bacc8f5551
7 changed files with 183 additions and 23 deletions
+15 -1
View File
@@ -229,7 +229,21 @@ echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><IMG SRC=\"i
//echo "</DIV></TD></TR></TABLE>\n";
//echo "</DIV></TD></TR></TABLE>\n";
echo recur_dir($_SESSION['switch']['scripts']['dir']);
if ($_SESSION["app"]["edit"]["dir"] == "scripts") {
echo recur_dir($_SESSION['switch']['scripts']['dir']);
}
if ($_SESSION["app"]["edit"]["dir"] == "php") {
echo recur_dir($_SERVER["DOCUMENT_ROOT"].'/'.PROJECT_PATH);
}
if ($_SESSION["app"]["edit"]["dir"] == "grammar") {
echo recur_dir($_SESSION['switch']['grammar']['dir']);
}
if ($_SESSION["app"]["edit"]["dir"] == "provision") {
echo recur_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/includes/templates/provision/");
}
if ($_SESSION["app"]["edit"]["dir"] == "xml") {
echo recur_dir($_SESSION['switch']['conf']['dir']);
}
echo "</DIV></TD></TR></TABLE>\n";