sourceforge/nodemin/trunk/dhcp/vytvor.php @ 768
4 | batix | <?
|
|
session_start();
|
|||
include "konstanty.php";
|
|||
include "kontrola_formu.php";
|
|||
//**************************************************************************************************************
|
|||
foreach($_POST as $ind_post => $val_post) {
|
|||
if (strstr($ind_post,"_kon_")) {
|
|||
$kontrola=str_replace("_kon_","",$ind_post);
|
|||
if (!$_POST[$kontrola]) {
|
|||
if (strstr($ind_post,"_CHECK_")) $_SESSION[$kontrola]="";
|
|||
if (strstr($ind_post,"_OnCHECK_")) $_SESSION[$kontrola]="off";
|
|||
if (strstr($ind_post,"_TrueCHECK_")) $_SESSION[$kontrola]="false";
|
|||
}
|
|||
}
|
|||
$_SESSION[$ind_post]=$val_post;
|
|||
//echo $ind_post."=".$val_post." *** ".$_SESSION[$ind_post]."<br>";
|
|||
}
|
|||
8 | batix | ||
4 | batix | $co="upraveno";
|
|
if ($_POST['icko']!="") {
|
|||
if ($_POST['pocet_subnet']==$_POST['icko']) {
|
|||
$_SESSION['pocet_subnet']++;
|
|||
$co="vytvoreno";
|
|||
}
|
|||
if ($_POST['pocet_group']==$_POST['icko']) {
|
|||
$_SESSION['pocet_group']++;
|
|||
$co="vytvoreno";
|
|||
}
|
|||
if ($_POST['pocet_host']==$_POST['icko']) {
|
|||
$_SESSION['pocet_host']++;
|
|||
$co="vytvoreno";
|
|||
}
|
|||
}
|
|||
8 | batix | ||
4 | batix | if ($_GET['param']=="subnet" && $_POST["popis_s".$_POST['icko']]=="") $_SESSION["popis_s".$_POST['icko']]="subnet ".($_POST['icko']+1);
|
|
if ($_GET['param']=="group" && $_POST["popis_g".$_POST['icko']]=="") $_SESSION["popis_g".$_POST['icko']]="group ".($_POST['icko']+1);
|
|||
if ($_GET['param']=="host" && $_POST["popis_h".$_POST['icko']]=="") $_SESSION["popis_h".$_POST['icko']]="host ".($_POST['icko']+1);
|
|||
if ($_POST["submit_range".$_POST['icko']]) $_SESSION["pocet_range".$_POST['icko']]++;
|
|||
/*
|
|||
*/
|
|||
header ("Location: ../index.php?id=dhcp¶m=".$_GET['param']."&jaky=".$_POST['icko']."&".$co."=1&lng=".$_GET['lng']."&".SID."");
|
|||
?>
|