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
|
@ -6,34 +6,17 @@
|
|||
* @author Didier Corbière <didier.corbiere@opale-concept.com>
|
||||
*/
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Global defines
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// Application version
|
||||
define('DEF_AppVersion', '1.0');
|
||||
// Application name
|
||||
define('DEF_AppName', 'epub loader');
|
||||
// Admin email
|
||||
define('DEF_AppAdminMail', 'didier.corbiere@opale-concept.com');
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Include files
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// Include config file
|
||||
$fileName = __DIR__ . DIRECTORY_SEPARATOR . 'config.php';
|
||||
$fileName = __DIR__ . DIRECTORY_SEPARATOR . 'epub-loader-config.php';
|
||||
if (!file_exists($fileName)) {
|
||||
die ('Missing configuration file: ' . $fileName);
|
||||
}
|
||||
require_once($fileName);
|
||||
|
||||
// Check Cops directory
|
||||
if (!is_dir($gConfig['cops_directory'])) {
|
||||
die ('Incorrect Cops directory: ' . $gConfig['cops_directory']);
|
||||
}
|
||||
|
||||
// Include Calibre database loader class
|
||||
$fileName = $gConfig['cops_directory'] . '/resources/epub-loader/CalibreDbLoader.class.php';
|
||||
if (!file_exists($fileName)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue