cops/resources/epub-loader/app/config.php.example
2013-09-30 22:29:27 +01:00

47 lines
1.4 KiB
Plaintext

<?php
/**
* Epub loader application config
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Didier Corbière <didier.corbiere@opale-concept.com>
*/
$gConfig = array();
/**
* Cops directory
*
* This is the base path of Cops library
*/
$gConfig['cops_directory'] = dirname(dirname(dirname(__DIR__)));
/**
* 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
*/
$gConfig['databases'] = array();
$gConfig['databases'][] = array('name' => 'Littérature classique', 'db_path' => '/opt/ebooks/calibre/demo', 'epub_path' => '/opt/ebooks/epub/demo');
$gConfig['databases'][] = array('name' => 'Bibliothèque numérique romande', 'db_path' => '/opt/ebooks/calibre/bnr', 'epub_path' => '/opt/ebooks/epub/bnr');
$gConfig['databases'][] = array('name' => 'La Bibliothèque d\'Ebooks', 'db_path' => '/opt/ebooks/calibre/bibebook', 'epub_path' => '/opt/ebooks/epub/bibebook');
/**
* Available actions
*/
$gConfig['actions'] = array();
$gConfig['actions']['cvs_export'] = 'Cvs export';
$gConfig['actions']['db_load'] = 'Create database';
?>