matheusfillipe | 47cf90b | 2021-05-13 03:36:21 -0300 | [diff] [blame] | 1 | <?php |
Marc Kupietz | 87a1431 | 2023-03-09 20:39:31 +0100 | [diff] [blame^] | 2 | include_once 'config.php'; |
| 3 | |
matheusfillipe | 47cf90b | 2021-05-13 03:36:21 -0300 | [diff] [blame] | 4 | $RUNTIME_ERROR = (object)[ |
matheusfillipe | c0ce7fa | 2021-05-13 05:15:37 -0300 | [diff] [blame] | 5 | "not_found" => "<center><h2>This page does not exist!</h2></center>", |
| 6 | "template_not_found" => "Either you did not create the folder '{{template}}' or strings.php is missing on it. Maybe you have set LANG_CC: '{{langcc}}' wrong on config.php?", |
matheusfillipe | 47cf90b | 2021-05-13 03:36:21 -0300 | [diff] [blame] | 7 | "user_trying_invalid_get" => "INVALID REQUEST. THERE IS NOTHING HERE FOR YOU", |
| 8 | ]; |
| 9 | |
| 10 | $USERNAME_VALIDATION_ERROR = (object)[ |
| 11 | "registered" => "This username is already in use! Please choose another username<br>", |
| 12 | "no_whitespaces" => "Username cannot contain whitespaces<br>", |
| 13 | "smaller_than" => "Username must have less than {{num}} characters<br>", |
| 14 | "bigger_than" => "Username must be bigger than {{num}} characters<br>", |
| 15 | "no_special_chars" => "The username cannot contain special characters<br>", |
| 16 | "no_number_begining" => "The username cannot begin with a number<br>", |
| 17 | "blacklisted" => "That Username is not allowed!<br>", |
| 18 | ]; |
| 19 | |
| 20 | $FIRST_NAME_VALIDATION_ERROR = (object)[ |
| 21 | "no_whitespaces" => "First name cannot contain whitespaces<br>", |
| 22 | "smaller_than" => "First name must have less than {{num}} characters<br>", |
| 23 | "bigger_than" => "First name must be bigger than {{num}} characters<br>", |
| 24 | "no_special_chars" => "The first name cannot contain special characters or numbers<br>", |
| 25 | ]; |
| 26 | |
| 27 | $LAST_NAME_VALIDATION_ERROR = (object)[ |
| 28 | "no_whitespaces" => "Last name cannot contain whitespaces<br>", |
| 29 | "smaller_than" => "Last name must have less than {{num}} characters<br>", |
| 30 | "bigger_than" => "Last name must be bigger than {{num}} characters<br>", |
| 31 | "no_special_chars" => "The last name cannot contain special characters or numbers<br>", |
| 32 | ]; |
| 33 | |
| 34 | $EMAIL_VALIDATION_ERROR = (object)[ |
Marc Kupietz | 87a1431 | 2023-03-09 20:39:31 +0100 | [diff] [blame^] | 35 | "registered" => "This email is already belongs to an account. It seems like you are already registered. Please check your mailbox." . ($CONFERENCE_REGISTRATION? "": "Or did you <a href='{{link}}'>forget your password?</a><br>"), |
matheusfillipe | 47cf90b | 2021-05-13 03:36:21 -0300 | [diff] [blame] | 36 | "invalid" => "Invalid email format<br>", |
| 37 | "blacklisted" => "This email service is not allowed<br>", |
| 38 | "pending" => "This email is already pending approval, check your mailbox or try to register with a different email<br>", |
| 39 | |
| 40 | ]; |
| 41 | |
| 42 | $PASSWORD_VALIDATION_ERROR = (object)[ |
| 43 | "no_match" => "Passwords do not match!<br>", |
| 44 | "bigger_than" => "Password should have at least {{num}} characters<br>", |
| 45 | "smaller_than" => "Password is too big. Should have at max {{num}} characters<br>", |
| 46 | "blacklisted" => "That password is not allowed!<br>", |
| 47 | "shared_inclusion" => "Your password cannot contain any of your names or email neither the names can contain the password<br>" |
| 48 | ]; |
| 49 | |
| 50 | $STRINGS = (object)[ |
| 51 | "email_confirmation" => "<h1>Email Confirmation</h1>", |
| 52 | "reloading_captcha" => "Loading...", |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 53 | "wrong_captcha" => "Wrong captcha!<br>", |
| 54 | "recover_email_not_registered" => "This email is not registered<br>", |
| 55 | "change_password_ldap_error" => "<h2>Something went wrong.</h2>", |
matheusfillipe | 47cf90b | 2021-05-13 03:36:21 -0300 | [diff] [blame] | 56 | ]; |
| 57 | |
| 58 | ?> |