OpenVPN_Management_GUI/Admin/Modules/Squid/changesquid.php

15 lines
422 B
PHP
Raw Normal View History

2012-07-16 21:30:19 +02:00
<?php
session_start();
include ($_SERVER["DOCUMENT_ROOT"]."/Site/checkadmin.php");
include ($_SERVER["DOCUMENT_ROOT"]."/Config/_siteconfig_.php");
$id = $_REQUEST["id"];
$path = $_REQUEST["path"];
// Write to file vpnid_man
$myFile = db_getconfval("sqddir")."/vpnid_man";
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $id);
fclose($fh);
header ("Location: ".$path."&uebergabe=1&uebergabe2=1");
?>