OpenVPN_Management_GUI/Modules/Forum/index.php

45 lines
1.7 KiB
PHP
Raw Normal View History

2012-07-16 21:30:19 +02:00
<?php
$moduleurl = $_SERVER["REQUEST_URI"];
$urlcut = strpos($moduleurl, "&");
2012-07-16 22:56:46 +02:00
if($urlcut > 0) {
2012-07-16 21:30:19 +02:00
$moduleurl = substr($moduleurl,0,$urlcut);
2012-07-16 22:56:46 +02:00
} else {
if(strpos($moduleurl, "?") == 0) {
$moduleurl = $_SERVER["REQUEST_URI"] . "?site=1";
2012-07-16 21:30:19 +02:00
}
2012-07-16 22:56:46 +02:00
if($_SERVER["REQUEST_URI"] == "/" || is_null($_SERVER["REQUEST_URI"])) {
2012-07-16 21:30:19 +02:00
$moduleurl = "/index.php?site=1";
}
}
$moduleurl1 = $moduleurl;
2012-07-16 22:56:46 +02:00
?>
<!-- MAIN -->
<div id="main">
<div class="wrapper">
<?php
switch($uebergabe) {
2012-07-16 21:30:19 +02:00
//-----------------------------------------------------------------------------------------------------------------------------------------------------------
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;
}
2012-07-16 22:56:46 +02:00
?>
</div>
</div>
2012-07-16 21:30:19 +02:00