2013-09-25 05:39:18 +03:00
|
|
|
<?php
|
|
|
|
/**
|
2013-10-01 00:29:27 +03:00
|
|
|
* Epub loader application config
|
2013-09-25 05:39:18 +03:00
|
|
|
*
|
|
|
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
|
|
|
* @author Didier Corbière <didier.corbiere@opale-concept.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
$gConfig = array();
|
|
|
|
|
2013-10-10 07:21:19 +03:00
|
|
|
/**
|
|
|
|
* Application name
|
|
|
|
*/
|
|
|
|
$gConfig['app_name'] = 'Epub loader';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Admin email
|
|
|
|
*/
|
|
|
|
$gConfig['admin_email'] = 'didier.corbiere@opale-concept.com';
|
|
|
|
|
2013-09-25 05:39:18 +03:00
|
|
|
/**
|
|
|
|
* Cops directory
|
|
|
|
*
|
|
|
|
* This is the base path of Cops library
|
|
|
|
*/
|
|
|
|
$gConfig['cops_directory'] = dirname(dirname(dirname(__DIR__)));
|
2013-10-10 07:21:19 +03:00
|
|
|
if (!is_dir($gConfig['cops_directory'])) {
|
|
|
|
die ('Incorrect Cops directory: ' . $gConfig['cops_directory']);
|
|
|
|
}
|
2013-09-25 05:39:18 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create Calibre databases ?
|
|
|
|
*
|
|
|
|
* If true: databases are removed and recreated before loading ebooks
|
|
|
|
* If false: append ebooks into databases
|
|
|
|
*/
|
|
|
|
$gConfig['create_db'] = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Databases infos
|
|
|
|
*
|
|
|
|
* For each database:
|
|
|
|
* name: The database name to display
|
|
|
|
* db_path: The path where to create the database
|
|
|
|
* epub_path: The path where to look for the epub files to load
|
2013-10-10 07:21:19 +03:00
|
|
|
* pdf_path: The path where to look for pdf files
|
2013-09-25 05:39:18 +03:00
|
|
|
*/
|
|
|
|
$gConfig['databases'] = array();
|
2013-10-10 07:21:19 +03:00
|
|
|
$gConfig['databases'][] = array('name' => 'Littérature classique', 'db_path' => '/opt/ebooks/calibre/demo', 'epub_path' => '/opt/ebooks/epub/demo', 'pdf_path' => '');
|
|
|
|
$gConfig['databases'][] = array('name' => 'Bibliothèque numérique romande', 'db_path' => '/opt/ebooks/calibre/bnr', 'epub_path' => '/opt/ebooks/epub/bnr', 'pdf_path' => '');
|
|
|
|
$gConfig['databases'][] = array('name' => 'La Bibliothèque d\'Ebooks', 'db_path' => '/opt/ebooks/calibre/bibebook', 'epub_path' => '/opt/ebooks/epub/bibebook', 'pdf_path' => '');
|
2013-09-25 05:39:18 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Available actions
|
|
|
|
*/
|
|
|
|
$gConfig['actions'] = array();
|
2013-10-10 07:21:19 +03:00
|
|
|
$gConfig['actions']['csv_export'] = 'Csv export';
|
2013-09-25 09:28:20 +03:00
|
|
|
$gConfig['actions']['db_load'] = 'Create database';
|
2013-10-01 00:29:27 +03:00
|
|
|
|
|
|
|
?>
|