From 2ebd326e417953cbeadfdf67501b19a116a35440 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Tue, 06 Dec 2005 09:37:12 -0500 Subject: [PATCH] --- interface/web/dns/lib/lang/en_rr.lng | 1 + interface/web/dns/soa_edit.php | 4 ++-- interface/web/dns/rr_del.php | 2 +- interface/web/dns/soa_del.php | 2 +- interface/web/dns/rr_edit.php | 4 ++-- interface/web/dns/lib/lang/en_soa.lng | 1 + 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/interface/web/dns/lib/lang/en_rr.lng b/interface/web/dns/lib/lang/en_rr.lng index 33c4d34..eba01c3 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_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 9345cc8..d7e118b 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_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 e06ff84..0f207e6 100644 --- a/interface/web/dns/rr_del.php +++ b/interface/web/dns/rr_del.php @@ -57,7 +57,7 @@ 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 00da24f..8cd4dad 100644 --- a/interface/web/dns/rr_edit.php +++ b/interface/web/dns/rr_edit.php @@ -58,9 +58,9 @@ 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 06560f5..e29a5a3 100644 --- a/interface/web/dns/soa_del.php +++ b/interface/web/dns/soa_del.php @@ -57,7 +57,7 @@ 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 7c54670..e75f969 100644 --- a/interface/web/dns/soa_edit.php +++ b/interface/web/dns/soa_edit.php @@ -57,9 +57,9 @@ 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'); -- Gitblit v1.9.1