Update fileoptions.php

This commit is contained in:
FusionPBX 2017-09-19 11:23:57 -06:00 committed by GitHub
parent 05f76b0556
commit c6ac0ea80a
1 changed files with 60 additions and 52 deletions

View File

@ -24,9 +24,13 @@
Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com>
*/
//includes
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('script_editor_view')) {
//access granted
}
@ -39,15 +43,18 @@ else {
$language = new text;
$text = $language->get();
//set the title and include the header
$title = $text['title-manage-files'];
require_once "header.php";
//set the variables
$file = $_GET["file"];
$file = str_replace ("\\", "/", $file);
$folder = $_GET["folder"];
$folder = str_replace ($file, "", $folder);
$urlpath = str_replace ($_SERVER["DOCUMENT_ROOT"], "", $folder);
//show the content
echo "<table cellpadding='0' cellspacing='0' border='0' style='height: 100%; width: 100%;'>\n";
echo "<tr>";
echo "<td colspan='2'>";
@ -83,4 +90,5 @@ echo "</tr>\n";
echo "</table>";
require_once "footer.php";
?>