- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathload.php
More file actions
Latest commit
20 lines (15 loc) · 392 Bytes
/
Copy pathload.php
File metadata and controls
20 lines (15 loc) · 392 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
useApp\{App, Autoloader};
useUtil\ContentLoader;
useUtil\DotEnv;
require_once'App/Autoloader.php';
require_once'Util/functions.php';
Autoloader::register();
(newDotEnv(__DIR__ . '/.env'))->load();
$year = getVal('year');
$day = getVal('day');
if (is_null($year) || is_null($day)) {
exit;
}
$contentLoader = newContentLoader();
echo$contentLoader->loadTask($year, $day);