<?php

@( (bool)FALSE === strpos( $_SERVER['REQUEST_URI'], basename( __FILE__ ) ) ) OR exit( '!! ACCESS DENIED !!' );
error_reporting( _E_VALUE );

/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | myPHPNuke Core Constants for version 188_8 RC2                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003-2004 Kiril Threndor                               |
// +----------------------------------------------------------------------+
// | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html              |
// +----------------------------------------------------------------------+
// | Support: http://myphpnuke.com/                                       |
// +----------------------------------------------------------------------+
// | Author: Kiril Threndor < mpnx@dev.illearth.net >                     |
// +----------------------------------------------------------------------+

/**
 * This file sets the MPN User Configurable Constants.
 *
 * In most cases you will never need to modify anything in this file.
 *
 * @package myPHPNuke_Core
 * @category User_Constants
 * @version $Id: core_UserConstants.php,v 1.1.2.20 2004/09/09 15:54:48 kirilt Exp $
 *
 * @author Kiril Threndor <support@mpn.illearth.net>
 * @copyright Copyright (C) 2003 Eric Haddix
 * @license http://www.gnu.org/copyleft/gpl.html GPL 2.0
 * @support http://myphpnuke.com/
 */


// ##### USER CONFIGURABLE CONSTANTS #####

/**
 * Override Auto-Resolving URI
 *
 * This should only be used in the event the automatically
 * resolved URI / URL for your site has not been determined correctly
 *
 * In 99.9% of the cases you will never need to enable this override.
 *
 * NOTE: For localhost ( non IP based ) setups,
 *       set _MPN_OVERRIDE_HOST = ''
 *
 * WARNING: DO NOT CHANGE THESE UNLESS YOUR SITE IS NOT WORKING
 *
 * Constants Defined:
 *
 *   _MPN_OVERRIDE_AR_URI -> Override auto resolved URI and Host
 *
 *   _MPN_OVERRIDE_URI    -> Absolute URI/URL To the MPN Root
 *                           ( This value MUST have a trailing slash )
 *
 *   _MPN_OVERRIDE_HOST   -> Host name of your site ( used to set cookies )
 *                           DO NOT include a port
 */

define( '_MPN_OVERRIDE_AR_URI', (bool)FALSE );

if ( _MPN_OVERRIDE_AR_URI )
{
    define( '_MPN_ROOT_URI', 'http://mydomain.com/html/' );
    define( '_MPN_HOST', 'mydomain.com' );
    define( '_MPN_COOKIE_HOST', '.mydomain.com' );
}

/**
 * Use MySQL Persistent Connections
 *
 * Set This constant to true if you want to use persistent
 * connections to the database.
 *
 * WARNING: Unless you are running your own server,
 *          DO NOT enable this feature
 */

define( '_MPN_MYSQL_PCONNECT', (bool)FALSE );

/**
 * Hide / Show Deleted Users Content.
 */

define( '_UM_SHOW_DELETED_USERS_CONTENT_', (bool)TRUE );

/**
 * Show Bottom Forum Navigation.
 */

define( '_FORUM_SHOW_BOTTOM_NAV_', (bool)TRUE );

/**
 * Show Post DB Info To Admins.
 */

define( '_FORUM_SHOW_POST_INFO_', (bool)TRUE );

/**
 * Forum Category Order For Nav Drop Down.
 *
 * 'DESC' = newest first, 'ASC' = oldest first
 */

define( '_FORUM_NAVCAT_ORDER_', 'ASC' );

/**
 * Category Order For Main Forum Index.
 *
 * 'DESC' = newest first, 'ASC' = oldest first
 */

define( '_FORUM_CAT_ORDER_', 'ASC' );

/**
 * Forum List Order In Each Category For Main Forum Index.
 *
 * 'DESC' = newest first, 'ASC' = oldest first
 */

define( '_FORUM_LIST_ORDER_', 'ASC' );

/**
 * Show Authors In Who's Online Block
 *
 * 'TRUE' = show it, 'FALSE' = hide it
 */

define( '_BLKS_SHOW_AUTHORS_', TRUE );

/**
 * Show Users ICQ Online Status.
 *
 * NOTE: Enabling this can and probably will reduce page load times.
 *
 * 'TRUE' = get online status, 'FALSE' = just show online icon
 */

define( '_USR_ICQ_STATUS_', FALSE );

/**
 * Enable / Disable Sanitizing Of Legacy Content Except Forum Posts
 *
 * NOTE: Enabling this will increase page load times if you have legacy content
 *       however if you have alot of content that was posted by anonymous users
 *       it is high recommended you leave this enabled.
 *
 *       Some legacy content may get mutilated and will need to be adjusted
 *       by editing and re-saving the content.
 *       In most all cases only code fragments in articles will get
 *       mutilated.
 *
 * 'TRUE' = sanitize, 'FALSE' = just format it as is
 */

define( '_SAN_LEGACY_SCAN_', TRUE );

/**
 * Enable / Disable Sanitizing Of Legacy Forum Posts
 *
 * Same as the above constant expect specifically applies to forum posts
 *
 * 'TRUE' = sanitize, 'FALSE' = just format it as is
 */

define( '_SAN_LEGACY_FORUM_', TRUE );

/**
 * Sanitizing Level For Legacy Content ( applies to both forum and non forum content )
 *
 * Scan Type Options:
 *     1 -> Normal Processing
 *     2 -> Skip Add Attributes
 *     3 -> Skip Remove Tags With Content
 *     4 -> Skip Attribute Checks
 *     5 -> Skip All Except Allowed Tags
 *
 * @default 5
 */

define( '_SAN_LEGACY_LEVEL_', 5 );

/**
 * Enable / Disable Legacy Sanitized Notification Message For Forum Posts
 *
 * Each lagacy post that gets sanitizied will get a warning notice
 * stating the post has been re-sanitized.
 * This is done to inform the user that post may not contain it's original
 * content.
 *
 *
 * 'TRUE' = show it, 'FALSE' = hide it
 */

define( '_FORUM_LEGACY_NOTIFY_', TRUE );

/**
 * Legacy Sanitized Notification Message
 *
 * Each lagacy post that gets sanitizied will get a warning notice
 * stating the post has been re-sanitized.
 * This is done to inform the user that post may not contain it's original
 * content.  Define the message you want displayed below.
 *
 * @default 'This legacy post has been re-sanitized'
 * @note this message DOES run through the translator
 */

define( '_FORUM_LEGACY_NOTIFY_MSG_', 'This legacy post has been re-sanitized' );

/**
 * Enable Associated Admin User Display
 *
 * This will enable/disable tracking of an administrators associated user
 * when posting content to the forum.  This only applies when the admin
 * is not logged in as a user.  In effect, when the admin is not logged in as
 * a user and has a user account associated with the admin account, the user account
 * will be used when posting forum content.
 *
 *
 * 'TRUE' = Use associated user account, 'FALSE' = Use default global admin account
 *
 * To set the default value, change the bool value of the second condition.
 * This default is used to automatically check/uncheck the checkbox in the forum submission form
 * and is also used for quick posts.
 */

$setconstant = ( isset( $_POST['togfausr'] ) && $_POST['togfausr'] == 'on' )
             ? ( (bool)TRUE )
             : ( (bool)FALSE ); // Set Your Default Here

define( '_FORUM_ADMIN_USER_', $setconstant );

unset( $setconstant );
/**
 * Show Edited On/By Stamp For Admins Only
 *
 * This will enable/disable displaying post edits for admins only.
 * If enabled, only admins will see the edited by/on stamp.
 *
 *
 * 'TRUE' = Show edit stamp to admins only, 'FALSE' = Show edit stamp to everyone
 */

define( '_FORUM_RESTRICT_EDIT_STAMP_', TRUE );

/**
 * Show Forum Main Message.
 *
 *
 */

define( '_FORUM_SHOW_MAIN_MSG_', FALSE );

/**
 * Forum Welcome Message.
 *
 *
 */

define( '_FORUM_WELCOME_MSG_', 'Select forums with discussions of your interest<br />participate and have a lot of fun<br />The only rule here is: Stay on topic of the discussions' );

// eGallery

/**
 * Thumbnail Storage Type.
 *
 * @requires GD Library
 * @options db Or file
 * @default file
 */

define( '_GAL_TN_STORE_', 'db' );

?>