inc/error.inc.php
changeset 111 0a2342a64b83
parent 110 455405c757e1
child 119 f74e4f88b680
equal deleted inserted replaced
110:455405c757e1 111:0a2342a64b83
    38 define("ERR_PERM_EDIT_PERM_TEMPL", _("You do not have the permission to edit permission templates.")); 
    38 define("ERR_PERM_EDIT_PERM_TEMPL", _("You do not have the permission to edit permission templates.")); 
    39 define("ERR_PERM_DEL_PERM_TEMPL", _("You do not have the permission to delete permission templates.")); 
    39 define("ERR_PERM_DEL_PERM_TEMPL", _("You do not have the permission to delete permission templates.")); 
    40 define("ERR_PERM_ADD_USER", _("You do not have the permission to add a new user.")); 
    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.")); 
    41 define("ERR_PERM_DEL_USER", _("You do not have the permission to delete this user.")); 
    42 
    42 
    43 /* RECORD STUFF */
       
    44 define("ERR_RECORD_EMPTY_CONTENT", _('Your content field is empty.'));
       
    45 define("ERR_RECORD_ACCESS_DENIED", _('Access denied, you do not have access to that record.'));
       
    46 define("ERR_RECORD_DELETE_TYPE_DENIED", _('You are not allowed to delete %s records.'));
       
    47 
       
    48 /* DOMAIN STUFF */
    43 /* DOMAIN STUFF */
    49 define("ERR_DOMAIN_INVALID", _('This is an invalid zone name.'));
    44 define("ERR_DOMAIN_INVALID", _('This is an invalid zone name.'));
    50 define("ERR_SM_EXISTS", _('There is already a supermaster with this IP address.')); 
    45 define("ERR_SM_EXISTS", _('There is already a supermaster with this IP address.')); 
    51 define("ERR_DOMAIN_EXISTS", _('There is already a zone with this name.')); 
    46 define("ERR_DOMAIN_EXISTS", _('There is already a zone with this name.')); 
    52 
    47 
    53 /* USER STUFF */
    48 /* USER STUFF */
    54 define("ERR_USER_EXIST", _('Username exist already, please choose another one.'));
    49 define("ERR_USER_EXIST", _('Username exist already, please choose another one.'));
    55 define("ERR_USER_NOT_EXIST", _('User does not exist.'));
    50 define("ERR_USER_NOT_EXIST", _('User does not exist.'));
    56 define("ERR_USER_WRONG_CURRENT_PASS", _('You did not enter the correct current password.'));
    51 define("ERR_USER_WRONG_CURRENT_PASS", _('You did not enter the correct current password.'));
    57 define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match.'));
    52 define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match.'));
    58 define("ERR_USER_EDIT", _('Error editting user.'));
       
    59 define("ERR_PERM_TEMPL_ASSIGNED", _('This template is assigned to at least one user.'));
    53 define("ERR_PERM_TEMPL_ASSIGNED", _('This template is assigned to at least one user.'));
    60 
    54 
    61 /* OTHER */
    55 /* OTHER */
    62 define("ERR_INV_INPUT", _('Invalid or unexpected input given.'));  
    56 define("ERR_INV_INPUT", _('Invalid or unexpected input given.'));  
    63 define("ERR_INV_ARG", _('Invalid argument(s) given to function %s'));
    57 define("ERR_INV_ARG", _('Invalid argument(s) given to function %s'));
    75 define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?'));
    69 define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?'));
    76 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.'));
    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.'));
    77 define("ERR_DNS_NS_HNAME", _('NS records must be a hostnames.'));
    71 define("ERR_DNS_NS_HNAME", _('NS records must be a hostnames.'));
    78 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.'));
    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.'));
    79 define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.'));
    73 define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.'));
    80 define("ERR_DNS_SOA_NUMERIC", _('One of your SOA data fields is not numeric.'));
    74 define("ERR_DNS_SOA_NUMERIC", _('At least one of the five last SOA data fields is not numeric.'));
    81 define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have five numeric fields in the SOA record.'));
    75 define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have five numeric fields in the SOA record.'));
    82 define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS server.'));
    76 define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS server.'));
    83 
    77 
    84 /* GOOD! */
    78 /* GOOD! */
    85 define("SUC_ZONE_ADD", _('Zone has been added succesfully.')); 
    79 define("SUC_ZONE_ADD", _('Zone has been added succesfully.'));