VPN-Management-GUI 2.0.3 porting start
This commit is contained in:
41
Admin/Modules/VPNconfig/include/ipp.php
Normal file
41
Admin/Modules/VPNconfig/include/ipp.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
$moduleurl = $_SERVER["REQUEST_URI"];
|
||||
|
||||
$ovpnconfdir = db_getconfval("ovpnconfdir");
|
||||
$sqddir = db_getconfval("sqddir");
|
||||
$ovpnconffile = db_getconfval("ovpnconffile");
|
||||
// echo $ovpnconfdir."/".$ovpnconffile;
|
||||
|
||||
echo "
|
||||
Change the OpenVPN Client IP list...";
|
||||
if ($_REQUEST["uebergabe3"] == "1")
|
||||
{
|
||||
$check_ok = "<b><br /><br />Die Daten wurden erfolgreich gespeichert!</b>";
|
||||
echo $check_ok;
|
||||
}
|
||||
if ($_REQUEST["submit"] == "Speichern")
|
||||
{
|
||||
$fp = fopen($sqddir."/ipp.txt","w");
|
||||
$data =$_REQUEST["inhalt"];
|
||||
$data = str_replace("\r","",$data);
|
||||
fputs($fp,$data);
|
||||
fclose($fp);
|
||||
|
||||
echo "<meta http-equiv=\"Refresh\" content=\"4; url=".$moduleurl."&uebergabe3=1\">";
|
||||
$check_ok = "<font color = 'red'><br /><br />Ihre Daten wurden erfolgreich geändert!<br>Bitte warten sie bis die Daten aktualisiert werden.</font>";
|
||||
echo $check_ok;
|
||||
}
|
||||
echo "<form action=\"".$_SERVER["REQUEST_URI"]."\" method =\"post\">
|
||||
<textarea name=\"inhalt\" rows=20 cols=100 wrap=\"virtual\">
|
||||
";
|
||||
|
||||
include($ovpnconfdir."/ipp.txt");
|
||||
|
||||
echo "
|
||||
</textarea><br />
|
||||
<input name=\"submit\" type=\"submit\" id=\"submit\" value=\"Speichern\" />
|
||||
<input type=\"reset\" name=\"Submit2\" value=\"Reset\" />
|
||||
|
||||
</form>";
|
||||
|
||||
?>
|
Reference in New Issue
Block a user