basic OPDS (and HTML) catalog provider for eBooks
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.
 
 
 
 
 
 

29 lines
1.4 KiB

  1. #!/usr/bin/php
  2. <?php
  3. #############################################################################
  4. # miniCalOPe (c) 2010-2015 by Itzchak Rehberg #
  5. # written by Itzchak Rehberg <izzysoft AT qumran DOT org> #
  6. # http://www.izzysoft.de/ #
  7. # ------------------------------------------------------------------------- #
  8. # This program is free software; you can redistribute and/or modify it #
  9. # under the terms of the GNU General Public License (see doc/LICENSE) #
  10. # ------------------------------------------------------------------------- #
  11. # Scan for covers and create symlinks #
  12. #############################################################################
  13. # $Id$
  14. $use_lang = 'cal';
  15. require_once('./lib/class.logging.php'); // must come first as it also defines some CONST
  16. require_once('./config.php');
  17. require_once('./lib/common.php');
  18. require_once('./lib/class.filefuncs.php');
  19. $filefuncs = new filefuncs($logger,$use_markdown,$bookformats,$bookdesc_ext,$bookmeta_ext,$check_xml,$skip_broken_xml);
  20. require_once('./lib/db_sqlite3.php');
  21. require_once('./lib/class.db.php');
  22. $coverdir = $cover_base.DIRECTORY_SEPARATOR.$use_lang;
  23. if ( !is_dir($cover_base) ) mkdir($cover_base);
  24. if ( !is_dir($coverdir) ) mkdir($coverdir);
  25. $filefuncs->prepareCalibreCovers($coverdir,$bookroot,$cover_mode,$dbfile);
  26. ?>