Location: PHPKode > projects > ACSoc Comics Library Management System > odin-0.589/config.inc.php
<?php

///////////////////////////////////////////////////
// odin common module
	$version = "Odin Version 0.589";
	$require_db_version = "0.58";


// configuration
//////////////////////////////////session 1: user configurable
// Except DB parameters, we will progressively migrate all configurations
// into database
//////////////////////////////////
	
	$sql_user = "odin";
	$sql_pass = "";
	$sql_database = "odin";
	
	$cook_domain = $_SERVER['HTTP_HOST'];
	$cook_path = "/";
	
	// below only necessary if you plan to (you can) use secure authentication
//	$https = "https://www.cuhkacs.org/~odin/";
	$http = "http://odin.cuhkacs.org/";
	/////////////////////
	
	$lang_provide[] = "zhtw";
	$lang_provide[] = "en";
	
	$view_provide[] = "yabb";
	$view_provide[] = "odinab";

	$keyword_search_fields[] = "title";
	$keyword_search_fields[] = "titlealt";
	$keyword_search_fields[] = "author";
	$keyword_search_fields[] = "authoralt";
	
	$content_search_fields[] = "title";
	$content_search_fields[] = "titlealt";
	$content_search_fields[] = "author";
	$content_search_fields[] = "authoralt";
	$content_search_fields[] = "odin_series.subtitle";
	$content_search_fields[] = "odin_series.abstract";
	$content_search_fields[] = "odin_item.subtitle";
	$content_search_fields[] = "odin_item.abstract";
	$content_search_fields[] = "odin_item.toc";
	$content_search_fields[] = "toc";
	
	///////////////////////////////
	// log_op control how the log can be filtered
	// log types are defined in the code and not changable by user
	// refer to create.sql for all log types
	//
  	//"CheckOut", "Return", "Renew", "Hold", "CancelHold", 
  	//"AddUser", "EditUser", "DelUser", "UploadMemList",
  	//"EditStaffClass", "EditMemberPrivilege",
  	//"AddSeries", "EditSeries", "DelSeries",
  	//"AddVolume", "EditVolume", "DelVolume", "UploadBooklist",
  	//"Set"
  	//
  	// if log_op value is a array, the key is an alias to the array of types
  	// if log_op value is a scalar, the key is the type name
	$log_op['Circulation'] = array("CheckOut", "Return", "Renew", "Hold", "CancelHold");
	$log_op['CheckOut'] = 1;
	$log_op['Return'] = 1;
	$log_op['Renew'] = 1;
	$log_op['Hold'] = 1;
	$log_op['CancelHold'] = 1;
	$log_op['ManageBook'] = array("AddSeries", "EditSeries", "DelSeries", "AddVolume", "EditVolume", "DeleteVolume");
	$log_op['ManageUser'] = array("AddUser", "EditUser", "DelUser");
	$log_op['Other'] = array("UploadBookList", "UploadMemList", "EditStaffClass", "EditMemberPrivilege");
	$log_op['Set'] = 1;
	
	///////////// charset provided to browser.
	///////////// set it depends on your database data and view code
	//$charset = "big5";
	$charset = "UTF-8";		

//////////////////////////////////session 2: program feature
//  this section is intended for program structure definition
//  and is normally not changed by user
//  CHANGE AT YOUR OWN RISK!!
//////////////////////////////////

	/////////////////////// script file name
	$script_index = "index.php";
	$script_admin_index = "adminindex.php";
	$script_circu = "circu.php";
	$script_inven = "inven.php";
	$script_staff = "staff.php";
	$script_upload = "upload.php";
	$script_upload_member = "uploadmem.php";
	$script_user = "user.php";
	$script_publs = "publs.php";
	$script_trans = "trans.php";
	$script_passwd = "passwd.php";
	$script_feedback = "feedback.php";
	$script_cms = "cms.php";
	$script_customize = "customize.php";
	$script_thumbnail = "thumbnail.php";
	
	define('IMAGE_DIR', 'image/');
	define('DUMP_DIR', 'dbdump/');

	///////////////////////////
	// user can add and item status as they like, and assign display names for each
	// these are the reserved status that must be present (can't delete by user)
	$reserve_status[] = "OnShelf";
	$reserve_status[] = "CheckOut";
	$reserve_status[] = "StaffCheckOut";
	$reserve_status[] = "Hold";
	
?>
Return current item: ACSoc Comics Library Management System