| | |
| | | $wb["error_invalid_rp"] = 'has invalid format. The correct format is the <i>mbox</i> (a DNS-encoded email address), then a space, then the <i>txtref</i>, which should contain either a host for TXT lookup or a dot!';
|
| | | $wb["error_invalid_srv"] = 'has invalid format. The correct format is the <i>weight</i> (0-65535), then a space, then the <i>port</i> (0-65535), then a space, then the <i>target</i>!';
|
| | | $wb["error_srv_out_of_range"] = 'for SRV record is out of range!';
|
| | | $wb["error_no_permission"] = 'You do not have the right permissions to perform the action!';
|
| | | ?> |
| | |
| | | $wb["error_wildcard_mix"] = 'contains a part mixing a wildcard character with other data!';
|
| | | $wb["error_no_wildcard_allowed"] = 'must not contain wildcards!';
|
| | | $wb["error_out_of_zone"] = 'is out of zone!';
|
| | | $wb["error_no_permission"] = 'You do not have the right permissions to perform the action!';
|
| | | ?> |
| | |
| | | global $app, $conf;
|
| | |
|
| | | $app->uses('tform');
|
| | | if(!$rr = $app->db->queryOneRecord("SELECT * FROM rr WHERE id = ".$_REQUEST['id']." AND ".$app->tform->getAuthSQL('d'))) $app->error('not allowed');
|
| | | if(!$rr = $app->db->queryOneRecord("SELECT * FROM rr WHERE id = ".$_REQUEST['id']." AND ".$app->tform->getAuthSQL('d'))) $app->error($app->tform->wordbook['error_no_permission']);
|
| | |
|
| | | //$rr = $app->db->queryOneRecord("SELECT * FROM rr WHERE id = ".$_REQUEST['id']);
|
| | | $zone_id = $rr['zone'];
|
| | |
| | | global $app, $conf;
|
| | |
|
| | | if($this->dataRecord['id'] > 0){
|
| | | if(!$app->tform->checkPerm($this->dataRecord['id'],'u')) $app->error('not allowed');
|
| | | if(!$app->tform->checkPerm($this->dataRecord['id'],'u')) $app->error($app->tform->wordbook['error_no_permission']);
|
| | | } else {
|
| | | if(!$app->tform->checkPerm($this->dataRecord['id'],'i')) $app->error('not allowed');
|
| | | if(!$app->tform->checkPerm($this->dataRecord['id'],'i')) $app->error($app->tform->wordbook['error_no_permission']);
|
| | | }
|
| | |
|
| | | $this->dataRecord["zone"] = $_SESSION['s']['list']['rr']['parent_id'];
|
| | |
| | | global $app, $conf;
|
| | |
|
| | | $app->uses('tform');
|
| | | if(!$soa = $app->db->queryOneRecord("SELECT * FROM soa WHERE id = ".$_REQUEST['id']." AND ".$app->tform->getAuthSQL('d'))) $app->error('not allowed');
|
| | | if(!$soa = $app->db->queryOneRecord("SELECT * FROM soa WHERE id = ".$_REQUEST['id']." AND ".$app->tform->getAuthSQL('d'))) $app->error($app->tform->wordbook['error_no_permission']);
|
| | |
|
| | | // PTR
|
| | | if($conf['auto_create_ptr'] == 1 && trim($conf['default_ns']) != '' && trim($conf['default_mbox']) != ''){
|
| | |
| | | global $app, $conf;
|
| | |
|
| | | if($this->dataRecord['id'] > 0){
|
| | | if(!$app->tform->checkPerm($this->dataRecord['id'],'u')) $app->error('not allowed');
|
| | | if(!$app->tform->checkPerm($this->dataRecord['id'],'u')) $app->error($app->tform->wordbook['error_no_permission']);
|
| | | } else {
|
| | | if(!$app->tform->checkPerm($this->dataRecord['id'],'i')) $app->error('not allowed');
|
| | | if(!$app->tform->checkPerm($this->dataRecord['id'],'i')) $app->error($app->tform->wordbook['error_no_permission']);
|
| | | }
|
| | |
|
| | | $app->uses('validate_dns');
|