cops/resources/epub-loader/app/cops-feed.php
Marsender 35bbf55e19 Epub loader:
Add Cops feed loader
Typo: Change cvs_export to csv_export
Rename config.php file to epub-loader-config.php
Config: Add app_name, admin_email
2013-10-10 05:21:19 +01:00

28 lines
742 B
PHP

<?php
/**
* Epub loader application: COPS feed loader
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Didier Corbière <didier.corbiere@opale-concept.com>
*/
// Include config file
$fileName = __DIR__ . DIRECTORY_SEPARATOR . 'epub-loader-config.php';
if (!file_exists($fileName)) {
die ('Missing configuration file: ' . $fileName);
}
require_once($fileName);
// Add cops directory to include path
$includePath = ini_get('include_path');
ini_set('include_path', $includePath . PATH_SEPARATOR . $gConfig['cops_directory']);
// Include COPS feed
$fileName = $gConfig['cops_directory'] . '/feed.php';
if (!file_exists($fileName)) {
die ('Incorrect include file: ' . $fileName);
}
require_once($fileName);
?>