| | |
| | | |
| | | class page_action extends tform_actions { |
| | | |
| | | function onShow() { |
| | | global $app; |
| | | //* Reset the page number of the list form for the dns |
| | | //* records to 0 if we are on the first tab of the soa form. |
| | | if($app->tform->getNextTab() == 'dns_soa') { |
| | | $_SESSION['search']['dns_a']['page'] = 0; |
| | | } |
| | | parent::onShow(); |
| | | } |
| | | |
| | | function onShowNew() { |
| | | global $app, $conf; |
| | | |
| | |
| | | if(stristr($this->dataRecord["mbox"],'@')) { |
| | | $this->dataRecord["mbox"] = str_replace('@','.',$this->dataRecord["mbox"]); |
| | | } |
| | | |
| | | |
| | | //* Check if a secondary zone with the same name already exists |
| | | $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_slave WHERE origin = \"".$this->dataRecord["origin"]."\" AND server_id = \"".$this->dataRecord["server_id"]."\""); |
| | | if($tmp["number"] > 0) { |
| | | $app->error($app->tform->wordbook["origin_error_unique"]); |
| | | } |
| | | |
| | | parent::onSubmit(); |
| | | } |
| | |
| | | $page = new page_action; |
| | | $page->onLoad(); |
| | | |
| | | ?> |
| | | ?> |