blob: d708a90d84b83e921238b37e75a9d308d87f8d0c [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 Kupietz975a2212023-04-12 11:11:11 +020016$DB = "mysql:host=127.0.0.1;dbname=signup";
17$DB_USER = "root";
18$DB_PASS = "mysqlpassword";
19
Marc Kupietz97afde42023-03-04 14:12:46 +010020$SERVICE_ACRONYM = "Test Service";
Marc Kupietz975a2212023-04-12 11:11:11 +020021$CONFERENCE_REGISTRATION = false;
Marc Kupietzf46948e2023-03-28 15:01:19 +020022
23$SERVICE_URL = "https://www.example.org";
Marc Kupietz0be2b462023-03-08 09:29:11 +010024$SERVICE_LOGO = "./static/Test_Logo.svg";
25$SERVICE_NAME = "International Test Corpus";
Marc Kupietz04b96212023-04-26 20:51:15 +020026$SERVICE_COLOR = "#FF973A";
Marc Kupietz97087a12023-04-28 16:42:49 +020027// $MENU_BAR = "menubar.html";
Marc Kupietz0be2b462023-03-08 09:29:11 +010028
29$REGULAR_CONFERENCE_FEE = 280;
30$EARLYBIRD_CONFERENCE_FEE = 240;
31$CONFERENCE_DINNER = 60;
Marc Kupietz7dabb462023-04-10 19:01:21 +020032$MAX_DINNERS = 90;
Marc Kupietz0be2b462023-03-08 09:29:11 +010033$STUDENT_DISCOUNT = 80;
Marc Kupietz8b80c7a2023-03-28 21:41:39 +020034$EXCURSION = 20;
Marc Kupietz0be2b462023-03-08 09:29:11 +010035$EARLYBIRD_DEADLINE = "15 May 2023"; // HAWAIAN TIME (HST) is used :)
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010036
matheusfillipeabd513e2021-05-11 03:29:11 -030037// Redis password
38$REDIS_PASS = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
39
40// Mail
41$SMTP = (object)[
42 "from" => 'frommail@mail.com',
43 'host' => 'tls://mail.com',
44 'port' => '465',
45 'username' => 'frommail@mail.com',
46 'password' => 'xxxxxxxxx'
47];
48$FALLBACK_SMTP = (object)[
49 "from" => 'another@gmail.com',
50 'host' => 'tls://gmail.com',
51 'port' => '465',
52 'username' => 'signup@gmail.com',
53 'password' => 'xxxxxxxxxx'
54];
Marc Kupietz641b32a2023-03-04 19:55:56 +010055// $MAIL_CC = "ccme@example.org"; // optionally CC all mails
56// $MAIL_BCC = "bccme@example.org"; // optionally BCC all mails
matheusfillipeabd513e2021-05-11 03:29:11 -030057
58// User Validation
59$VAL_USER = (object)[
60 "min_username" => 5,
61 "max_username" => 32,
62 "min_first_name" => 3,
63 "max_first_name" => 32,
64 "min_last_name" => 3,
65 "max_last_name" => 32,
66 "min_password" => 8,
67 "max_password" => 128
68];
69$CAPTCHA_LENGTH = 5;
70
matheusfillipe38706ea2021-05-12 02:45:42 -030071// Use unsafe but easier captcha (no ocr testing)
72$SIMPLECAPTCHA = false;
73
matheusfillipeabd513e2021-05-11 03:29:11 -030074// not accept emails from
75$MAIL_HOST_BLACKLIST = ["mailinator.com"];
76// Use fallback_smtp directly for these hosts
77$MAIL_HOST_DIRECT_FALLBACK = ["hotmail.com"];
78
79// Max registrations from one ip per hour
80$HOURLY_REGISTRATIONS = 3;
81
82// Max Captcha requests for one ip per hour
83$HOURLY_CAPTCHAS = 15;
84
85// Expiration delay for mail confirmation in seconds. After this time the email
86// confirmation link will say 'token expired'
87$MAIL_CONFIRMATION_AWAIT_DELAY = 3600;
88
89// CONFIRMATION EMAIL TEMPLATE
90// text is the version for mail clients that don't support html
91// html is the version with html support
matheusfillipef43dd962021-05-13 23:27:01 -030092// You can create templaets for different languages under
93// templates_cc/email.php
matheusfillipeabd513e2021-05-11 03:29:11 -030094$MAIL_TEMPLATE = (object)[
95 "subject" => "Confirm your email",
96 "text" => "To complete your registration please paste this to your browser: {{url}}",
97 "html" => "<html><body>
98 <h2>Almost there! Click on the link bellow to confirm your email address</h2>
99 <a href='{{url}}'>Confirm</a>
100 </body></html>"
101];
102
Matheus Fillipe301684b2021-05-14 09:09:43 +0300103$RECOVERY_EMAIL_TEMPLATE = (object)[
104 "subject" => "Change your password!",
105 "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}}",
106 "html" => "<html><body>
107 <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>
108 <a href='{{url}}'>Click here</a> to change your password
109 </body></html>"
110];
111
112
113$PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[
114 "subject" => "Your password was changed",
115 "text" => "Your password was chanegd successfully. If this wasn't you please contact support",
116 "html" => "<html><body>
117 <h3>Your password was chanegd successfully. If this wasn't you please contact support</h3>
118 </body></html>"
119];
120
matheusfillipe38706ea2021-05-12 02:45:42 -0300121// url to redirect to after mail confirmation. It will be 5 seconds of delay. Leave empty to none
matheusfillipeabd513e2021-05-11 03:29:11 -0300122$REDIRECT_TO = "";
123
Matheus Fillipe5ad0cd52022-05-05 06:10:41 +0300124// Registration callback. A function to run when registration is successfull
Matheus Fillipe773eafa2022-05-05 06:15:47 +0300125$POST_REGISTER_HOOK = function($user){
126 echo "Welcome " . $user->name . "! Your ip is logged: " . $_SERVER['REMOTE_ADDR'];
Matheus Fillipe5ad0cd52022-05-05 06:10:41 +0300127};
128
matheusfillipeabd513e2021-05-11 03:29:11 -0300129// displays php errors on the html page. Set to false for production
130$DEBUG = false;