OpenVPN_Management_GUI/Modules/Forum/index.php

45 lines
1.7 KiB
PHP
Executable File

<?php
$moduleurl = $_SERVER["REQUEST_URI"];
$urlcut = strpos($moduleurl, "&");
if($urlcut > 0) {
$moduleurl = substr($moduleurl,0,$urlcut);
} else {
if(strpos($moduleurl, "?") == 0) {
$moduleurl = $_SERVER["REQUEST_URI"] . "?site=1";
}
if($_SERVER["REQUEST_URI"] == "/" || is_null($_SERVER["REQUEST_URI"])) {
$moduleurl = "/index.php?site=1";
}
}
$moduleurl1 = $moduleurl;
?>
<!-- MAIN -->
<div id="main">
<div class="wrapper">
<?php
switch($uebergabe) {
//-----------------------------------------------------------------------------------------------------------------------------------------------------------
case "0":
include($_SERVER["DOCUMENT_ROOT"]."/Modules/Forum/include/viewforum.php");
break;
//-------------------------------------------------------------------------------------------------------------------------
//view topic---------------------------------------------------------------------------------------------------------------
case "1":
include($_SERVER["DOCUMENT_ROOT"]."/Modules/Forum/include/viewtopic.php");
break;
//-------------------------------------------------------------------------------------------------------------------------
//add topic----------------------------------------------------------------------------------------------------------------
case "2":
include($_SERVER["DOCUMENT_ROOT"]."/Modules/Forum/include/addtopic.php");
break;
//-------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------
default:
include($_SERVER["DOCUMENT_ROOT"]."/Modules/Forum/include/viewforum.php");
break;
}
?>
</div>
</div>