<?php
/*
* ***********************************************************************************************
* Project: yappa-ng (yet another php photo album - next generation)
* Filename: config_private.inc.php
* Type: Includefile; gets included in file config.inc.php
* Module: Global Settings - Private
* Subcategory: Main Privat Configuration File
* Description: Here are some global settings which are not meant to be changed on a regular basis!
* ***********************************************************************************************
* Author: Fritz Berger <hide@address.com>
* Copyright: 2004 Fritz Berger
* Homepage: http://www.zirkon.at/zirkon/scripts/yappa-ng/yappa-ng_main_eng.html
* ***********************************************************************************************
* $Header: /cvsroot/yappa-ng/yappa-ng/config_private.inc.php,v 1.73 2005/04/25 18:01:48 zirkon13 Exp $
* ***********************************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/*
* MAIN CONFIG - Private Part
*
*/
/*
* ***********************************************************************************************
*
* This is the PRIVATE part of the yappa-ng configuration !!
*
* Please DO NOT edit values in this file -
* most of the values are changeable only for convenient and easy debugging
* and/or extreme setups.
*
* Some of the values may break the output/stability of yappa-ng if changed.
*
* Be prepared - I did warn you! ;-)
*
* ***********************************************************************************************
*/
//$config['show_comments'] = TRUE; //debug
/*
* ---------------------------------------
* Version number
* ---------------------------------------
* Version number of the current yappa-ng release
*/
$config['release'] = "2.3.2";
/*
* -------------------------------------
* Themes configured in this release
* -------------------------------------
* This is the list of the configured and released themes.
* You can select the themes you want in the config.inc.php
* with the setup.php tool
*/
$config['themes_configured'] = array ("blue",
"zirkon",
"silver",
"insight",
"riders",
"passport",
"hot",
"bash",
"wood",
);
/*
* ---------------------------------------
* Cut in thumbnail display
* ---------------------------------------
* this is the cut of the image-captions in the thumbnail display
*/
$config['caption_cut'] = 30;
/*
* ------------------------------------------
* Cut of album info
* ------------------------------------------
* this is the cut of the album description in the left navbar
*/
$config['info_cut'] = 150;
/*
* ------------------------------------------
* Show the date of last access of an album
* ------------------------------------------
* display the last access for an album in the left navigation bar
*/
$config['last_access'] = TRUE;
/*
* ------------------------------------------
* Show the date of the creation of the album
* ------------------------------------------
* display the date of the creation of the albums in the left navigation bar
* no date is displayed if there is no creation date
* (created before yappa-ng release 2.2.1 or created manually)
*/
$config['album_creation'] = TRUE;
/*
* ------------------------------------------
* Show random images (Add On) of locked Albums
* ------------------------------------------
* Shall random images get displayed from locked albums?
* If set to TRUE the images get displayed.
* -> This is a security risk for locked albums!
* -> Even without knowing one image-filename with time all images can be displayed!!!
* If set to FALSE a key symbol will get displayed if someone wants to randomly display from locked albums.
* IF the browser has the password-cookie set (has been logged in into the album previously)
* --> the random images will get displayed correctly!
*/
$config['random_free'] = FALSE;
/*
* -------------------------------------
* Permission for new albums
* -------------------------------------
* Defines the directory permission for new alubms!
*/
$config['mkdir_mode'] = "0777";
/*
* -------------------------------------
* Border Styles
* -------------------------------------
* Here are the borderstyles for the images declared,
* if they are enabled in the respective settings
* left_navbar_border scope: globally (enabled/disabled in the setup.php)
* thumbs_border scope: album (enabled/disabled for every album separately in the Thumbnail Section of the album setup)
* single_image_border scope: album (enabled/disabled for every album separately in the Single Image Section of the album setup)
* Changes here are global!
* PLEASE be sure that you know HTML if you change a setting here!!!!!!!!!!!!!!!!!
*/
$config['left_navbar_border'] = "style='border:3px inset #FFFFFF'";
$config['thumbs_border'] = "style='border:3px inset #FFFFFF'";
//$config['single_image_border'] = "style='border:5px inset #ffffff'";
/*********************************************************************************
*** ***
*** FILE NAMES ***
*** ***
*********************************************************************************
* If you change a filename and have already an installed gallery you will lose
* all information stored in the files with the filename before the change!!!!!
*
* IMPORTANT: Do _NOT_ change these filenames if you did a "Safe Mode Installation"
* because these filnames and directorynames are hardcoded into the
* "Safe mode installation Routine" !
*
* If you have to change one of these: do it BEFORE the FIRST run of the setup.php!!
*/
/*
* -------------------------------------
* Hitcounter
* -------------------------------------
* hits counter log filename
*/
$config["log_filename"] = "hits.log";
/*
* -------------------------------------
* rating counter
* -------------------------------------
* rating list filename
*/
$config['rating_filename'] = "rating.list";
/*
* -------------------------------------
* coments
* -------------------------------------
* comment list filename
*/
$config['comment_filename'] = "comment.list";
/*
* -------------------------------------
* Name of the show script
* -------------------------------------
* Declares the name of the show script!
*/
$config['resize_script'] = "show.php";
/*
* -------------------------------------
* Name of the data directory
* -------------------------------------
* Declares the name of the data directory within each album!
*/
$config['data_dirname'] = "_data";
/*
* -------------------------------------
* Name of the config directory
* -------------------------------------
* Declares the name of the configuration directory for yappa-ng!
*/
$config['config_dirname'] = "_config";
/*
* -------------------------------------
* common part of language related files
* -------------------------------------
* These are the file-"startings" for the language-related files:
* - "captions_xxx.txt" - the file containing all image captions of one album
* - "info_xxx.txt" - the file containing the album-title and the album-description
* - "report_xxx.inc.php" - the file conatining the name and url for the report
* - "news_xxx.html" - the main gallery news-file
* "xxx" means the used language.
*/
$config['capt_txt'] = "captions_";
$config['info_txt'] = "info_";
$config['rep_txt'] = "report_";
$config['news_txt'] = "news_";
/*
* -------------------------------------
* Languages and Themes Paths
* -------------------------------------
* For open_basedir it is essential to take the complete path
* to the includefiles.
*/
$config['path_src_include'] = $config['source_root'] . "/src/";
$config['path_lang_include'] = $config['source_root'] . "/languages/";
$config['path_lang_search'] = $config['source_root'] . "/languages/";
$config['path_admin_include'] = $config['source_root'] . "/admin_modules/";
$config['path_themes_include'] = $config['source_root'] . "/themes/";
$config['path_logfile'] = $config['photo_root'] . "/_config/";
//$config['path_images_include'] = $config['source_root'] . "/images/";
/*********************************************************************************
*** ***
*** Debug Options or Incompatibility Options! ***
*** ***
*********************************************************************************
*/
if(!isset($config["loglevel"])) {
$config["loglevel"] = 63;
}
/* Show only valid resized images ?
* -------------------------------
* The valid resize options get declared in the setup.php.
* If you set this to "TRUE" you can call show.php and declare any resize option you want!
* This safety-check should be disabled only for debugging purposes!!
* in Sept 2004 someone tried to resize to a size of 64000x48000 and brought almost down my server! :-(
* Now this is not possible anymore! :-)
* values are: TRUE / FALSE
* defaults to: FALSE */
$config['FREE_resize'] = FALSE;
/* Laguage-autodetect - debug function.
* for details read the comment in the /languages/language_selection.inc.php function: "write_lang_protocol"
* and all cases of comment: debug autodetect in the same file
* It is for debug-purposes of the autodetect feature only!!
* NOT needed for released yappa-ng versions
* values are: yes / no
* defaults to: no */
$config['debug_autodetect'] = "no";
/* some debug constants */
$log_date = date("d.m.y-h:m");
/*
* -------------------------------
* Is this set up as DEMO-Gallery?
* -------------------------------
* Use this, if you want to create a demo gallery!
* If you turn this option on then nobody can:
* - change the admin password of the galleries
* - enter html-codes into the text
* values are: yes / no
* defaults to: no */
$config['demo_gallery'] = "no";
/*
* -----------------------------------
* Here is some help for initial setup.
+ -----------------------------------
* This is set to "yes" after download of yappa-ng to help you install yappa-ng.
* I would recommend to turn it off after yappa-ng is running correctly
* (but on the other hand: THAN you will not get any warnings anymore? ) ;-)
* values are: yes, no
* defaults to: "yes" */
$config['debug_mode'] = "no";
/*
* -------------------------------------
* Do you want to encrypt the passwords?
* -------------------------------------
* Set this to "yes" if:
* - you want encryption with MD5
* - you have MD5 installed for your webserver
* values are: yes, no
* defaults to: "no" */
/*
* LEAVE it to NO - it does not work at the moment!!!
*/
$config['use_MD5'] = "no";
/*
* --------------------------------------------
* Use the "Old Layout" for the selecton-boxes?
* --------------------------------------------
* The "old layout" for zirkon, riders & blue is really nice and functional...
* ...but it is NOT valid HTML 4.01 Transitional.
* Decide for yourself if you want validated HTML or nice HTML... ;-)
*
* For the Chinese Language this paramater gets overruled!!!
* Chinese language will always be "old layout".
* If you want to enable the "valid html"-display for chinese language you
* have to edit the "themes_zirkon/riders_header.inc.php and edit both lines which are:
* if (($oldLayOut == "yes" ) or ($lang_akt["name"] == "Chinese")) { ?>
*
* values are: yes / no
* defaults to: "no" */
$config["oldLayOut"] = "no";
/* Remark: You can find more settings for the themes in the file:
* ./themes/themes_support.inc.php
* In this file you can define your own LOGO for the upper left corner!
*/
/*
* ------------------------------------------
* test for runing on fileservers (//path..)
* ------------------------------------------
* in preparation - not tested!!
* If set to true it gives // before every path called by singleslash
* NOT really IMPLEMENTED !!!
*/
$config['fileserver'] = FALSE;
?>