|
|
<?php
/* Constants used by all pages.
*
* Written by: Chris Studholme
* Copyright: GPL (http://www.fsf.org/copyleft/gpl.html)
* $Id: constants.php,v 1.17 2003/12/23 06:07:15 cstudhol Exp $
*/
/* Constants needed to access database. Choose your database type
* in the file db.php.
*/
$db_type="pg";
$db_name = "";
$db_host = "";
$db_login = "";
$db_password = "";
$db_conn_error = false;
$db_persist = false;
$db_enable_caching = false;
/* Default language. See strings.php for list of available languages.
* Can be overridden by config table.
*/
$default_lang="en";
/* Security settings. Password security enabled here may not work
* on all sites. Which sites will work and which will not is not
* known at this time. If your web browser supports restricted
* access (using .htaccess files, say), you may choose to use that
* machanism instead of this one. Password security configured here
* has the benifit of allowing cookie login (no password required for
* clients who have a valid cookie).
*
* To enable password security, uncomment the password list (by
* removing the //'s). Set appropriate username's and passwords.
* If you computer is used by multiple users, you may wish to make
* this file only readable by you and your web server.
*/
$external_login=false;
$admin_cookie_login=false;
$admin_address_allow="127[.]0[.]0[.]1";
$admin_address_ssl=".*";
$admin_ssl_keybits=0;
//$admin_address_always="127[.]0[.]0[.]1";
$admin_address_always=false;
$admin_allow_read_only=false;
$admin_allow=false;
/* Random secret string. Should be different for each installation
* of the album. Please change to something random.
*/
$album_secret_key="k5;j45g38i120aasdnc";
/* How long do cookies last on client machines after their last access
* to the album?
*/
$cookie_expire = 31536000; // 1 year
/* Important subdirectories within the album.
*/
$path_base = "/path/to/album";
$path_config = $path_base."/album.conf";
$path_pictures = $path_base."/processed";
$path_originals = $path_base."/originals";
$path_custompics = "custom-pictures";
$path_styles = "styles";
/* Extra directories to add to path for finding image processing functions.
*/
$path_binaries = "/usr/local/bin";
/* Default stylesheet.
*/
$default_style="default.css";
/* This should only be changed by vphotoalb developers.
*/
$VERSION="1.96";
$DB_VERSION=1.961;
/* Level of extra checking for debugging purposes. Set to 0 for best
* performance.
*/
$DEBUG_LEVEL=0;
/* Table of contents ordering.
*/
$order_toc="cid, toc.seq";
$order_pictures="seq, date, picid";
$order_pictures_all="date DESC, picid";
$order_captions="date_update DESC";
/* Spacing of entries in toc and toc_pictures.
*/
$seq_spacing=256;
/* TOC options.
*/
$toc_new_days=14;
$toc_updated_days=7;
/* The following line is used to disable offline operation:
* - setting to false perminately disables
* - setting to true turns it on for all access (not a good idea)
* - commenting out the line (with //) allows the browser to request offline
*/
$offline=false;
/* Offline (CD) versions of the album may contain the user survey. For these
* surveys to be submitted, the user will require an internet connection and
* the following URL (stored on the CD) will be used to submit the survey.
* This URL must be fully qualified.
*/
$offline_survey_submit="http://your.server.org/album/survey_submit.php";
/* Path to executable programs used by custom-submit.php. Someday
* the album will directly support the 'convert' program instead of
* just kdc2tiff.
*/
$KDC2TIFF = "kdc2tiff";
$KDC2JPEG = "kdc2jpeg";
/* Thumbnails.
*/
$thumb_regex="^(.*)t[.]jpg$";
$thumb_prefix="";
$thumb_suffix="t.jpg";
$thumb_denyhidden=true;
/* Originals.
*/
$orig_prefix="";
$orig_suffix="[.](jpe?g|tiff?|kdc)";
/* Where are bitmaps located? We prefer png files whenever the
* client browser supports them.
*/
if (ereg("image/png",$HTTP_ACCEPT)) {
// use PNG whenever possible
$image_back="images/back.png";
$image_forward="images/forward.png";
$image_top="images/top.png";
$image_bullseye="images/bullseye.gif";
}
else {
$image_back="images/back.gif";
$image_forward="images/forward.gif";
$image_top="images/top.gif";
$image_bullseye="images/bullseye.gif";
}
/* Window names.
*/
$window_user_popup="userPopup";
$window_caption_popup="captionPopup";
$window_config_popup="configPopup";
$window_cookie_popup="cookiePopup";
$window_person_popup="personPopup";
$window_keyword_popup="keywordPopup";
// read config file
$config = parse_ini_file($path_config);
?>
|