Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...) http://blog.slucas.fr/en/oss/calibre-opds-php-server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
861B

  1. <?php
  2. /**
  3. * COPS (Calibre OPDS PHP Server) class file
  4. *
  5. * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
  6. * @author Sébastien Lucas <sebastien@slucas.fr>
  7. */
  8. $config = array();
  9. /*
  10. * The directory containing calibre's metadata.db file, with sub-directories
  11. * containing all the formats.
  12. * If this directory starts with a / EPUB download will only work with Nginx
  13. * and if the calibre_internal_directory is set
  14. */
  15. $config['calibre_directory'] = './';
  16. /*
  17. * The internal directory set in nginx config file
  18. */
  19. $config['calibre_internal_directory'] = '/Calibre/';
  20. /*
  21. * Number of books
  22. */
  23. $config['cops_recentbooks_limit'] = '50';
  24. /*
  25. * The internal directory set in nginx config file
  26. */
  27. $config['cops_title_default'] = "Sebastien's COPS";
  28. ?>