-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
145 lines (137 loc) · 10.4 KB
/
config.php
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
// prevent script from getting called directly
if (!defined("URLAUBE")) { die(""); }
include 'secrets/secrets.php';
include 'language.php';
// !!! COMMENT THIS OUT FOR PRODUCTION
//Main::set(DEBUGMODE, true);
//Main::set(LOGLEVEL, Logging::INFO);
// main configuration
Main::set(CACHE, true); // !!! SET THIS TO TRUE FOR PRODUCTION
Main::set(HOSTNAME, "filmmakersforfuture.org");
Main::set(PORT, "443");
Main::set(PROTOCOL, "https://");
Main::set(ROOTURI, "/");
Main::set(THEMENAME, FM4FTheme::class);
// Podlove plugin configuration
Plugins::set("PODLOVE_FEED_URL", "https://podcast.fm4f.org/feed.xml");
Plugins::set("PODLOVE_SPOTIFY_ID", "3JUfnybPrKH0AJ7aN39Slc");
Plugins::set("PODLOVE_APPLE_PODCAST_ID", "id1516179139");
Plugins::set("PODLOVE_GOOGLE_PODCAST", True);
Plugins::set("PODLOVE_POCKET_CASTS", True);
Plugins::set("PODLOVE_YOUTUBE_ID", "UC-SNT4gGFgRiFb2iBccJDkw");
Plugins::set("PODLOVE_THEME_COLORS", [
"brand" => "#1DA64AFF",
"brandDark" => "#512F9BFF",
"brandDarkest" => "#1A3A4A",
"brandLightest" => "#F0F5F1FF",
"shadeDark" => "#807E7C",
"shadeBase" => "#807E7C",
"contrast" => "#000",
"alt" => "#fff"
]);
// FM4F plugin configuration
Plugins::set("ADMIN_MAIL", "[email protected]");
Plugins::set("MAILGUN_AUTH", $MAILGUN_AUTH);
Plugins::set("MAILGUN_ENDPOINT", "https://api.eu.mailgun.net/v3/mg.fm4f.org/messages");
Plugins::set("MAILGUN_FROM", "Filmmakers for Future <[email protected]>");
Plugins::set("NEWSLETTER_SEND_PASSWORD", $NEWSLETTER_SEND_PASSWORD);
Plugins::set("DB_HOST", "localhost");
Plugins::set("DB_PORT", 3306);
Plugins::set("DB_NAME", $DB_NAME);
Plugins::set("DB_USER", $DB_USER);
Plugins::set("DB_PASS", $DB_PASS);
Plugins::set("CONTACT_SUBJECTS", [["{%MAIL}" => "[email protected]",
"{%SUBJECT}" => "General"],
["{%MAIL}" => "[email protected]",
"{%SUBJECT}" => "Press related inquiries"],
["{%MAIL}" => "[email protected]",
"{%SUBJECT}" => "Podcast"],
["{%MAIL}" => "[email protected]",
"{%SUBJECT}" => "Update signature data"],
["{%MAIL}" => "[email protected]",
"{%SUBJECT}" => "Submit video"],
["{%MAIL}" => "[email protected]",
"{%SUBJECT}" => "Collaboration"],
["{%MAIL}" => "[email protected]",
"{%SUBJECT}" => "Privacy related"]]);
// theme configuration
Themes::set("copyright_html", fhtml( "<div class=\"small text-center text-muted\">%s</div>".NL.
"<div class=\"small text-center\">".NL.
" <p class=\"text-muted\">".NL.
" <a href=\"%s\">%s</a> · <a href=\"%s\">%s</a> · <a href=\"%s\">%s</a> · <a href=\"%s\">%s</a><br>".NL.
" <a href=\"%s\">%s</a> · <a href=\"%s\">%s</a>".NL.
" </p>".NL.
" <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"%s\" title=\"%s\"><i style=\"font-size:2.5rem\" class=\"text-secondary fa fa-instagram mx-2\" aria-hidden=\"true\"></i></a>".NL.
" <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"%s\" title=\"%s\"><i style=\"font-size:2.5rem\" class=\"text-secondary fa fa-youtube mx-2\" aria-hidden=\"true\"></i></a>".NL.
" <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"%s\" title=\"%s\"><i style=\"font-size:2.5rem\" class=\"text-secondary fa fa-twitter mx-2\" aria-hidden=\"true\"></i></a>".NL.
" <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"%s\" title=\"%s\"><i style=\"font-size:2.5rem\" class=\"text-secondary fa fa-facebook mx-2\" aria-hidden=\"true\"></i></a>".NL.
"</div>".NL.
"<div class=\"small text-center\" id=\"LanguagePicker\">".NL.
getLanguagePicker($supportedLanguages).NL.
"</div>",
"#Filmmakers4Future",
"/".$lang."/legal/",
$footerText["LEGAL"],
"/".$lang."/privacy/",
$footerText["PRIVACY"],
"/".$lang."/contact/",
$footerText["CONTACT"],
"/".$lang."/posts/press_releases/",
$footerText["PRESSRELEASES"],
"/".$lang."/newsletter/",
$footerText["MANAGENEWSLETTER"],
"/".$lang."/verify/",
$footerText["VERIFYSIGNATURE"],
"https://www.instagram.com/filmmakers4future/",
$footerText["FM4FINSTAGRAM"],
"https://www.youtube.com/channel/UC-SNT4gGFgRiFb2iBccJDkw/",
$footerText["FM4FYOUTUBE"],
"https://twitter.com/Filmmakers4F",
$footerText["FM4FTWITTER"],
"https://facebook.com/filmmakersforfuture",
$footerText["FM4FFACEBOOK"]));
Themes::set(MENU, [[TITLE => $menuText["EVENTS"],
URI => "/".$lang."/events/"],
[TITLE => $menuText["DEMANDS"],
URI => "/".$lang."/demands/"],
[TITLE => $menuText["SIGNATURES"],
URI => "/".$lang."/signatures/"],
[TITLE => $menuText["GREENFILMMAKING"],
URI => "#",
MENU => [[TITLE => $menuText["RESOURCES"]],
[TITLE => $menuText["GETTINGSTARTED"],
URI => "/".$lang."/greenfilmmaking/"],
//[TITLE => $menuText["FRIENDS"],
// URI => "/".$lang."/posts/friends/"],
//[TITLE => $menuText["PODCAST"],
// URI => "/".$lang."/posts/podcast/"],
[TITLE => "divider"],
[TITLE => $menuText["TOOLS"]],
[TITLE => $menuText["MAP"],
URI => "/".$lang."/map/"],
[TITLE => $menuText["WIKI"],
URI => "https://knowledge.fm4f.org"]]],
[TITLE => $menuText["VIDEOS"],
URI => "/".$lang."/videos/"],
[TITLE => $menuText["PARTICIPATE"],
URI => "#",
MENU => [[TITLE => $menuText["GROUPS"]],
[TITLE => $menuText["ABOUTGROUPS"],
URI => "/".$lang."/groups/"],
[TITLE => $menuText["LOGIN"],
URI => "https://groups.fm4f.org/"],
[TITLE => "divider"],
[TITLE => $menuText["TOOLS"]],
[TITLE => $menuText["INVITE"],
URI => "/".$lang."/invite/"],
[TITLE => "divider"],
[TITLE => $menuText["MISCELLANEOUS"]],
[TITLE => $menuText["GRAPHICS"],
URI => "/".$lang."/graphics/"],
[TITLE => $menuText["CREWUNITED"],
URI => "/".$lang."/crew-united/"],
[TITLE => $menuText["WEBSITE"],
URI => "/".$lang."/website/"]]],
[TITLE => $menuText["SIGN"],
URI => "/".$lang."/#sign"]]);