1
|
1 |
<? |
|
2 |
|
4
|
3 |
// Added next line to enable i18n on following definitions. Not sure |
|
4 |
// if this is the best (or at least a proper) location for this. /RZ. |
|
5 |
require_once("inc/i18n.inc.php"); |
|
6 |
|
1
|
7 |
/* USER LEVELS */ |
4
|
8 |
define("ERR_LEVEL_5", _('You need user level 5 for this operation')); |
|
9 |
define("ERR_LEVEL_10", _('You need user level 10 for this operation')); |
1
|
10 |
|
|
11 |
/* RECORD STUFF */ |
4
|
12 |
define("ERR_RECORD_EMPTY_CONTENT", _('Your content field is empty')); |
|
13 |
define("ERR_RECORD_ACCESS_DENIED", _('Access denied, you do not have access to that record')); |
|
14 |
define("ERR_RECORD_DELETE_TYPE_DENIED", _('You are not allowed to delete %s records')); |
1
|
15 |
|
|
16 |
/* DOMAIN STUFF */ |
13
|
17 |
define("ERR_DOMAIN_INVALID", _('This is an invalid zone name')); |
1
|
18 |
|
|
19 |
/* USER STUFF */ |
4
|
20 |
define("ERR_USER_EXIST", _('Username exist already, please choose another one')); |
|
21 |
define("ERR_USER_NOT_EXIST", _('User doesnt exist')); |
|
22 |
define("ERR_USER_WRONG_CURRENT_PASS", _('You didnt enter the correct current password')); |
|
23 |
define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match')); |
|
24 |
define("ERR_USER_EDIT", _('Error editting user')); |
1
|
25 |
|
|
26 |
/* OTHER */ |
4
|
27 |
define("ERR_INV_ARG", _('Invalid argument(s) given to function %s')); |
|
28 |
define("ERR_INV_ARGC", _('Invalid argument(s) given to function %s %s')); |
|
29 |
define("ERR_UNKNOWN", _('unknown error')); |
|
30 |
define("ERR_INV_EMAIL", _('Enter a valid email address')); |
1
|
31 |
|
|
32 |
/* DNS */ |
4
|
33 |
define("ERR_DNS_CONTENT", _('Your content field doesnt have a legit value')); |
|
34 |
define("ERR_DNS_HOSTNAME", _('Invalid hostname')); |
|
35 |
define("ERR_DNS_RECORDTYPE", _('Invalid record type! You shouldnt even been able to get that here')); |
|
36 |
define("ERR_DNS_IPV6", _('This is not a valid IPv6 ip.')); |
|
37 |
define("ERR_DNS_IPV4", _('This is not a valid IPv4 ip.')); |
|
38 |
define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?')); |
|
39 |
define("ERR_DNS_NS_CNAME", _('You can not point a NS record to a CNAME record. Remove/rename the CNAME record first or take another name.')); |
|
40 |
define("ERR_DNS_NS_HNAME", _('IN NS fields must be a hostnames.')); |
|
41 |
define("ERR_DNS_MX_CNAME", _('You can not point a MX record to a CNAME record. Remove/rename the CNAME record first or take another name.')); |
|
42 |
define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.')); |
|
43 |
define("ERR_DNS_SOA_NUMERIC", _('One of your SOA data fields is not numeric!')); |
|
44 |
define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have 5 numeric fields')); |
|
45 |
define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS Server')); |
1
|
46 |
?> |