blob: 2bf82f98e03c8d2103f52635febc4a96341d507b [file] [log] [blame]
matheusfillipe47cf90b2021-05-13 03:36:21 -03001<?php
Marc Kupietz145f5b92023-03-09 20:39:31 +01002include_once 'config.php';
3
matheusfillipe47cf90b2021-05-13 03:36:21 -03004$RUNTIME_ERROR = (object)[
matheusfillipec0ce7fa2021-05-13 05:15:37 -03005 "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?",
matheusfillipe47cf90b2021-05-13 03:36:21 -03007 "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 Kupietza7721992023-03-28 14:55:45 +020035 "registered" => "This email 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>"),
matheusfillipe47cf90b2021-05-13 03:36:21 -030036 "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...",
matheusfillipef43dd962021-05-13 23:27:01 -030053 "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>",
matheusfillipe47cf90b2021-05-13 03:36:21 -030056];
57
58?>