mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add capability to the editor to work with grammar, script, php, xml, and provsion directories.
This commit is contained in:
@@ -232,7 +232,21 @@ echo "\n";
|
||||
echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><a href='javascript:void(0);' onclick=\"if (typeof(clipwin)!='undefined') { clipwin.close(); } clipwin = window.open('fileoptions.php?folder=".urlencode($_SERVER["DOCUMENT_ROOT"])."','null','left=20,top=20,width=310,height=300,toolbar=0,resizable=0');\" style='text-decoration:none;' title=''><IMG SRC=\"images/folder.gif\" border='0'> ".$text['label-files']." </a><DIV style=''>\n"; //display:none
|
||||
//echo " <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD><A onClick=\"Toggle(this)\"><IMG SRC=\"images/plus.gif\"> <IMG SRC=\"images/folder.gif\"> Files </A><DIV style=''>\n"; //display:none
|
||||
|
||||
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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user