OpenVPN_Management_GUI/Admin/Modules/VPNconfig/index.php

70 lines
2.2 KiB
PHP
Raw Normal View History

2012-07-17 21:22:21 +02:00
<!-- MAIN -->
<div id="main">
<div class="wrapper">
2012-07-16 21:30:19 +02:00
<?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";
}
}
include ($_SERVER["DOCUMENT_ROOT"]."/Site/checkadmin.php");
//include_once ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/config.inc");
//include_once ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/functions.inc");
$mode = $_REQUEST["uebergabe"];
$cert = $_REQUEST["uebergabe2"];
echo" <p><a href=\"".$moduleurl."&uebergabe=0\">Home</a>
| <a href=\"".$moduleurl."&uebergabe=1\">Status</a>
| <a href=\"".$moduleurl."&uebergabe=2\">Config</a>
| <a href=\"".$moduleurl."&uebergabe=3\">Certificates</a>
| <a href=\"".$moduleurl."&uebergabe=6\">IP-List</a>
| <a href=\"".$moduleurl."&uebergabe=7\">Config-Editor</a>
| <a href=\"".$moduleurl."&uebergabe=4\">Systemcheck</a><hr /><br />";
switch($mode)
{
case 1:
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/status.php");
break;
case 2:
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/config.php");
break;
case 3:
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/certs.php");
break;
case 4:
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/sys.php");
break;
case 5:
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/viewcert.php");
break;
case 6:
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/ipp.php");
break;
case 7:
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/config-edit.php");
break;
default:
2012-07-17 21:22:21 +02:00
echo"<h1><b>VPN Configuration</b></h1><br/>
<h2>Choose an action:</h2><br/>
2012-07-16 21:30:19 +02:00
<p># <a href=\"".$moduleurl."&uebergabe=1\">Status</a></p>
<p># <a href=\"".$moduleurl."&uebergabe=2\">Config</a></p>
<p># <a href=\"".$moduleurl."&uebergabe=3\">Certificates</a></p>
<p># <a href=\"".$moduleurl."&uebergabe=6\">IP-List</a></p>
<p># <a href=\"".$moduleurl."&uebergabe=7\">Config Editor</a></p>
<p># <a href=\"".$moduleurl."&uebergabe=4\">Systemcheck</a></p><br />";
break;
}
?>
2012-07-17 21:22:21 +02:00
</div>
</div>