35bbf55e19
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
28 lines
742 B
PHP
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);
|
|
|
|
?>
|