71
|
1 |
<?php |
1
|
2 |
|
47
|
3 |
/* PowerAdmin, a friendly web-based admin tool for PowerDNS. |
|
4 |
* See <https://rejo.zenger.nl/poweradmin> for more details. |
|
5 |
* |
|
6 |
* Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl> |
|
7 |
* |
|
8 |
* This program is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation, either version 3 of the License, or |
|
11 |
* (at your option) any later version. |
|
12 |
* |
|
13 |
* This program is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
20 |
*/ |
|
21 |
|
4
|
22 |
// Added next line to enable i18n on following definitions. Not sure |
|
23 |
// if this is the best (or at least a proper) location for this. /RZ. |
|
24 |
require_once("inc/i18n.inc.php"); |
|
25 |
|
82
|
26 |
/* PERMISSIONS */ |
|
27 |
define("ERR_PERM_SEARCH", _("You do not have the permission to perform searches.")); |
|
28 |
define("ERR_PERM_ADD_RECORD", _("You do not have the permission to add a record to this zone.")); |
|
29 |
define("ERR_PERM_EDIT_RECORD", _("You do not have the permission to edit this record.")); |
|
30 |
define("ERR_PERM_VIEW_RECORD", _("You do not have the permission to view this record.")); |
|
31 |
define("ERR_PERM_DEL_RECORD", _("You do not have the permission to delete this record.")); |
|
32 |
define("ERR_PERM_ADD_ZONE_MASTER", _("You do not have the permission to add a master zone.")); |
110
|
33 |
define("ERR_PERM_ADD_ZONE_SLAVE", _("You do not have the permission to add a slave zone.")); |
82
|
34 |
define("ERR_PERM_DEL_ZONE", _("You do not have the permission to delete a zone.")); |
|
35 |
define("ERR_PERM_DEL_SM", _("You do not have the permission to delete a supermaster.")); |
|
36 |
define("ERR_PERM_VIEW_ZONE", _("You do not have the permission to view this zone.")); |
|
37 |
define("ERR_PERM_EDIT_USER", _("You do not have the permission to edit this user.")); |
|
38 |
define("ERR_PERM_EDIT_PERM_TEMPL", _("You do not have the permission to edit permission templates.")); |
89
|
39 |
define("ERR_PERM_DEL_PERM_TEMPL", _("You do not have the permission to delete permission templates.")); |
82
|
40 |
define("ERR_PERM_ADD_USER", _("You do not have the permission to add a new user.")); |
|
41 |
define("ERR_PERM_DEL_USER", _("You do not have the permission to delete this user.")); |
1
|
42 |
|
|
43 |
/* DOMAIN STUFF */ |
110
|
44 |
define("ERR_DOMAIN_INVALID", _('This is an invalid zone name.')); |
82
|
45 |
define("ERR_SM_EXISTS", _('There is already a supermaster with this IP address.')); |
|
46 |
define("ERR_DOMAIN_EXISTS", _('There is already a zone with this name.')); |
1
|
47 |
|
|
48 |
/* USER STUFF */ |
110
|
49 |
define("ERR_USER_EXIST", _('Username exist already, please choose another one.')); |
|
50 |
define("ERR_USER_NOT_EXIST", _('User does not exist.')); |
|
51 |
define("ERR_USER_WRONG_CURRENT_PASS", _('You did not enter the correct current password.')); |
|
52 |
define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match.')); |
|
53 |
define("ERR_PERM_TEMPL_ASSIGNED", _('This template is assigned to at least one user.')); |
1
|
54 |
|
|
55 |
/* OTHER */ |
82
|
56 |
define("ERR_INV_INPUT", _('Invalid or unexpected input given.')); |
4
|
57 |
define("ERR_INV_ARG", _('Invalid argument(s) given to function %s')); |
|
58 |
define("ERR_INV_ARGC", _('Invalid argument(s) given to function %s %s')); |
110
|
59 |
define("ERR_UNKNOWN", _('Unknown error.')); |
|
60 |
define("ERR_INV_EMAIL", _('Enter a valid email address.')); |
1
|
61 |
|
|
62 |
/* DNS */ |
110
|
63 |
define("ERR_DNS_CONTENT", _('Your content field doesnt have a legit value.')); |
|
64 |
define("ERR_DNS_HOSTNAME", _('Invalid hostname.')); |
|
65 |
define("ERR_DNS_RECORDTYPE", _('Invalid record type! You should not even been able to get that here.')); |
82
|
66 |
define("ERR_DNS_IP", _('This is not a valid IPv4 or IPv6 address.')); |
110
|
67 |
define("ERR_DNS_IPV6", _('This is not a valid IPv6 address.')); |
|
68 |
define("ERR_DNS_IPV4", _('This is not a valid IPv4 address.')); |
4
|
69 |
define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?')); |
110
|
70 |
define("ERR_DNS_NS_CNAME", _('You can not point a NS record to a CNAME record. Remove or rename the CNAME record first or take another name.')); |
|
71 |
define("ERR_DNS_NS_HNAME", _('NS records must be a hostnames.')); |
|
72 |
define("ERR_DNS_MX_CNAME", _('You can not point a MX record to a CNAME record. Remove or rename the CNAME record first or take another name.')); |
4
|
73 |
define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.')); |
111
|
74 |
define("ERR_DNS_SOA_NUMERIC", _('At least one of the five last SOA data fields is not numeric.')); |
110
|
75 |
define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have five numeric fields in the SOA record.')); |
|
76 |
define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS server.')); |
82
|
77 |
|
|
78 |
/* GOOD! */ |
|
79 |
define("SUC_ZONE_ADD", _('Zone has been added succesfully.')); |
|
80 |
define("SUC_ZONE_DEL", _('Zone has been deleted succesfully.')); |
|
81 |
define("SUC_USER_UPD", _('The user has been updated succesfully.')); |
|
82 |
define("SUC_USER_ADD", _('The user has been created succesfully.')); |
|
83 |
define("SUC_USER_DEL", _('The user has been deleted succesfully.')); |
|
84 |
define("SUC_RECORD_UPD", _('The record has been updated succesfully.')); |
|
85 |
define("SUC_RECORD_DEL", _('The record has been deleted succesfully.')); |
|
86 |
define("SUC_SM_DEL", _('The supermaster has been deleted succesfully.')); |
110
|
87 |
define("SUC_SM_ADD", _('The supermaster has been added succesfully.')); |
89
|
88 |
define("SUC_PERM_TEMPL_DEL", _('The permission template has been deleted succesfully.')); |
82
|
89 |
|
1
|
90 |
?> |