inc/error.inc.php
author rejo
Sun, 22 Apr 2007 07:20:09 +0000
changeset 8 47dd15d8bb8c
parent 4 55ed92aa7cf5
child 13 2ff220cfde13
permissions -rwxr-xr-x
[feladat @ 20] - Merged branches/1.3.0 changes r12:19 into the trunk.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     1
<?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     2
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     3
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     4
// | PowerAdmin                                                         |
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     5
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     6
// | Copyright (c) 1997-2002 The PowerAdmin Team                        |
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     7
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     8
// | This source file is subject to the license carried by the overal   |
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     9
// | program PowerAdmin as found on http://poweradmin.sf.net            |
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    10
// | The PowerAdmin program falls under the QPL License:                |
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    11
// | http://www.trolltech.com/developer/licensing/qpl.html              |
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    12
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    13
// | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl>       |
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    14
// |          Sjeemz <sjeemz <AT> sjeemz <DOT> nl>                      |
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    15
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    16
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    17
// Filename: error.inc.php
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    18
// Startdate: 25-11-2002
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    19
// Description: all error defines should be put in here.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    20
// All errors have to use an ERR_ prefix to distinguish them from other constants.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    21
// All errors should be placed in the appropriate group.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    22
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    23
// $Id: error.inc.php,v 1.6 2003/05/04 21:38:37 azurazu Exp $
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    24
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    25
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    26
// Added next line to enable i18n on following definitions. Not sure
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    27
// if this is the best (or at least a proper) location for this. /RZ.
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    28
require_once("inc/i18n.inc.php");
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    29
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    30
/* USER LEVELS */
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    31
define("ERR_LEVEL_5", _('You need user level 5 for this operation'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    32
define("ERR_LEVEL_10", _('You need user level 10 for this operation'));
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    33
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    34
/* RECORD STUFF */
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    35
define("ERR_RECORD_EMPTY_CONTENT", _('Your content field is empty'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    36
define("ERR_RECORD_ACCESS_DENIED", _('Access denied, you do not have access to that record'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    37
define("ERR_RECORD_DELETE_TYPE_DENIED", _('You are not allowed to delete %s records'));
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    38
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    39
/* DOMAIN STUFF */
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    40
define("ERR_DOMAIN_INVALID", _('This is an invalid domain name'));
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    41
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    42
/* USER STUFF */
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    43
define("ERR_USER_EXIST", _('Username exist already, please choose another one'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    44
define("ERR_USER_NOT_EXIST", _('User doesnt exist'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    45
define("ERR_USER_WRONG_CURRENT_PASS", _('You didnt enter the correct current password'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    46
define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    47
define("ERR_USER_EDIT", _('Error editting user'));
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    48
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    49
/* OTHER */
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    50
define("ERR_INV_ARG", _('Invalid argument(s) given to function %s'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    51
define("ERR_INV_ARGC", _('Invalid argument(s) given to function %s %s'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    52
define("ERR_UNKNOWN", _('unknown error'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    53
define("ERR_INV_EMAIL", _('Enter a valid email address'));
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    54
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    55
/* DNS */
4
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    56
define("ERR_DNS_CONTENT", _('Your content field doesnt have a legit value'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    57
define("ERR_DNS_HOSTNAME", _('Invalid hostname'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    58
define("ERR_DNS_RECORDTYPE", _('Invalid record type! You shouldnt even been able to get that here'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    59
define("ERR_DNS_IPV6", _('This is not a valid IPv6 ip.'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    60
define("ERR_DNS_IPV4", _('This is not a valid IPv4 ip.'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    61
define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    62
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.'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    63
define("ERR_DNS_NS_HNAME", _('IN NS fields must be a hostnames.'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    64
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.'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    65
define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    66
define("ERR_DNS_SOA_NUMERIC", _('One of your SOA data fields is not numeric!'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    67
define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have 5 numeric fields'));
55ed92aa7cf5 [feladat @ 5]
rejo
parents: 1
diff changeset
    68
define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS Server'));
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    69
?>