View Single Post
Old 05-22-2017, 07:40 AM   #1544
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 726
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Herewith an abbreviated example on how it should work (in this case not using .htaccess authentication):

A - config_local.php (all libraries and COPS user)
Code:
<?php
    if (!isset($config))
        $config = array();

    $config['calibre_directory'] = array (
    "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
    "02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/",
    "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/",
    "04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/");
    
    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "COPS 1.1.1";
    
    $config['cops_use_url_rewriting'] = "0";

    $config['default_timezone'] = "America/Phoenix";

    $config['cops_basic_authentication'] = array('username' => 'cops', 'password' => 'secretpw');
B - config_local.monty.php (all libraries and user MONTY)
Code:
<?php

    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "MONTY COPS";
    
    $config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypwd');
C - config_local.user2.php (limited access to libraries and user USER2)
Code:
<?php
    if (!isset($config))
        $config = array();

    $config['calibre_directory'] = array (
    "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
    "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/");
    
    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "USER2 COPS";

    $config['cops_basic_authentication'] = array('username' => 'user2', 'password' => 'user2pwd');
PS: I'm in Europe (Netherlands) and you are in Arizona. Some time delay in answering your posts is inevitable.
mariosipad is offline   Reply With Quote