Location: PHPKode > projects > Pigalle > pigalle/private/settings/global.inc.php
<?php
/**
* PIGALLE - Global settings & constant definitions
*
* @author       Philip Iezzi <hide@address.com>
* @copyright    Copyright (c) 2002-2007 PHPEE.COM
* @license      http://opensource.org/licenses/gpl-license.php GNU General Public License
* @version      $Id: global.inc.php 3005 2007-12-08 11:18:31Z piezzi $
*
* ----------------------------------------------------------------------
* 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.
* ----------------------------------------------------------------------
*/

// current version of Pigalle
define('PIGA_CURRVER'        , '0.76-alpha');
define('PIGA_BUILDDATE'      , '2007/12/08');
define('PIGA_PROJECTURL'     , 'http://www.phpee.com/');

// hacking prevention pseudo constant
define('PIGA_IN'             , true);

// meta tags
define('PIGA_KEYWORDS'       , 'Pigalle, picture, gallery, picture gallery, image, GD, gd-lib, image, album, '
                             . 'pics, images, pictures, sourdough framework, sourd, Imagick, online photo album, '
                             . 'PHP, photo, photo-gallery, foto, Imagemagick, NetPBM, Philip Iezzi');
define('PIGA_DESCRIPTION'    , 'Pigalle - automated picture gallery');

// available DB providers
$piga_db_providers = array('mysql', 'mysqli', 'pgsql', 'mssql', 'sqlite', 'sybase', 'fbase', 'sybase');

// define common used paths (do NOT change!)
define('PIGA_LIB_PATH'       , PIGA_SCRIPT_PATH.'lib/');
define('PIGA_INCTXT_PATH'    , PIGA_SCRIPT_PATH.'inctxt/');
define('PIGA_SETTINGS_PATH'  , PIGA_SCRIPT_PATH.'settings/');
define('PIGA_SQL_PATH'       , PIGA_SCRIPT_PATH.'sql/');
define('PIGA_LOG_PATH'       , PIGA_SCRIPT_PATH.'log/');

// files
define('PIGA_INC_COMMONLIB'  , 'common.inc.'.PIGA_PHPEXT);
define('PIGA_INC_HTMLLIB'    , 'htmlLib.inc.'.PIGA_PHPEXT);
define('PIGA_INC_HTMLFORMLIB', 'htmlFormsLib.inc.'.PIGA_PHPEXT);
define('PIGA_INC_TIMELIB'    , 'timeLib.inc.'.PIGA_PHPEXT);
define('PIGA_INC_FILELIST'   , 'fileList.inc.'.PIGA_PHPEXT);
define('PIGA_INC_ALBUM'      , 'album.inc.'.PIGA_PHPEXT);
define('PIGA_INC_AUTH'       , 'auth.inc.'.PIGA_PHPEXT);
define('PIGA_INC_USER'       , 'user.inc.'.PIGA_PHPEXT);
define('PIGA_INC_ACTIONS'    , 'actions.inc.'.PIGA_PHPEXT);
define('PIGA_INC_FUNCTIONS'  , 'functions.inc.'.PIGA_PHPEXT);
define('PIGA_INC_CONTENT'    , 'content.inc.'.PIGA_PHPEXT);
define('PIGA_INC_LANG_MAIN'  , 'lang_main.inc.'.PIGA_PHPEXT);
define('PIGA_INC_FP_STANDARD', 'fullpage_std.inc.'.PIGA_PHPEXT);
define('PIGA_INC_FP_SLIDES'  , 'fullpage_sls.inc.'.PIGA_PHPEXT);
define('PIGA_INC_PHPZIP'     , 'phpzip.inc.'.PIGA_PHPEXT);
define('PIGA_INC_COPYRIGHT'  , 'copyright.txt');
define('PIGA_INC_COMMONJS'   , 'common.js');
define('PIGA_INC_SLIDEJS_HEAD', 'slideshow_head.js');
define('PIGA_INC_SLIDEJS_BODY', 'slideshow_body.js');

// global template files
define('PIGA_TPL_GLOBAL'          , 'global.'.PIGA_TPLEXT);
define('PIGA_TPL_GLOBAL_BODY'     , 'global_body.'.PIGA_TPLEXT);
define('PIGA_TPL_GLOBAL_SLIDESHOW', 'global_slideshow.'.PIGA_TPLEXT);
define('PIGA_TPL_SLIDESHOW'       , 'cont_slideshow.'.PIGA_TPLEXT);
define('PIGA_TPL_OVERVIEW'        , 'cont_overview.'.PIGA_TPLEXT);
define('PIGA_TPL_VIEW'            , 'cont_view.'.PIGA_TPLEXT);
define('PIGA_TPL_CRLOGINFORM'     , 'crloginform.'.PIGA_TPLEXT);
define('PIGA_TPL_ALBUMEDIT'       , 'cont_albumedit.'.PIGA_TPLEXT);
define('PIGA_TPL_ALBUMEDIT_PPCODE', 'cont_albumedit_ppcode.'.PIGA_TPLEXT);
define('PIGA_TPL_ADMIN'           , 'cont_admin.'.PIGA_TPLEXT);
define('PIGA_TPL_HELP'            , 'cont_help.'.PIGA_TPLEXT);
define('PIGA_TPL_USERADMIN'       , 'cont_useradmin.'.PIGA_TPLEXT);
define('PIGA_TPL_PHP_HEAD'        , 'head.inc.'.PIGA_PHPEXT);
define('PIGA_TPL_PHP_FOOT'        , 'foot.inc.'.PIGA_PHPEXT);
define('PIGA_TPL_BBCODE'          , 'ppcode.'.PIGA_TPLEXT);

// table definitions
define('PIGA_TBL_SESSION'    , 'session');
define('PIGA_TBL_ALBUM'      , 'album');
define('PIGA_TBL_PERM'       , 'perm');
define('PIGA_TBL_COMMENT'    , 'comment');
define('PIGA_TBL_GROUP'      , 'group');
define('PIGA_TBL_INGROUP'    , 'ingroup');
define('PIGA_TBL_PICTURE'    , 'picture');
define('PIGA_TBL_SETTING'    , 'setting');
define('PIGA_TBL_USER'       , 'user');

// action requests
define('PIGA_ACTION_CREATETBLS'     , 'createtbls');    // Generation of all Pigalle DB tables
define('PIGA_ACTION_LOGIN'          , 'login');         // Login actions
define('PIGA_ACTION_NEWPASSWORD'    , 'newpw');         // Password change
define('PIGA_ACTION_SIGNUP'         , 'signup');        // Signup actions
define('PIGA_ACTION_LOGOUT'         , 'logout');        // Logout actions
define('PIGA_ACTION_WRONGPW'        , 'wrongpw');       // Wait some seconds on wrong password entry
define('PIGA_ACTION_IMPORTWIHSY'    , 'impwihsy');      // Import Wihphoto data
define('PIGA_ACTION_CLEANUPHTML'    , 'cleanuphtml');   // Clean up HTML of album descriptions
define('PIGA_ACTION_UPDATEDB'       , 'updatedb');      // Update DB-entries for all pictures of an album
define('PIGA_ACTION_DELALBUM'       , 'delalbum');      // Delete an album
define('PIGA_ACTION_DELIMAGE'       , 'delimage');      // Delete an image
define('PIGA_ACTION_MAINPIC'        , 'mainpic');       // Set front thumbnail of current album
define('PIGA_ACTION_MAINPICSUPER'   , 'mainpicsuper');  // Set front thumbnail of super album
define('PIGA_ACTION_ALBUMEDIT'      , 'albumedit');     // Edit the description/information of an album
define('PIGA_ACTION_CLEANALBUMCACHE', 'cleancache');    // Refresh cache for an album (GET:alb required)
define('PIGA_ACTION_CLEANALLCACHE'  , 'cleanallcache'); // Refresh cache for all albums
define('PIGA_ACTION_MOVEUP'         , 'moveup');        // move album up in customized order
define('PIGA_ACTION_MOVEDOWN'       , 'movedown');      // move album down in customized order
define('PIGA_ACTION_ADMIN_SETTINGS' , 'changesettings');// change admin settings
define('PIGA_ACTION_ADMIN_USEREDIT' , 'useredit');      // change user settings
define('PIGA_ACTION_ADMIN_NEWUSER'  , 'newuser');       // create a new user
define('PIGA_ACTION_ADMIN_DELUSER'  , 'delusr');        // Delete a user profile
define('PIGA_ACTION_CHANGE_BOOLACT' , 'changeactive');  // change a user's active status
define('PIGA_ACTION_CHANGE_BOOLMOD' , 'changemod');     // change a user's moderator status
define('PIGA_ACTION_CHANGE_BOOLADM' , 'changeadm');     // change a user's admin status
define('PIGA_ACTION_DUMMY'          , 'dummy');         // dummy action (TODO: !!)
define('PIGA_ACTION_ROTATE'         , 'rotate');        // rotate image

// modes/content
define('PIGA_MODE_OVERVIEW'         , 'overview');
define('PIGA_MODE_ALBUM'            , 'album');
define('PIGA_MODE_VIEW'             , 'view');
define('PIGA_MODE_HELP'             , 'help');
define('PIGA_MODE_SLIDESHOW'        , 'slideshow');
define('PIGA_MODE_ALBUMEDIT'        , 'albumedit');
define('PIGA_MODE_ADMIN_SETTINGS'   , 'settings');
define('PIGA_MODE_ADMIN_USERADMIN'  , 'useradm');
define('PIGA_MODE_ADMIN_USEREDIT'   , 'useredit');
define('PIGA_MODE_ADMIN_NEWUSER'    , 'newuser');

// SOURDOUGH configuration
$conf['php_ext']          = PIGA_PHPEXT;
$conf['dboptions']['customdt']   = PIGA_SETTINGS_PATH.'db.datatypes-piga.xml';
$conf['path']['lang']     = PIGA_SCRIPT_PATH.'lang/';
$conf['path']['log']      = PIGA_LOG_PATH;
$conf['session']['table'] = PIGA_TBL_SESSION;
$conf['setting']['table'] = PIGA_TBL_SETTING;
$conf['user']['table']    = PIGA_TBL_USER;
$conf['session']['table_autocreate'] = false;
$conf['setting']['table_autocreate'] = false;
$conf['user']['table_autocreate'] = false;
?>
Return current item: Pigalle