This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php.example
60 lines (47 loc) · 3.47 KB
/
config.php.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
// this is mail address where administrative mails will be sent to
define("ADMIN_MAIL", "admin@example.com");
// this is the base URL expected in REFERER headers sent by browsers when submitting a form,
// this value is used to check the actual REFERER header during a form submission,
// the check is used to prevent cross-site request forgery attempts
define("BASE_URL", "http://localhost:8080/");
// this is the MailGun configuration needed to send mails
define("MAILGUN_AUTH", "api:key-0123456789abcdef0123456789abcdef");
define("MAILGUN_ENDPOINT", "https://api.eu.mailgun.net/v3/mg.filmmakersforfuture.org/messages");
define("MAILGUN_FROM", "Filmmakers for Future <noreply@mg.filmmakersforfuture.org>");
// this is the newsletter submission password, it has to be set in the CRYPT password format,
// the value can be generated via:
// php -r 'print(str_replace("\$", "\\\$", password_hash(readline("Password: "), PASSWORD_DEFAULT)."\n"));'
define("NEWSLETTER_SEND_PASSWORD", null);
// this is the database configuration - see the README.md how to set up the database
define("DB_HOST", "127.0.0.1");
define("DB_PORT", 3306);
define("DB_NAME", "fff");
define("DB_USER", "fff");
define("DB_PASS", "fff");
// defines the contents of the mail that is sent to the admin DURING verification
define("ADMIN_VERIFY_MAIL_BODY", file_get_contents(__DIR__."/templates/admin_verify.txt"));
define("ADMIN_VERIFY_MAIL_SUBJECT", "Filmmakers for Future: Please verify this user registration!");
// defines the recipients and mail subjects of messages sent through the contact form
define("CONTACT_SUBJECTS", [[MAIL_MAIL => "admin@example.com", MAIL_SUBJECT => "Message for example.com"],
[MAIL_MAIL => "admin@example.net", MAIL_SUBJECT => "Message for example.net"]]);
// defines the contents of the mail that is sent to the admin when the contact form is used
define("CONTACT_MAIL_BODY", file_get_contents(__DIR__."/templates/contact.txt"));
define("CONTACT_MAIL_SUBJECT", "Filmmakers for Future: {%SUBJECT}");
// defines the default contents of the newsletter submission form
define("NEWSLETTER_MAIL_BODY", file_get_contents(__DIR__."/templates/newsletter.txt"));
define("NEWSLETTER_MAIL_SUBJECT", "");
// defines the contents of the mail that is sent to the user when requesting a newsletter management link
define("USER_NEWSLETTER_MAIL_BODY", file_get_contents(__DIR__."/templates/user_newsletter.txt"));
define("USER_NEWSLETTER_MAIL_SUBJECT", "Filmmakers for Future: Your link to update your newsletter subscription.");
// defines the contents of the mail that is sent to the user AFTER verification
define("USER_VERIFIED_MAIL_BODY", file_get_contents(__DIR__."/templates/user_verified.txt"));
define("USER_VERIFIED_MAIL_SUBJECT", "Filmmakers for Future: Your registration has been verified!");
// defines the contents of the mail that is sent to the user DURING verification
define("USER_VERIFY_MAIL_BODY", file_get_contents(__DIR__."/templates/user_verify.txt"));
define("USER_VERIFY_MAIL_SUBJECT", "Filmmakers for Future: Please verify your registration!");
define("ERRORS_ENABLED", true);
define("ERRORS_FOLDER", __DIR__."/../errors/");
define("ERRORS_NEWSLETTER", "Your signature has not yet been verified.");
define("ERRORS_REGISTER", "Your email address has already been used to sign our statement.");
define("ERRORS_VERIFY", "Your signature does not need to be verified.");