inc/error.inc.php
changeset 110 455405c757e1
parent 89 61c49e66c9b0
child 111 0a2342a64b83
equal deleted inserted replaced
109:34b2d49f52c6 110:455405c757e1
    28 define("ERR_PERM_ADD_RECORD", _("You do not have the permission to add a record to this zone.")); 
    28 define("ERR_PERM_ADD_RECORD", _("You do not have the permission to add a record to this zone.")); 
    29 define("ERR_PERM_EDIT_RECORD", _("You do not have the permission to edit this record.")); 
    29 define("ERR_PERM_EDIT_RECORD", _("You do not have the permission to edit this record.")); 
    30 define("ERR_PERM_VIEW_RECORD", _("You do not have the permission to view this record.")); 
    30 define("ERR_PERM_VIEW_RECORD", _("You do not have the permission to view this record.")); 
    31 define("ERR_PERM_DEL_RECORD", _("You do not have the permission to delete this record.")); 
    31 define("ERR_PERM_DEL_RECORD", _("You do not have the permission to delete this record.")); 
    32 define("ERR_PERM_ADD_ZONE_MASTER", _("You do not have the permission to add a master zone.")); 
    32 define("ERR_PERM_ADD_ZONE_MASTER", _("You do not have the permission to add a master zone.")); 
       
    33 define("ERR_PERM_ADD_ZONE_SLAVE", _("You do not have the permission to add a slave zone.")); 
    33 define("ERR_PERM_DEL_ZONE", _("You do not have the permission to delete a zone.")); 
    34 define("ERR_PERM_DEL_ZONE", _("You do not have the permission to delete a zone.")); 
    34 define("ERR_PERM_DEL_SM", _("You do not have the permission to delete a supermaster.")); 
    35 define("ERR_PERM_DEL_SM", _("You do not have the permission to delete a supermaster.")); 
    35 define("ERR_PERM_VIEW_ZONE", _("You do not have the permission to view this zone.")); 
    36 define("ERR_PERM_VIEW_ZONE", _("You do not have the permission to view this zone.")); 
    36 define("ERR_PERM_EDIT_USER", _("You do not have the permission to edit this user.")); 
    37 define("ERR_PERM_EDIT_USER", _("You do not have the permission to edit this user.")); 
    37 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.")); 
    38 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.")); 
    39 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.")); 
    40 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.")); 
    41 
    42 
    42 /* RECORD STUFF */
    43 /* RECORD STUFF */
    43 define("ERR_RECORD_EMPTY_CONTENT", _('Your content field is empty'));
    44 define("ERR_RECORD_EMPTY_CONTENT", _('Your content field is empty.'));
    44 define("ERR_RECORD_ACCESS_DENIED", _('Access denied, you do not have access to that record'));
    45 define("ERR_RECORD_ACCESS_DENIED", _('Access denied, you do not have access to that record.'));
    45 define("ERR_RECORD_DELETE_TYPE_DENIED", _('You are not allowed to delete %s records'));
    46 define("ERR_RECORD_DELETE_TYPE_DENIED", _('You are not allowed to delete %s records.'));
    46 
    47 
    47 /* DOMAIN STUFF */
    48 /* DOMAIN STUFF */
    48 define("ERR_DOMAIN_INVALID", _('This is an invalid zone name'));
    49 define("ERR_DOMAIN_INVALID", _('This is an invalid zone name.'));
    49 define("ERR_SM_EXISTS", _('There is already a supermaster with this IP address.')); 
    50 define("ERR_SM_EXISTS", _('There is already a supermaster with this IP address.')); 
    50 define("ERR_DOMAIN_EXISTS", _('There is already a zone with this name.')); 
    51 define("ERR_DOMAIN_EXISTS", _('There is already a zone with this name.')); 
    51 
    52 
    52 /* USER STUFF */
    53 /* USER STUFF */
    53 define("ERR_USER_EXIST", _('Username exist already, please choose another one'));
    54 define("ERR_USER_EXIST", _('Username exist already, please choose another one.'));
    54 define("ERR_USER_NOT_EXIST", _('User doesnt exist'));
    55 define("ERR_USER_NOT_EXIST", _('User does not exist.'));
    55 define("ERR_USER_WRONG_CURRENT_PASS", _('You didnt enter the correct current password'));
    56 define("ERR_USER_WRONG_CURRENT_PASS", _('You did not enter the correct current password.'));
    56 define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match'));
    57 define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match.'));
    57 define("ERR_USER_EDIT", _('Error editting user'));
    58 define("ERR_USER_EDIT", _('Error editting user.'));
    58 define("ERR_PERM_TEMPL_ASSIGNED", _('This template is assigned to at least one user'));
    59 define("ERR_PERM_TEMPL_ASSIGNED", _('This template is assigned to at least one user.'));
    59 
    60 
    60 /* OTHER */
    61 /* OTHER */
    61 define("ERR_INV_INPUT", _('Invalid or unexpected input given.'));  
    62 define("ERR_INV_INPUT", _('Invalid or unexpected input given.'));  
    62 define("ERR_INV_ARG", _('Invalid argument(s) given to function %s'));
    63 define("ERR_INV_ARG", _('Invalid argument(s) given to function %s'));
    63 define("ERR_INV_ARGC", _('Invalid argument(s) given to function %s %s'));
    64 define("ERR_INV_ARGC", _('Invalid argument(s) given to function %s %s'));
    64 define("ERR_UNKNOWN", _('unknown error'));
    65 define("ERR_UNKNOWN", _('Unknown error.'));
    65 define("ERR_INV_EMAIL", _('Enter a valid email address'));
    66 define("ERR_INV_EMAIL", _('Enter a valid email address.'));
    66 
    67 
    67 /* DNS */
    68 /* DNS */
    68 define("ERR_DNS_CONTENT", _('Your content field doesnt have a legit value'));
    69 define("ERR_DNS_CONTENT", _('Your content field doesnt have a legit value.'));
    69 define("ERR_DNS_HOSTNAME", _('Invalid hostname'));
    70 define("ERR_DNS_HOSTNAME", _('Invalid hostname.'));
    70 define("ERR_DNS_RECORDTYPE", _('Invalid record type! You shouldnt even been able to get that here'));
    71 define("ERR_DNS_RECORDTYPE", _('Invalid record type! You should not even been able to get that here.'));
    71 define("ERR_DNS_IP", _('This is not a valid IPv4 or IPv6 address.')); 
    72 define("ERR_DNS_IP", _('This is not a valid IPv4 or IPv6 address.')); 
    72 define("ERR_DNS_IPV6", _('This is not a valid IPv6 ip.'));
    73 define("ERR_DNS_IPV6", _('This is not a valid IPv6 address.'));
    73 define("ERR_DNS_IPV4", _('This is not a valid IPv4 ip.'));
    74 define("ERR_DNS_IPV4", _('This is not a valid IPv4 address.'));
    74 define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?'));
    75 define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?'));
    75 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.'));
    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.'));
    76 define("ERR_DNS_NS_HNAME", _('IN NS fields must be a hostnames.'));
    77 define("ERR_DNS_NS_HNAME", _('NS records must be a hostnames.'));
    77 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.'));
    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.'));
    78 define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.'));
    79 define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.'));
    79 define("ERR_DNS_SOA_NUMERIC", _('One of your SOA data fields is not numeric!'));
    80 define("ERR_DNS_SOA_NUMERIC", _('One of your SOA data fields is not numeric.'));
    80 define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have 5 numeric fields'));
    81 define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have five numeric fields in the SOA record.'));
    81 define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS Server'));
    82 define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS server.'));
    82 
    83 
    83 /* GOOD! */
    84 /* GOOD! */
    84 define("SUC_ZONE_ADD", _('Zone has been added succesfully.')); 
    85 define("SUC_ZONE_ADD", _('Zone has been added succesfully.')); 
    85 define("SUC_ZONE_DEL", _('Zone has been deleted succesfully.')); 
    86 define("SUC_ZONE_DEL", _('Zone has been deleted succesfully.')); 
    86 define("SUC_USER_UPD", _('The user has been updated succesfully.')); 
    87 define("SUC_USER_UPD", _('The user has been updated succesfully.')); 
    87 define("SUC_USER_ADD", _('The user has been created succesfully.')); 
    88 define("SUC_USER_ADD", _('The user has been created succesfully.')); 
    88 define("SUC_USER_DEL", _('The user has been deleted succesfully.')); 
    89 define("SUC_USER_DEL", _('The user has been deleted succesfully.')); 
    89 define("SUC_RECORD_UPD", _('The record has been updated succesfully.')); 
    90 define("SUC_RECORD_UPD", _('The record has been updated succesfully.')); 
    90 define("SUC_RECORD_DEL", _('The record has been deleted succesfully.')); 
    91 define("SUC_RECORD_DEL", _('The record has been deleted succesfully.')); 
    91 define("SUC_SM_DEL", _('The supermaster has been deleted succesfully.')); 
    92 define("SUC_SM_DEL", _('The supermaster has been deleted succesfully.')); 
       
    93 define("SUC_SM_ADD", _('The supermaster has been added succesfully.')); 
    92 define("SUC_PERM_TEMPL_DEL", _('The permission template has been deleted succesfully.')); 
    94 define("SUC_PERM_TEMPL_DEL", _('The permission template has been deleted succesfully.')); 
    93 
    95 
    94 ?>
    96 ?>