-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.php
43 lines (35 loc) · 1.17 KB
/
run.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
<?php
require __DIR__.'/vendor/autoload.php';
if (!defined('REAL_DIR')) {
define('REAL_DIR', __DIR__);
}
if (!is_file(REAL_DIR.'/Config.php')) {
copy(__DIR__.'/Config.dist.php', REAL_DIR.'/Config.php');
print("New Config.php file was generated for you\n");
print("Fill in all data required and restart application\n");
die();
}
require REAL_DIR.'/Config.php';
$photoDownloader = new PhotoDownloaderEzShare(Config::$ezHost
, Config::$ezDir
, Config::$photoPath
);
$filenameManager = new FilenameManager();
$poster = new PosterTumblr(Config::$blogName
, Config::$consumerKey
, Config::$consumerSecret
, Config::$token
, Config::$tokenSecret
);
$photoDownloader->run('photoProcessor');
function photoProcessor($file) {