📄 conf.php
字号:
<?php
$config['prefix'] = '';$config['dbtype'] = 'postgres';$config['dbhost'] = 'localhost';$config['dbuname'] = 'postgres';$config['dbpass'] = 'postgres';$config['dbname'] = 'phppglibrary';/** Default is 'en' (English), demo language: ta (Philippine Language)* Other language available 'de' for German Language. 60% complete.* Translated by Ulrich Tideau of Germany.*/$config['lang'] = 'en'; /*
* PhpMyLibrary Software Copyleft 2002 Polerio Babao III
* http://phpmylibrary.sourceforge.net polerio@users.sourceforge.net
* 43 A Bagong Lote, Potrero Malabon, Metro Manila Philippines
* Thank you for using this software.
*/
/*
* The Configuration parameters can be found below.
* First, I wanted to make a favor, please do make a
* a backup of this file conf.php before modifying it.
* Perhaps copy it in file called con123.php, conbak12.php etc. . .
* Do not copy this with an extension of .txt, as this would allow
* me and other curious surfer to view your configuration files.
* Just in case you want this to be private.
* Start modification!. Enjoy.
*/
/*
* I also want to ask again some favor. If you would see the detailed view of
* you bibliographic search, you would find there some undefined description
* This means that the specific tag number of that MARC field doesn't have
* yet some description. My favor is if you could complete the
* descriptions please send me a copy so that everything in MARC descriptions
* are defined. The MARC description is located at
* PhpMyLibrary/polerio/module/lib/marcdefs.php
* It's a tags and values. Undefined occurs because its tags is not yet
* defined in MARC Definition file. marcdefs.php
* Thanks.
*/
/* !!!!!!!!! N O T E !!!!!!!!!
*
* If things doesn't go the way you want
* use the PhpMyadmin for now to empty all tables data. The tables starts with underscore sign
* Do not empty the data of your _users. As this would not allow
* you to login to the phpmylibrary admin page. If in case, just in case
* you still delete it, or you deleted it, or emptied it, just import
* again your sql data from your PhpMyLibrary/polerio/sql directory.
* phpmyadmin can be downloaded at http://phpmyadmin.sourceforge.net
*
* To use your own theme, just copy-paste it in your PhpMyLibrary/themes/ directory
* Then in this configutation file specify its name and type whether it be PostNuke
* theme or PhpNuke theme. The configuration for themes are on the very bottom of this
* configuration file.
*
* [Postnuke users]
*
* Do make a copy of your postnuke user account to _users table. Be sure that the their id
* is similar. As an example, the sql has a default admin user. which is admin/admin
* admin is the username and admin is the password. Change it if you want.
*/
/*
* The following are the configuration proper
*/
/*
* Specify here the length of terms the user can search.
* i.e Of course you don't want the user search for a letter 'a', 'and', or 'the', etc.
* If this you don't want it then set it to four, all terms will be strictly
* 4 characters and above. Change this according to your need.
*
*/
$pmlconfig['keyword_length'] = '0';
/*
* $pmlconfig['PnThOver']
* Set this to 1 to override php/post nuke themes color settings.
* Set 0 to allow post-nuke theme color settings.
* PnThOver means Post Nuke Theme Settings Override.
* If you want to know what is this all about try changing its value
* and look the appearance of your site.
*
* $pmlconfig['note_lkeywords']
* 1 to activate a Note to the public user. 0 to deactivate
* This is the note: Type %%% to browse all records!
*/
$pmlconfig['PnThOver'] = '0';
$pmlconfig['note_lkeywords'] = '1';
/*
* Non-postnuke user default background.
*
* $pmlconfig[bgcolor1]
* This is the right/middle/content panel bg. The right/middle/content.
*
* $pmlconfig[bgcolor2]
* Non-postnuke user default background.
* This is the main panel bg. The top.
*
* $pmlconfig[bgcolor3]
* Non-postnuke user default panel background.
* This is the footer/header panel bg. The footer/header.
*
* $pmlconfig['mouseover']
* For Post-nuke and Non-postnuke user default mouse over background.
* You can see this in the result of your search term.
*/
$pmlconfig[bgcolor1] = '#ffffff';
$pmlconfig[bgcolor2] = '#ccccff';
$pmlconfig[bgcolor3] = '#d4e2ed';
$pmlconfig['mouseover'] = '#ccffff';
/*
* The following are library specific configuration.
* Make a copy of this file for your backup. If anything
* goes wrong restore your backup copy.
*/
/*
*
* Medium Status Definition
* Actually this is the transaction status.
* Due to late thinking I have used book_status instead
* of transaction_status. Anyway, I hope I could
* revise this in the next version.
* Be noted that this is just a transaction status.
* If you reserved a material this means that it's subject
* to approval of the librarian. or any other instances.
* This status where taken from your transaction table.
*/
$book_status[0] = 'For Approval';
$book_status[1] = 'Available';
$book_status[2] = 'On Loan';
$book_status[3] = 'Overdue';
$book_status[4] = 'Photocopy';
$book_status[5] = 'For Return';
$book_status[6] = 'For Renewal';
/*
*
* Medium Type Definition
* Knowing that books or any material doesn't have
* similar value, if it's a reserved book, for room use
* only book, circulation book, etc. I made some division
* of it. Thus you can separate the Circulation Book from
* Reseverd Book etc. Hope you get the values of this
* definition. This values is taken from your transaction table.
* If you want to know this its in the column type.
*/
$book_type[1] = 'Circulation';
$book_type[2] = 'Reserve';
$book_type[3] = 'Photocopy';
$book_type[4] = 'Room Use';
/*
* User Type and Id and Max Borrowing privilege Definition
*
* And what's this all about?
* This is where you can set your client type.
* Whether it be Researcher, Undergrad, etc.
* Not only that you can also set here his/her
* borrowing privileges and abbreviation here.
* Ex.
* $user_type[1][0] = 'RC'; -> Of course the abbreviation of Researcher.
* $user_type[1][1] = '0'; -> [1][1] means [user][book_type] thus user=1 and
* book_type=1, see book_type above, equals to '0' privilege. Meaning he/she
* cannot borrow any circulation book.
* $user_type[1][2] = '0'; -> Think this.
* $user_type[1][3] = '0'; -> Again. 0 privilege from user 1 see below it's the researcher.
* $user_type[1][4] = '5'; -> means user one and book type Room Use, this researcher can use
* 5 pieces of Room Use material i.e book, maps, etc.
* $user_type[1][5] = 'Reseacher'; -> Of course the name of this user tpye 1.
* Hope you get the idea.
*/
$user_type[1][0] = 'RC';
$user_type[1][1] = '0'; // this is number of days, not no of books
$user_type[1][2] = '0'; // this is number of days, not no of books
$user_type[1][3] = '0'; // this is number of days, not no of books
$user_type[1][4] = '5'; // this is number of days, not no of books
$user_type[1][5] = 'Reseacher';
$user_type[2][0] = 'UG';
$user_type[2][1] = '10';
$user_type[2][2] = '2';
$user_type[2][3] = '5';
$user_type[2][4] = '5';
$user_type[2][5] = 'Undergraduate Student';
$user_type[3][0] = 'MS';
$user_type[3][1] = '20';
$user_type[3][2] = '2';
$user_type[3][3] = '5';
$user_type[3][4] = '5';
$user_type[3][5] = 'Masters Student';
$user_type[4][0] = 'PhD';
$user_type[4][1] = '30';
$user_type[4][2] = '2';
$user_type[4][3] = '5';
$user_type[4][4] = '5';
$user_type[4][5] = 'Doctoral Student';
$user_type[5][0] = 'FC';
$user_type[5][1] = '40';
$user_type[5][2] = '2';
$user_type[5][3] = '5';
$user_type[5][4] = '5';
$user_type[5][5] = 'Faculty';
$user_type[6][0] = 'ADM';
$user_type[6][1] = '40';
$user_type[6][2] = '2';
$user_type[6][3] = '5';
$user_type[6][4] = '5';
$user_type[6][5] = 'Administration & Staff';
/* User Status Enrolled, Dropped etc. and its Integer Value
* This is simly the status of your user. Of course if its dropped, you
* would not approved probably his/her book reservation.
*
* !!!!!!!!!!!!! Be Noted that this is only what I've included, you can
* specify your own name and values here, provided that you know the pattern.
* You can make a status of Delinquent,.. etc. !!!!!!!!!!!!!!!
*
*/
$user_status[1] = 'Enrolled';
$user_status[2] = 'LOA';
$user_status[3] = 'AWOL';
/*
* Cut-off type for Approving already reserved books in hours.
* Perhaps you now think that this configuration is very long.
* Be patient. Free Software made features one step at a time.
*
* Here Cut-off, time, this is your span of time do approve
* the transaction with For Approval Status. This is in hours
* Thus when I reserved some book in your library, you'll only
* have 5 hours to approve it. If it's not approve then it will be available
* again for reservation. I hope If I'm gonna borrow some book in your library
* I hope you would always approve my enquiry. Just thinking!.
*
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -