diff --git a/interface/web/dns/lib/lang/en_rr.lng b/interface/web/dns/lib/lang/en_rr.lng index 33c4d34aaf8bbf3c34c9bbbd72231a581ed8ce90..eba01c373c5681f8185bc2940b34597de421ed99 100644 --- a/interface/web/dns/lib/lang/en_rr.lng +++ b/interface/web/dns/lib/lang/en_rr.lng @@ -38,4 +38,5 @@ $wb["error_out_of_zone"] = 'is out of zone!'; $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!'; ?> \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_soa.lng b/interface/web/dns/lib/lang/en_soa.lng index 9345cc81a852233210f55da1c21288ab88a03ab0..d7e118bfe8eaa1166f56bb2ff230f88f7f1ac0ec 100644 --- a/interface/web/dns/lib/lang/en_soa.lng +++ b/interface/web/dns/lib/lang/en_soa.lng @@ -45,4 +45,5 @@ $wb["error_wildcard_non_initial_part"] = 'contains a wildcard in a non-initial p $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!'; ?> \ No newline at end of file diff --git a/interface/web/dns/rr_del.php b/interface/web/dns/rr_del.php index e06ff8431054ae93fb189b55dec47a2d6a459f2a..0f207e66699550f9f2b1a37afde0fee4a9bd3a53 100644 --- a/interface/web/dns/rr_del.php +++ b/interface/web/dns/rr_del.php @@ -57,7 +57,7 @@ class page_action extends tform_actions { 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']; diff --git a/interface/web/dns/rr_edit.php b/interface/web/dns/rr_edit.php index 00da24f7f8d111a2813addd56d3ca83c1313c45e..8cd4dad9f9f0a0e4b1e75ec69aba6d46c90b2dea 100644 --- a/interface/web/dns/rr_edit.php +++ b/interface/web/dns/rr_edit.php @@ -58,9 +58,9 @@ class page_action extends tform_actions { 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']; diff --git a/interface/web/dns/soa_del.php b/interface/web/dns/soa_del.php index 06560f579ffdbcd4654b4bcc4bf2ceefa2b36285..e29a5a35a097ea242ac7f4d4583360b7fa0e2ea7 100644 --- a/interface/web/dns/soa_del.php +++ b/interface/web/dns/soa_del.php @@ -57,7 +57,7 @@ class page_action extends tform_actions { 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']) != ''){ diff --git a/interface/web/dns/soa_edit.php b/interface/web/dns/soa_edit.php index 7c54670354a99b30d3cd638ca3df10754a08e5fb..e75f9690994d8c02361b99dde36bea8cb1b5b75e 100644 --- a/interface/web/dns/soa_edit.php +++ b/interface/web/dns/soa_edit.php @@ -57,9 +57,9 @@ class page_action extends tform_actions { 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');