forked from amwhalen/archive-my-tweets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
includes.php
40 lines (37 loc) · 1.07 KB
/
includes.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
<?php
require_once 'amt/router.php';
require_once 'amt/model.php';
require_once 'amt/view.php';
require_once 'amt/paginator.php';
require_once 'amt/controller.php';
require_once 'amt/importer.php';
require_once 'amt/archiver.php';
require_once 'amt/app.php';
require_once 'amt/tweet.php';
require_once 'vendor/tijsverkoyen/TwitterOAuth/Twitter.php';
require_once 'vendor/tijsverkoyen/TwitterOAuth/Exception.php';
if (file_exists(dirname(__FILE__).'/config.php')) {
require_once 'config.php';
// round up the config into a nice array
$config = array(
'twitter' => array(
'username' => TWITTER_USERNAME,
'name' => TWITTER_NAME
),
'auth' => array(
'consumerKey' => TWITTER_CONSUMER_KEY,
'consumerSecret' => TWITTER_CONSUMER_SECRET,
'oauthToken' => TWITTER_OAUTH_TOKEN,
'oauthSecret' => TWITTER_OAUTH_SECRET
),
'db' => array(
'host' => DB_HOST,
'username' => DB_USERNAME,
'password' => DB_PASSWORD,
'database' => DB_NAME,
'prefix' => DB_TABLE_PREFIX
),
'baseUrl' => BASE_URL,
'cronSecret' => TWITTER_CRON_SECRET
);
}