1) Исправления в связи со сменой API MySQL
[openlib.git] / www / config_local.php
diff --git a/www/config_local.php b/www/config_local.php
new file mode 100644 (file)
index 0000000..642ceca
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+    if (!isset($config))
+        $config = array();
+  
+    /*
+     * The directory containing calibre's metadata.db file, with sub-directories
+     * containing all the formats.
+     * BEWARE : it has to end with a /
+     */
+    $config['file_directory'] = '/raid/library/Books/';
+    $config['db_host'] = 'localhost';
+    $config['db_user'] = 'mydbuser';
+    $config['db_passwd'] = 'mydbpasswd';
+    
+    /*
+     * Catalog's title
+     */
+    $config['cops_title_default'] = "Книжная коллекция";
+    
+    /*
+     * use URL rewriting for downloading of ebook in HTML catalog
+     * See README for more information
+     *  1 : enable
+     *  0 : disable
+     */
+    $config['cops_use_url_rewriting'] = "0";
+    $config['cops_max_item_per_page'] = "25";
+    $config['cops_generate_invalid_opds_stream'] = "1";
+
+?>