1
+ − 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
1
+ − 26
/* USER LEVELS */
4
+ − 27
define ( "ERR_LEVEL_5" , _ ( 'You need user level 5 for this operation' ));
+ − 28
define ( "ERR_LEVEL_10" , _ ( 'You need user level 10 for this operation' ));
1
+ − 29
+ − 30
/* RECORD STUFF */
4
+ − 31
define ( "ERR_RECORD_EMPTY_CONTENT" , _ ( 'Your content field is empty' ));
+ − 32
define ( "ERR_RECORD_ACCESS_DENIED" , _ ( 'Access denied, you do not have access to that record' ));
+ − 33
define ( "ERR_RECORD_DELETE_TYPE_DENIED" , _ ( 'You are not allowed to delete %s records' ));
1
+ − 34
+ − 35
/* DOMAIN STUFF */
13
+ − 36
define ( "ERR_DOMAIN_INVALID" , _ ( 'This is an invalid zone name' ));
1
+ − 37
+ − 38
/* USER STUFF */
4
+ − 39
define ( "ERR_USER_EXIST" , _ ( 'Username exist already, please choose another one' ));
+ − 40
define ( "ERR_USER_NOT_EXIST" , _ ( 'User doesnt exist' ));
+ − 41
define ( "ERR_USER_WRONG_CURRENT_PASS" , _ ( 'You didnt enter the correct current password' ));
+ − 42
define ( "ERR_USER_MATCH_NEW_PASS" , _ ( 'The two new password fields do not match' ));
+ − 43
define ( "ERR_USER_EDIT" , _ ( 'Error editting user' ));
1
+ − 44
+ − 45
/* OTHER */
4
+ − 46
define ( "ERR_INV_ARG" , _ ( 'Invalid argument(s) given to function %s' ));
+ − 47
define ( "ERR_INV_ARGC" , _ ( 'Invalid argument(s) given to function %s %s' ));
+ − 48
define ( "ERR_UNKNOWN" , _ ( 'unknown error' ));
+ − 49
define ( "ERR_INV_EMAIL" , _ ( 'Enter a valid email address' ));
1
+ − 50
+ − 51
/* DNS */
4
+ − 52
define ( "ERR_DNS_CONTENT" , _ ( 'Your content field doesnt have a legit value' ));
+ − 53
define ( "ERR_DNS_HOSTNAME" , _ ( 'Invalid hostname' ));
+ − 54
define ( "ERR_DNS_RECORDTYPE" , _ ( 'Invalid record type! You shouldnt even been able to get that here' ));
+ − 55
define ( "ERR_DNS_IPV6" , _ ( 'This is not a valid IPv6 ip.' ));
+ − 56
define ( "ERR_DNS_IPV4" , _ ( 'This is not a valid IPv4 ip.' ));
+ − 57
define ( "ERR_DNS_CNAME" , _ ( 'This is not a valid CNAME. Did you assign an MX or NS record to the record?' ));
+ − 58
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.' ));
+ − 59
define ( "ERR_DNS_NS_HNAME" , _ ( 'IN NS fields must be a hostnames.' ));
+ − 60
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.' ));
+ − 61
define ( "ERR_DNS_MX_PRIO" , _ ( 'A prio field should be numeric.' ));
+ − 62
define ( "ERR_DNS_SOA_NUMERIC" , _ ( 'One of your SOA data fields is not numeric!' ));
+ − 63
define ( "ERR_DNS_SOA_NUMERIC_FIELDS" , _ ( 'You can only have 5 numeric fields' ));
+ − 64
define ( "ERR_DNS_SOA_HOSTNAME" , _ ( 'The first part of your SOA record does not contain a valid hostname for a DNS Server' ));
1
+ − 65
?>