OpenVPN_Management_GUI/Modules/Downloads/index.php

41 lines
1.8 KiB
PHP

<?php
$moduleurl = $_SERVER["REQUEST_URI"];
$urlcut = strpos($moduleurl, "&");
$moduleurl = substr($moduleurl,0,$urlcut);
?>
<!-- MAIN CONTENT BEGINN ################################################################################ -->
<div class="art-content">
<div class="art-Post">
<div class="art-Post-body">
<div class="art-Post-inner">
<h2 class="art-PostHeaderIcon-wrapper">
<span class="art-PostHeader">Downloads</span>
</h2>
<div class="art-PostContent">
<?php
//------------------------------------------------------------------------------
umask(002); // Added to make created files/dirs group writable
//------------------------------------------------------------------------------
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/init.php"; // Init
//------------------------------------------------------------------------------
switch($GLOBALS["action"]) { // Execute action
//------------------------------------------------------------------------------
// DEFAULT: LIST FILES & DIRS
case "list":
default:
$GLOBALS["script_name"] = $moduleurl;
include( $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/fun_list.php");
list_dir($GLOBALS["dir"]);
//------------------------------------------------------------------------------
} // end switch-statement
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
?>
</div>
</div>
</div>
</div>
</div>
<!-- END CONTENT BEGINN ################################################################################# -->