register');
define('LOGIN_LINK', 'login');
define('MEMBER_LINK', 'member section');
define('LOGOUT_LINK', 'logout');
define('KNOWLEDGE_LINK', 'Support Area');
// User is blocked?
define('BLOCKED_ERROR', 'Your account is blocked.');
// System not completely installed
define('SYSTEM_NOT_INSTALLED', 'The system is not installed. Please read the User Guide to find out how.');
define('REMOVE_INSTALL_FILES', 'Please remove/rename the /install/ directory.');
/**
* Powered by link
*/
define('POWERED_BY', 'Powered by: Quadodo Login Script (v%1$s)');
/**
* System information.
* %1$s is the system version
* %2$s is the database type
* %3$s is the database version
*/
define('SYSTEM_INFORMATION', POWERED_BY . ' running %2$s %3$s on PHP ' . PHP_VERSION);
/**
* SQL errors resulting from the use of unique functions
* of this login system. Shouldn't happen unless changes
* are made to the system. They could happen if there is
* a bug, if so please visit the project page:
* http://www.quadodo.net/s.php
*/
define('SQL_SELECT_QUERY_FAILED', 'The select query could not be executed.');
define('SQL_DELETE_QUERY_FAILED', 'The delete query could not be executed.');
define('SQL_UPDATE_QUERY_FAILED', 'The update query could not be executed.');
define('SQL_INSERT_QUERY_FAILED', 'The insert query could not be executed.');
define('SQL_ALTER_QUERY_FAILED', 'The alter query could not be executed.');
/**
* Select query returned nothing
*/
define('SQL_SELECT_EMPTY', 'Information doesn\'t exist in the database.');
/**
* Changing their password
*/
// %1$s contains the code
define('CHANGE_PASSWORD_LINK_CODE', 'try again');
define('CHANGE_PASSWORD_LINK', 'try again');
define('CHANGE_PASSWORD_LOGOUT', 'Please ' . LOGOUT_LINK . ' before accessing this page.');
define('CHANGE_PASSWORD_INVALID_CODE', 'The code entered is not valid');
define('CHANGE_PASSWORD_SUCCESS', 'You have successfully changed your password. You may now ' . LOGIN_LINK);
define('CHANGE_PASSWORD_TRY_AGAIN', '
Please go back and ' . CHANGE_PASSWORD_LINK_CODE . '.');
define('SEND_PASSWORD_EMAIL_SUCCESS', 'The email was successfully sent. Please check your inbox for the link.');
define('SEND_PASSWORD_EMAIL_TRY_AGAIN', '
Please go back and ' . CHANGE_PASSWORD_LINK . '.');
define('SEND_PASSWORD_USERNAME_NON_EXISTANT', 'The username you selected does not exist in the database.');
define('SEND_PASSWORD_MAIL_ERROR', 'There was an error while trying to send an email to that email address.');
define('SEND_PASSWORD_SUBJECT', 'Password Change Request');
// %1$s contains the link
define('SEND_PASSWORD_BODY', 'You can change your password by following this link:' . "\n\n" . '%1$s' . "\n\n" . 'This link will expire after 10 days and can only be used once.');
// Registration errors
define('ADMIN_AUTH_REGISTRATION_ERROR', 'Sorry but you are not allowed to register for this site, you can only register if an invitation is sent.');
define('REGISTER_TRY_AGAIN', '
Please go back to try to ' . REGISTER_LINK . ' again.');
define('REGISTER_USERNAME_ERROR', 'The username you entered was not valid.');
define('REGISTER_PASSWORD_ERROR', 'The two passwords you entered did not match/were not valid.');
define('REGISTER_EMAIL_ERROR', 'The two email addresses you entered did not match/were not valid.');
define('REGISTER_SECURITY_ERROR', 'The security code you entered did not match that on the image.');
define('REGISTER_CUSTOM_ERROR', 'There was an error with one of your fields.');
define('REGISTER_USERNAME_EXISTS', 'The username you chose already exists in our database.');
define('REGISTER_CODE_INVALID', 'That is not a valid invitation code.');
define('REGISTER_NO_INVITATION', 'The invitation does not exist.');
define('REGISTER_NO_SUBSCRIPTION', 'The subscription does not exist.');
define('REGISTER_INVALID', 'The registration must by via invitation or new subscription.');
define('REGISTER_INVITATION_USERNAME_EMAIL', 'The email provided does not match the invitation.');
// Registration success
define('REGISTER_SUCCESS', 'You have successfully signed up, you may now login.');
define('REGISTER_SUCCESS_NO_ACTIVATION', 'You have successfully signed up, you may now ' . LOGIN_LINK . '.');
define('REGISTER_SUCCESS_USER_ACTIVATION', 'You have successfully signed up and may now activate your account using the link in your email inbox.');
define('REGISTER_SUCCESS_ADMIN_ACTIVATION', 'You have successfully signed up, but the administrator must activate your account before you can login. You will recieve an email when this happens.');
define('REGISTER_ALREADY_LOGGED', 'You are already registered and logged in! Please ' . LOGOUT_LINK . ' if you wish to register another account.');
// Login errors and codes
define('LOGIN_NOT_ACTIVE_USER_CODE', 0);
define('LOGIN_USER_BLOCKED_CODE', 1);
define('LOGIN_PASSWORDS_NOT_MATCHED_CODE', 2);
define('LOGIN_NO_TRIES_CODE', 3);
define('LOGIN_USER_INFO_MISSING_CODE', 4);
define('LOGIN_NOT_ACTIVE_ADMIN_CODE', 5);
define('LOGIN_MFA_REQUIRED_CODE', 6);
define('LOGIN_MFA_FAILURE_CODE', 7);
define('LOGIN_TRY_AGAIN', '
Please go back and try to ' . LOGIN_LINK . ' again.');
define('LOGIN_NO_TRIES', 'You have used up all your tries! You have 5 hours from this time until you can try again.');
define('LOGIN_USER_INFO_MISSING', 'The specified user information could not be found.');
define('LOGIN_PASSWORDS_NOT_MATCHED', 'The password provided did not match that in the database.');
define('LOGIN_USER_BLOCKED', 'You have been blocked from accessing this site.');
define('LOGIN_ALREADY_LOGGED', 'You are already logged in! Please ' . LOGOUT_LINK . ' if you wish to login as another user.');
define('LOGIN_NOT_ACTIVE_USER', 'Your account is blocked.');
define('LOGIN_NOT_ACTIVE_ADMIN', 'Sorry but an administrator must activate your account before you can login.');
define('LOGIN_MFA_FAILURE_ADMIN', 'Sorry but the second factor authentication failed.');
// Login success
define('LOGIN_SUCCESS', 'You have successfully logged in! You may now access the ' . MEMBER_LINK . '.');
// Activate errors
define('ACTIVATE_ALREADY_LOGGED', 'You have already activated your account because you are logged in.');
define('ACTIVATE_NO_NEED', 'There is no need to activate your account you can ' . LOGIN_LINK . ' now.');
define('ACTIVATE_ADMIN_VERIFICATION', 'The administrator of this site must validate you before you ' . LOGIN_LINK . '.');
define('ACTIVATE_CODE_NOT_VALID', 'That is not a valid code.');
define('ACTIVATE_USERNAME_NOT_VALID', 'That username is not valid.');
define('ACTIVATE_CODE_NOT_MATCH', 'That code does not equal the one entered in the database.');
// Activation success
define('ACTIVATE_SUCCESS', 'You have successfully activated your account. You may now ' . LOGIN_LINK . '.');
// Activation email stuff
define('ACTIVATION_SUBJECT', 'You have successfully signed up!');
// %1$s contains the link
define('ACTIVATION_BODY', 'You have successfully signed up, but you are still not activated yet. You can activate your account via the link below:' . "\n\n" . '%1$s');
// Administration activation
define('ACTIVATION_BODY_SUCCESS', 'Hello %1$s, the administrator at %2$s has activated your account. Feel free to login at the following address:' . "\n\n" . ' %3$s');
// Admin configuration errors
define('ADMIN_COOKIE_PREFIX_ERROR', 'The cookie prefix you entered was either too long or was not valid.');
define('ADMIN_MAX_USERNAME_ERROR', 'The max. username length you entered was not valid.');
define('ADMIN_MIN_USERNAME_ERROR', 'The min. username length you entered was not valid.');
define('ADMIN_MAX_PASSWORD_ERROR', 'The max. password length you defined was not valid.');
define('ADMIN_MIN_PASSWORD_ERROR', 'The min. password length you defined was not valid.');
define('ADMIN_COOKIE_PATH_ERROR', 'The cookie path you entered was incorrect format.');
define('ADMIN_COOKIE_SECURE_ERROR', 'The cookie secure value you entered was not valid.');
define('ADMIN_COOKIE_LENGTH_ERROR', 'There was an error processing the cookie length you entered.');
define('ADMIN_COOKIE_DOMAIN_ERROR', 'The cookie domain you entered was not valid.');
define('ADMIN_MAX_TRIES_ERROR', 'The max. login tries you entered was not valid.');
define('ADMIN_USER_REGEX_ERROR', 'The user regex you entered was too long.');
define('ADMIN_SECURITY_IMAGE_ERROR', 'The security image value you entered was not a valid choice.');
define('ADMIN_ACTIVATION_TYPE_ERROR', 'The activation type you selected was not a valid choice.');
define('ADMIN_LOGIN_REDIRECT_ERROR', 'The login redirect URL you entered was too long or too short.');
define('ADMIN_LOGOUT_REDIRECT_ERROR', 'The logout redirect URL you entered was too long or too short.');
define('ADMIN_MAX_UPLOAD_SIZE_CONFIG_ERROR', 'The maximum upload size you entered was not a valid size in bytes.');
define('ADMIN_AUTH_REGISTRATION_CONFIG_ERROR', 'The choice you selected for allowing public registrations was not valid.');
// Admin errors
define('ADMIN_USERNAME_NOT_VALID', 'The username you entered was not a valid format.');
define('ADMIN_NOT_ADMIN', 'You must be an administrator to access this site.');
define('ADMIN_NOT_LOGGED', 'You must ' . LOGIN_LINK . ' before you can access this feature.');
define('ADMIN_NO_ACTIVATIONS', 'There are no accounts needing activation.');
define('ADMIN_USERNAME_YOUR_OWN', 'You can\'t block your own username.');
define('ADMIN_EDIT_USER_BANNED_ERROR', 'The banned choice you selected was not valid.');
define('ADMIN_MAX_UPLOAD_SIZE_ERROR', 'The file you are trying to upload is too big.');
define('ADMIN_ACTIVATE_NO_NEED', 'There are no accounts for you to activate right now.');
define('ADMIN_PAGE_DOESNT_EXIST', 'The page you are looking for doesn\'t seem to exist.');
define('ADMIN_GROUP_NAME_ERROR', 'The group name you entered is not a valid format');
define('ADMIN_MASK_ID_ERROR', 'The mask ID you selected is not correct.');
define('ADMIN_GROUP_ID_ERROR', 'The group ID you selected is not correct.');
define('ADMIN_LEADER_ID_ERROR', 'The leader ID you selected on the previous page is not correct.');
define('ADMIN_MASK_DOESNT_EXIST', 'The mask you selected doesn\'t exist in the database.');
define('ADMIN_GROUP_ALREADY_EXISTS', 'The group name you selected already exists.');
define('ADMIN_GROUP_DOESNT_EXIST', 'The group you selected doesn\'t seem to exist in the database.');
define('ADMIN_MASK_SELECTION_ERROR', 'The mask you selected doesn\'t seem to exist in the database.');
define('ADMIN_MASK_NAME_ERROR', 'The mask name you entered is not a valid format.');
define('ADMIN_USER_DOESNT_EXIST', 'The user you selected doesn\'t seem to exist in your database.');
define('ADMIN_CANT_REMOVE_SELF', 'You can\'t remove yourself from the site. If you need your account removed contact another administrator.');
define('ADMIN_IS_PUBLIC_ERROR', 'The public status of the group you chose is not a valid format.');
define('ADMIN_GROUP_NAME_EXISTANT', 'The group name you selected already exists in the database. Either change the other one or choose another name.');
define('ADMIN_MASK_NAME_TAKEN', 'The mask name you selected already exists in the database.');
define('ADMIN_TO_ERROR', 'There was an error with the email address you entered to send the invite to.');
define('ADMIN_REPLY_TO_ERROR', 'There was an error with the email address you entered for the Reply-To field.');
define('ADMIN_SUBJECT_ERROR', 'There was an error with the subject you entered.');
define('ADMIN_LINKAGE_ERROR', 'You must not leave the link field blank.');
define('ADMIN_MESSAGE_ERROR', 'There was an error with the message you entered.');
define('ADMIN_CANT_SEND_MAIL', 'There was an error while trying to send the email. It is probably something to do with your server.');
define('ADMIN_CANT_REMOVE_THOSE', 'You can\'t remove the first or second mask/group as they are needed by the system.');
/**
* These are the try again messages that are output if the
* function the administrators were trying to do didn't work.
*/
define('BR_BR', '
');
define('ADMIN_CONFIG_TRY_AGAIN', BR_BR . 'Please return the configuration form and try again.');
define('ADMIN_ADD_USER_TRY_AGAIN', BR_BR . 'Please return to the add user form and try again.');
// %1$d is the user's ID number (next three)
define('ADMIN_REMOVE_USER_TRY_AGAIN', BR_BR . 'Please try again.');
define('ADMIN_EDIT_USER_TRY_AGAIN', BR_BR . 'Please try to edit them again.');
define('ADMIN_ACTIVATE_USER_TRY_AGAIN', BR_BR . 'Please try to activate them again.');
define('ADMIN_ADD_PAGE_TRY_AGAIN', BR_BR . 'Please return to the administration panel and try again.');
// %1$d is the page's ID number (next two)
define('ADMIN_REMOVE_PAGE_TRY_AGAIN', BR_BR . 'Please try again.');
define('ADMIN_EDIT_PAGE_TRY_AGAIN', BR_BR . 'Please try to edit it again.');
define('ADMIN_ADD_MASK_TRY_AGAIN', BR_BR . 'Please return to the add mask form and try again.');
// %1$d is the mask's ID number (next two)
define('ADMIN_REMOVE_MASK_TRY_AGAIN', BR_BR . 'Please try again.');
define('ADMIN_EDIT_MASK_TRY_AGAIN', BR_BR . 'Please try to edit it again.');
define('ADMIN_ADD_GROUP_TRY_AGAIN', BR_BR . 'Please return to the add group form and try again.');
// %1$d is the group ID (next two)
define('ADMIN_REMOVE_GROUP_TRY_AGAIN', BR_BR . 'Please try again.');
define('ADMIN_EDIT_GROUP_TRY_AGAIN', BR_BR . 'Please try to edit it again.');
define('ADMIN_SEND_INVITE_TRY_AGAIN', BR_BR . 'Please return to the send invite form and try again.');
/**
* These are the success messages that are output if the
* function the administrators were trying to do worked.
*/
define('ADMIN_CONFIG_SUCCESS', 'You have successfully updated the system\'s configuration.');
define('ADMIN_ADD_USER_SUCCESS', 'You have successfully added the user to the database.');
// %1$s is the username which was removed (next two)
define('ADMIN_REMOVE_USER_SUCCESS', 'You have successfully removed \'%1$s\' from the database.');
// %2$d is their ID
define('ADMIN_EDIT_USER_SUCCESS', 'You have successfully updated %1$s\'s information. Would you like to edit them again?');
// %1$s is the username
define('ADMIN_ACTIVATE_USER_SUCCESS', 'You have successfully activated %1$s\'s account.');
define('ADMIN_ADD_PAGE_SUCCESS', 'You have successfully added that page to your site. Please return to the administration panel.');
// %1$s is the page name (next two)
define('ADMIN_REMOVE_PAGE_SUCCESS', 'You have successfully removed the \'%1$s\' from your site.');
// %2$d is the ID number
define('ADMIN_EDIT_PAGE_SUCCESS', 'You have successfully updated the \'%1$s\' file. Would you like to edit it again?');
define('ADMIN_ADD_MASK_SUCCESS', 'You have successfully added the permission mask to the database.');
define('ADMIN_REMOVE_MASK_SUCCESS', 'You have successfully removed the selected permission mask from the database.');
// %1$s is the mask name, %2$d is the mask ID
define('ADMIN_EDIT_MASK_SUCCESS', 'You have successfully edited the \'%1$s\' information. Would you like to edit it again?');
define('ADMIN_ADD_GROUP_SUCCESS', 'You have successfully added that group into the database.');
// %1$s is the group name (next two)
define('ADMIN_REMOVE_GROUP_SUCCESS', 'You have successfully removed \'%1$s\' from the database.');
// %2$d is the group's ID
define('ADMIN_EDIT_GROUP_SUCCESS', 'You have successfully edited %1$s\'s information. Would you like to edit the group again?');
define('ADMIN_SEND_INVITE_SUCCESS', 'You have successfully sent the invite. It could take up to 15 minutes to send but is usually instantaneous.');
/**
* These are the try again messages that are output if the
* function the group leaders were trying to do didn't work.
*/
// %1$d is the user ID and %2$d is the group ID
define('GROUP_REMOVE_USER_TRY_AGAIN', BR_BR . 'Please try to remove them again.');
// %1$d is the group ID
define('GROUP_ADD_USER_TRY_AGAIN', BR_BR . 'Please try to add them again.');
/**
* These are the success messages that are output if the
* function the group leaders were trying to do worked.
*/
// %1$s is the username (next two)
define('GROUP_REMOVE_USER_SUCCESS', 'You have successfully removed \'%1$s\' from the group.');
define('GROUP_ADD_USER_SUCCESS', 'You have successfully added \'%1$s\' to your group.');
define('GROUP_JOIN_SUCCESS', 'You have successfully joined that group!');
define('GROUP_LEAVE_SUCCESS', 'You have successfully left that group. You are now a member of the Default group.');
/**
* Random group errors and successes
*/
define('GROUP_CANT_REMOVE_SELF', 'You can\'t remove yourself from the group!');
define('GROUP_NOT_PUBLIC', 'The group you selected is not a public group.');
define('GROUP_CANT_JOIN', 'Sorry but you can\'t leave the group you\'re in to join this one!');
define('GROUP_USER_LIST_NO_USERS', 'There are no users that can be displayed.');
/**
* These are all defined as NO_AUTHORIZATION (except of course
* for NO_AUTHORIZATION). This is because they all can say the
* same thing, and it allows for customization :)
*/
define('NO_AUTHORIZATION', 'You don\'t have the correct permissions to access this page.');
define('ADMIN_CONFIG_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_USER_LIST_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_PAGE_LIST_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_LIST_MASKS_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_LIST_GROUPS_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_ACTIVATE_USER_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_REMOVE_USER_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_ADD_USER_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_EDIT_USER_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_EDIT_MASK_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_PHPINFO_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_ADD_PAGE_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_REMOVE_PAGE_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_EDIT_PAGE_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_ADD_GROUP_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_EDIT_GROUP_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_REMOVE_MASK_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_REMOVE_GROUP_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_SEND_INVITE_NO_AUTH', NO_AUTHORIZATION);
define('ADMIN_ADD_MASK_NO_AUTH', NO_AUTHORIZATION);
define('GROUP_CP_NO_AUTH', NO_AUTHORIZATION);
define('GROUPCP_NO_AUTH', GROUP_CP_NO_AUTH);
/**
* File errors! I forgot to prefix with ADMIN_ and I'm too
* lazy to go back and change it all :P
*/
define('FILE_NOT_UPLOADED', 'The selected file could not be uploaded.');
define('FILE_EXISTS_SIZE_EXTENSION', 'The file you selected may already exist or may be too big or the extension could be wrong');
define('FILE_EXISTS', 'A file with that name already exists.');
define('FILE_TOO_BIG', 'The selected file is too big to be uploaded.');
define('FILE_EXTENSION_ERROR', 'The selected file doesn\'t have a proper extension (.php).');
define('FILE_NOT_MOVED', 'The uploaded file could not be moved. It has not been uploaded successfully.');
define('FILE_NOT_READABLE', 'The file you are trying to access is not readable. Please check it\'s permissions.');
define('FILE_NOT_CREATED', 'The selected file could not be created on your server. Please check the folder permissions.');
define('FILE_NOT_OPENABLE', 'The request file can\'t be opened! Please check it\'s permissions and try again.');
define('ADMIN_FILE_NOT_DELETED', 'The selected file could not be deleted from your server. Please check it\'s permissions.');
define('ADMIN_FILE_NOT_WRITABLE', 'The file you are trying to write to is not writable. Please check it\'s permissions.');
define('ADMIN_FILE_NOT_OPENED', 'The file you are trying to access can\'t be opened. Please check it\'s permissions.');
define('ADMIN_FILE_NOT_UPDATED', FILE_NOT_OPENABLE);
/**
* This is the pagination information. It will be processed
* using the sprintf() or printf() functions. Therefore the
* %{NUM}${FORMAT} should be kept like that, they usually
* contain an expression or number (d = number, s = string)
*/
define('PAGINATION_ONE_PAGE', '