-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAdditional folders.php
38 lines (29 loc) · 1.13 KB
/
Additional folders.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
<?php
# Additional folders.php
# Additional year folders
foreach (range(2018, date("Y")) as $year) {
# Language Year folders
foreach ($Language -> languages["small"] as $local_language) {
$full_language = $Language -> languages["full"][$local_language];
if ($local_language == "general") {
$local_language = "en";
$full_language = $Language -> languages["full"][$local_language];
}
$folders["Mega"]["Notepad"]["Years"][$year][$local_language] = [
"root" => $folders["Mega"]["Notepad"]["Years"][$year]["root"].$full_language."/"
];
# "Done tasks" folder
$folder_name = $website["Texts"]["done_tasks"][$local_language];
$key = "done_tasks";
$folders["Mega"]["Notepad"]["Years"][$year][$local_language][$key] = [
"root" => $folders["Mega"]["Notepad"]["Years"][$year][$local_language]["root"].$folder_name."/"
];
# "Watched media" folder
$folder_name = $website["Texts"]["watched_media"][$local_language];
$key = "watched_media";
$folders["Mega"]["Notepad"]["Years"][$year][$local_language][$key] = [
"root" => $folders["Mega"]["Notepad"]["Years"][$year][$local_language]["root"].$folder_name."/"
];
}
}
?>