Some comments and config changes

This commit is contained in:
Marsender 2013-09-30 22:29:27 +01:00
vanhempi 6964445c8f
commit 89a27f10b8
5 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa

Näytä tiedosto

@ -1,6 +1,6 @@
<?php
/**
* Epub loader action: export ebooks info in a csv files
* Epub loader application action: export ebooks info in a csv files
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Didier Corbière <didier.corbiere@opale-concept.com>

Näytä tiedosto

@ -1,6 +1,6 @@
<?php
/**
* Epub loader action: load ebooks into calibre databases
* Epub loader application action: load ebooks into calibre databases
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Didier Corbière <didier.corbiere@opale-concept.com>

Näytä tiedosto

@ -1,6 +1,6 @@
<?php
/**
* Epub loader config
* Epub loader application config
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Didier Corbière <didier.corbiere@opale-concept.com>
@ -32,10 +32,9 @@ $gConfig['create_db'] = true;
* 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/atoll/opds/demo', 'epub_path' => '/opt/atoll/external/demo');
$gConfig['databases'][] = array('name' => 'Bibliothèque numérique romande', 'db_path' => '/opt/atoll/opds/bnr', 'epub_path' => '/opt/atoll/external/bnr');
$gConfig['databases'][] = array('name' => 'La Bibliothèque d\'Ebooks', 'db_path' => '/opt/atoll/opds/bibebook', 'epub_path' => '/opt/atoll/external/bibebook');
$gConfig['databases'][] = array('name' => 'La Bibliothèque électronique du Québec', 'db_path' => '/opt/atoll/opds/beq', 'epub_path' => '/opt/atoll/external/beq');
$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
@ -43,3 +42,5 @@ $gConfig['databases'][] = array('name' => 'La Bibliothèque électronique du Qu
$gConfig['actions'] = array();
$gConfig['actions']['cvs_export'] = 'Cvs export';
$gConfig['actions']['db_load'] = 'Create database';
?>

Näytä tiedosto

@ -1,5 +1,4 @@
<?php
// Spécifie l'encodage
header('Content-type: text/html; charset=utf-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

Näytä tiedosto

@ -37,14 +37,14 @@ if (!is_dir($gConfig['cops_directory'])) {
// Include Calibre database loader class
$fileName = $gConfig['cops_directory'] . '/resources/epub-loader/CalibreDbLoader.class.php';
if (!file_exists($fileName)) {
die ('Incorrect include file: ' . $gConfig['cops_directory']);
die ('Incorrect include file: ' . $fileName);
}
require_once($fileName);
// Include book export class
$fileName = $gConfig['cops_directory'] . '/resources/epub-loader/BookExport.class.php';
if (!file_exists($fileName)) {
die ('Incorrect include file: ' . $gConfig['cops_directory']);
die ('Incorrect include file: ' . $fileName);
}
require_once($fileName);