Update fileoptions.php

This commit is contained in:
FusionPBX
2017-09-19 11:23:57 -06:00
committed by GitHub
parent 05f76b0556
commit c6ac0ea80a
+8
View File
@@ -24,9 +24,13 @@
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com> James Rose <james.o.rose@gmail.com>
*/ */
//includes
include "root.php"; include "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
require_once "resources/check_auth.php"; require_once "resources/check_auth.php";
//check permissions
if (permission_exists('script_editor_view')) { if (permission_exists('script_editor_view')) {
//access granted //access granted
} }
@@ -39,15 +43,18 @@ else {
$language = new text; $language = new text;
$text = $language->get(); $text = $language->get();
//set the title and include the header
$title = $text['title-manage-files']; $title = $text['title-manage-files'];
require_once "header.php"; require_once "header.php";
//set the variables
$file = $_GET["file"]; $file = $_GET["file"];
$file = str_replace ("\\", "/", $file); $file = str_replace ("\\", "/", $file);
$folder = $_GET["folder"]; $folder = $_GET["folder"];
$folder = str_replace ($file, "", $folder); $folder = str_replace ($file, "", $folder);
$urlpath = str_replace ($_SERVER["DOCUMENT_ROOT"], "", $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 "<table cellpadding='0' cellspacing='0' border='0' style='height: 100%; width: 100%;'>\n";
echo "<tr>"; echo "<tr>";
echo "<td colspan='2'>"; echo "<td colspan='2'>";
@@ -83,4 +90,5 @@ echo "</tr>\n";
echo "</table>"; echo "</table>";
require_once "footer.php"; require_once "footer.php";
?> ?>