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
This commit is contained in:
parent
fce60d4079
commit
35bbf55e19
7 changed files with 56 additions and 26 deletions
27
resources/epub-loader/app/cops-feed.php
Normal file
27
resources/epub-loader/app/cops-feed.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?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);
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue