-
Notifications
You must be signed in to change notification settings - Fork 147
/
bootstrap.php
42 lines (32 loc) · 888 Bytes
/
bootstrap.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
<?php
/**
* Composer autoloader.
*/
require 'vendor/autoload.php';
/*
* Options
*/
$options = [];
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
$timezone = $_ENV['TIMEZONE'];
date_default_timezone_set($timezone);
//Login
$options['password'] = $_ENV['PASSWORD'];
$options['email'] = $_ENV['EMAIL'];
//Paths
$options['local_path'] = $_ENV['LOCAL_PATH'];
$options['lessons_folder'] = $_ENV['LESSONS_FOLDER'];
$options['series_folder'] = $_ENV['SERIES_FOLDER'];
define('BASE_FOLDER', $options['local_path']);
define('LESSONS_FOLDER', $options['lessons_folder']);
define('SERIES_FOLDER', $options['series_folder']);
//laracasts
define('LARACASTS_BASE_URL', 'https://laracasts.com');
define('LARACASTS_POST_LOGIN_PATH', 'sessions');
define('LARACASTS_SERIES_PATH', 'series');
define('LARACASTS_TOPICS_PATH', 'browse/all');
/*
* Vars
*/
set_time_limit(0);