index 2adb6990af72c075d5070e60b708413f9133747b..5e9e00d22db84de518bae095f48336483cd8e601 100644 (file)
$this->dhcpHWaddress= $attrs['dhcpHWAddress'][0];
}
+ print_a($this);
+
$this->advanced->setAutoOptions(array("host-name"));
$this->advanced->setAutoStatements(array("fixed-address"));
}
if (isset($_POST['hwtype'])){
/* Assemble hwAddress */
- $this->dhcpHWAddress= $_POST['hwtype']." ".$_POST['dhcpHWAddress'];
- $this->cn= validate($_POST['cn']);
+ $this->dhcpHWAddress= get_post('hwtype')." ".get_post('dhcpHWAddress');
+ $this->cn= validate(get_post('cn'));
/* Save fixed address */
if ($_POST['fixedaddr'] != ""){
- $this->statements['fixed-address']= $_POST['fixedaddr'];
+ $this->statements['fixed-address']= get_post('fixedaddr');
} else {
unset ($this->statements['fixed-address']);
}