feed: New dependencies, YAML config

This commit is contained in:
Marcel Kapfer (mmk2410) 2016-06-03 15:30:41 +02:00
parent 9fa47ecfd5
commit 6d1a7c7e09

View file

@ -36,14 +36,20 @@
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');
require "../../vendor/autoload.php"; require "../../vendor/autoload.php";
require_once "../../config.php"; require "../../res/php/Config.php";
require_once "../../res/php/ArticleGenerator.php"; require_once "../../res/php/ArticleGenerator.php";
use PicoFeed\Syndication\Atom; use PicoFeed\Syndication\AtomFeedBuilder;
use PicoFeed\Syndication\AtomItemBuilder;
use \mmk2410\rbe\config\Config as Config;
$config = new Config('../../config.yaml', '../../vendor/autoload.php');
$settings = $config->getConfig();
include '../ssl.php';
session_start(); session_start();
if ($_SESSION['login']) { if ($_SESSION['login']) {
$art_dir = "./../../articles/" . $_GET['blog'] . "/"; $art_dir = "./../../articles/" . $_GET['blog'] . "/";
$feed_path = "./../../feed/" . $_GET['blog'] . ".atom"; $feed_path = "./../../feed/" . $_GET['blog'] . ".atom";