blob: 7d58bc22a3fa4e291059129215274c50ee4bb487 [file] [log] [blame]
matheusfillipeabd513e2021-05-11 03:29:11 -03001<?php
2// Service base url
3$BASE_URL = "https://example.com/signup";
4
matheusfillipe47cf90b2021-05-13 03:36:21 -03005// Language country code. The default language to look for. Leave empty for the default html folder
6$LANG_CC = "";
7
matheusfillipeabd513e2021-05-11 03:29:11 -03008// Ldap server
9$HOST = 'localhost';
10$PORT = 389;
11$USER = "admin";
12$PASSWORD = "myldappassword";
13$BASE_DN = 'cn={},ou=organization,dc=example,dc=com';
Marc Kupietz92e48662023-02-23 10:04:21 +010014$ENCRYPT_PASSWORDS = false;
matheusfillipeabd513e2021-05-11 03:29:11 -030015
Marc Kupietz97afde42023-03-04 14:12:46 +010016$SERVICE_ACRONYM = "Test Service";
Marc Kupietz0be2b462023-03-08 09:29:11 +010017#$CONFERENCE_REGISTRATION = true;
18$SERVICE_LOGO = "./static/Test_Logo.svg";
19$SERVICE_NAME = "International Test Corpus";
20
21$REGULAR_CONFERENCE_FEE = 280;
22$EARLYBIRD_CONFERENCE_FEE = 240;
23$CONFERENCE_DINNER = 60;
24$STUDENT_DISCOUNT = 80;
25$EARLYBIRD_DEADLINE = "15 May 2023"; // HAWAIAN TIME (HST) is used :)
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010026
matheusfillipeabd513e2021-05-11 03:29:11 -030027// Redis password
28$REDIS_PASS = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
29
30// Mail
31$SMTP = (object)[
32 "from" => 'frommail@mail.com',
33 'host' => 'tls://mail.com',
34 'port' => '465',
35 'username' => 'frommail@mail.com',
36 'password' => 'xxxxxxxxx'
37];
38$FALLBACK_SMTP = (object)[
39 "from" => 'another@gmail.com',
40 'host' => 'tls://gmail.com',
41 'port' => '465',
42 'username' => 'signup@gmail.com',
43 'password' => 'xxxxxxxxxx'
44];
Marc Kupietz641b32a2023-03-04 19:55:56 +010045// $MAIL_CC = "ccme@example.org"; // optionally CC all mails
46// $MAIL_BCC = "bccme@example.org"; // optionally BCC all mails
matheusfillipeabd513e2021-05-11 03:29:11 -030047
48// User Validation
49$VAL_USER = (object)[
50 "min_username" => 5,
51 "max_username" => 32,
52 "min_first_name" => 3,
53 "max_first_name" => 32,
54 "min_last_name" => 3,
55 "max_last_name" => 32,
56 "min_password" => 8,
57 "max_password" => 128
58];
59$CAPTCHA_LENGTH = 5;
60
matheusfillipe38706ea2021-05-12 02:45:42 -030061// Use unsafe but easier captcha (no ocr testing)
62$SIMPLECAPTCHA = false;
63
matheusfillipeabd513e2021-05-11 03:29:11 -030064// not accept emails from
65$MAIL_HOST_BLACKLIST = ["mailinator.com"];
66// Use fallback_smtp directly for these hosts
67$MAIL_HOST_DIRECT_FALLBACK = ["hotmail.com"];
68
69// Max registrations from one ip per hour
70$HOURLY_REGISTRATIONS = 3;
71
72// Max Captcha requests for one ip per hour
73$HOURLY_CAPTCHAS = 15;
74
75// Expiration delay for mail confirmation in seconds. After this time the email
76// confirmation link will say 'token expired'
77$MAIL_CONFIRMATION_AWAIT_DELAY = 3600;
78
79// CONFIRMATION EMAIL TEMPLATE
80// text is the version for mail clients that don't support html
81// html is the version with html support
matheusfillipef43dd962021-05-13 23:27:01 -030082// You can create templaets for different languages under
83// templates_cc/email.php
matheusfillipeabd513e2021-05-11 03:29:11 -030084$MAIL_TEMPLATE = (object)[
85 "subject" => "Confirm your email",
86 "text" => "To complete your registration please paste this to your browser: {{url}}",
87 "html" => "<html><body>
88 <h2>Almost there! Click on the link bellow to confirm your email address</h2>
89 <a href='{{url}}'>Confirm</a>
90 </body></html>"
91];
92
Matheus Fillipe301684b2021-05-14 09:09:43 +030093$RECOVERY_EMAIL_TEMPLATE = (object)[
94 "subject" => "Change your password!",
95 "text" => "Seems you requested a password change. If that wasn't you please ignore this message. Otherwise go to this url to change your password: {{url}}",
96 "html" => "<html><body>
97 <h3>Seems you requested a password change. If that wasn't you please ignore this message. Otherwise go to this url to change your password</h3>
98 <a href='{{url}}'>Click here</a> to change your password
99 </body></html>"
100];
101
102
103$PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[
104 "subject" => "Your password was changed",
105 "text" => "Your password was chanegd successfully. If this wasn't you please contact support",
106 "html" => "<html><body>
107 <h3>Your password was chanegd successfully. If this wasn't you please contact support</h3>
108 </body></html>"
109];
110
matheusfillipe38706ea2021-05-12 02:45:42 -0300111// url to redirect to after mail confirmation. It will be 5 seconds of delay. Leave empty to none
matheusfillipeabd513e2021-05-11 03:29:11 -0300112$REDIRECT_TO = "";
113
Matheus Fillipe5ad0cd52022-05-05 06:10:41 +0300114// Registration callback. A function to run when registration is successfull
Matheus Fillipe773eafa2022-05-05 06:15:47 +0300115$POST_REGISTER_HOOK = function($user){
116 echo "Welcome " . $user->name . "! Your ip is logged: " . $_SERVER['REMOTE_ADDR'];
Matheus Fillipe5ad0cd52022-05-05 06:10:41 +0300117};
118
matheusfillipeabd513e2021-05-11 03:29:11 -0300119// displays php errors on the html page. Set to false for production
120$DEBUG = false;