cecbcb9306219c107ef447ceda3ba6be23fe0ecf
[stapibas.git] / bin / stapibas
1 #!/usr/bin/env php
2 <?php
3 namespace stapibas;
4 require_once __DIR__ . '/../data/config.php';
5 require_once 'stapibas/autoloader.php';
6
7 $db = new PDO($dbdsn, $dbuser, $dbpass);
8 $log = new Logger();
9
10 $uf = new Feed_UpdateFeeds();
11 $uf->db = $db;
12 $uf->log = $log;
13 $uf->updateAll();
14
15 $uf = new Feed_UpdateEntries();
16 $uf->db = $db;
17 $uf->log = $log;
18 $uf->updateAll();
19
20 $uf = new Feed_PingUrls();
21 $uf->db = $db;
22 $uf->log = $log;
23 $uf->pingAll();
24
25 ?>