cops/config_default.php

200 lines
6.4 KiB
PHP
Raw Normal View History

2012-05-28 08:01:33 +03:00
<?php
/**
* COPS (Calibre OPDS PHP Server) class file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author S<EFBFBD>bastien Lucas <sebastien@slucas.fr>
*/
2012-05-28 08:06:12 +03:00
if (!isset($config))
$config = array();
2012-05-28 08:01:33 +03:00
/*
* The directory containing calibre's metadata.db file, with sub-directories
* containing all the formats.
2012-05-28 08:06:12 +03:00
* BEWARE : it has to end with a /
* You can enable multiple database with this notation instead of a simple string :
* $config['calibre_directory'] = array ("My database name" => "/home/directory/calibre1/", "My other database name" => "/home/directory/calibre2/");
2012-05-28 08:01:33 +03:00
*/
$config['calibre_directory'] = './';
/*
* SPECIFIC TO NGINX
2012-05-28 08:01:33 +03:00
* The internal directory set in nginx config file
* Leave empty if you don't know what you're doing
2012-05-28 08:01:33 +03:00
*/
$config['calibre_internal_directory'] = '';
2012-05-28 08:01:33 +03:00
/*
2012-05-28 08:06:12 +03:00
* Full URL prefix (with trailing /)
* usefull especially for Opensearch where a full URL is sometimes required
* For example Mantano requires it.
*/
$config['cops_full_url'] = '';
/*
* Number of recent books to show
2012-05-28 08:01:33 +03:00
*/
$config['cops_recentbooks_limit'] = '50';
/*
2012-10-12 16:44:05 +03:00
* Catalog's title
2012-05-28 08:01:33 +03:00
*/
2013-01-20 15:35:23 +02:00
$config['cops_title_default'] = "COPS";
2012-05-28 08:01:33 +03:00
/*
* Catalog's subtitle
*/
$config['cops_subtitle_default'] = "";
2012-05-28 08:05:05 +03:00
/*
* Wich header to use when downloading books outside the web directory
* Possible values are :
* X-Accel-Redirect : For Nginx
* X-Sendfile : For Lightttpd or Apache (with mod_xsendfile)
* No value (default) : Let PHP handle the download
2012-05-28 08:05:05 +03:00
*/
$config['cops_x_accel_redirect'] = "";
2012-05-28 08:07:49 +03:00
/*
* Height of thumbnail image for OPDS
*/
$config['cops_opds_thumbnail_height'] = "70";
2012-05-28 08:07:49 +03:00
/*
* Height of thumbnail image for HTML
*/
$config['cops_html_thumbnail_height'] = "164";
/*
* Icon for both OPDS and HTML catalog
* Note that this has to be a real icon (.ico)
*/
$config['cops_icon'] = "favicon.ico";
2012-05-28 08:07:49 +03:00
/*
* Show icon for authors, series, tags and books on OPDS feed
* 1 : enable
* 0 : disable
*/
$config['cops_show_icons'] = "1";
/*
* Default timezone
* Check following link for other timezones :
* http://www.php.net/manual/en/timezones.php
*/
$config['default_timezone'] = "Europe/Paris";
/*
* Prefered format for HTML catalog
* The two first will be displayed in book entries
* The other only appear in book detail
*/
$config['cops_prefered_format'] = array ("EPUB", "PDF", "AZW3", "AZW", "MOBI", "CBR", "CBZ");
/*
* use URL rewriting for downloading of ebook in HTML catalog
2013-03-23 10:43:15 +02:00
* See Github wiki for more information
* 1 : enable
* 0 : disable
*/
$config['cops_use_url_rewriting'] = "0";
/*
* generate a invalid OPDS stream to allow bad OPDS client to use search
* Example of non compliant OPDS client : FBReader (was working in May 2012), Moon+ Reader
* Example of good OPDS client : Mantano
* 1 : enable support for non compliant OPDS client
* 0 : always generate valid OPDS code
*/
$config['cops_generate_invalid_opds_stream'] = "0";
/*
* Max number of items per page
* -1 unlimited
*/
$config['cops_max_item_per_page'] = "-1";
/*
* split authors by first letter
* 1 : Yes
* 0 : No
*/
$config['cops_author_split_first_letter'] = "1";
/*
2013-07-24 15:36:32 +03:00
* Enable the Lightboxes (for popups)
* 1 : Yes (enable)
* 0 : No
*/
$config['cops_use_fancyapps'] = "1";
/*
* Update Epub metadata before download
* 1 : Yes (enable)
* 0 : No
*/
$config['cops_update_epub-metadata'] = "0";
/*
* Filter on tags to book list
* Only works with the OPDS catalog
2013-01-25 22:12:05 +02:00
* Usage : array ("I only want to see books using the tag : Tag1" => "Tag1",
* "I only want to see books not using the tag : Tag1" => "!Tag1",
2013-01-27 08:52:56 +02:00
* "I want to see every books" => "",
*
* Example : array ("All" => "", "Unread" => "!Read", "Read" => "Read")
*/
2013-01-27 08:52:56 +02:00
$config['cops_books_filter'] = array ();
/*
* Custom Columns to add as an array containing the lookup names
* configured in Calibre
*
* For example : array ("genre", "mycolumn");
*
* Note that for now only the first, second and forth type of custom columns are supported
*/
2013-01-27 08:52:56 +02:00
$config['cops_calibre_custom_column'] = array ();
2013-02-05 22:08:28 +02:00
/*
* Rename .epub to .kepub.epub if downloaded from a Kobo eReader
* The ebook will then be recognized a Kepub so with chaptered paging, statistics, ...
* You have to enable URL rewriting if you want to enable kepup.epub download
2013-02-05 22:15:04 +02:00
* 1 : Yes (enable)
* 0 : No
2013-02-05 22:08:28 +02:00
*/
2013-02-05 22:15:04 +02:00
$config['cops_provide_kepub'] = "0";
/*
* Enable and configure Send To Kindle (or Email) feature.
*
* Don't forget to authorize the sender email you configured in your Kindle's Approved Personal Document E-mail List.
*
* If you want to use a simple smtp server (provided by your ISP for example), you can configure it like that :
* $config['cops_mail_configuration'] = array( "smtp.host" => "smtp.free.fr",
* "smtp.username" => "",
* "smtp.password" => "",
* "smtp.secure" => "",
* "address.from" => "cops@slucas.fr"
* );
*
2013-07-24 15:36:32 +03:00
* For Gmail (ssl is mandatory) :
* $config['cops_mail_configuration'] = array( "smtp.host" => "smtp.gmail.com",
* "smtp.username" => "YOUR GMAIL ADRESS",
* "smtp.password" => "YOUR GMAIL PASSWORD",
* "smtp.secure" => "ssl",
* "address.from" => "cops@slucas.fr"
* );
*/
$config['cops_mail_configuration'] = NULL;
/*
* Use filter in HTML catalog
* 1 : Yes (enable)
* 0 : No
*/
2013-07-04 00:37:18 +03:00
$config['cops_html_tag_filter'] = "0";