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