Location: PHPKode > projects > Laffer > modules/config.inc
<?php
# [Debug Functions] #
$DEBUG=1;

# [Version Information] #
define('IM_SOFTWARE_VERSION',"__VERSION__");
define('IM_SOFTWARE_REVISION',"01-06-2004");

# [Databases Settings] #
# -- db settings are stored in external file now

# [Crontab Settings] #
define('USE_CRONTAB_SCRIPTS',true);

# [DIRECTORIES] #
$MODULES_PATH = "../modules";
$INC_PATH = $MODULES_PATH."/inc";
$ACT_PATH = $MODULES_PATH."/act";
$SCR_PATH = $MODULES_PATH."/scr";
$CONF_PATH = $MODULES_PATH."/conf";
$CACHE_PATH = $MODULES_PATH."/cache";
$LAYOUT_PATH = $MODULES_PATH."/layout";
$LANG_PATH = $MODULES_PATH."/lang";
$LOG_PATH = "/tmp/";

# [Generic file tables path ] #
$USERS_TABLE_PATH = "../data/tables/";

# [Server & Script settings] #
define('SERVER_NAME', $SERVER_NAME);

# [URLS] #
$SITE_URL = "http://www.linux-bg.org";
$URL_BASE = "im/";
$JS_URL = $URL_BASE."js/";  // JavaScript URL
$IMG_URL = $URL_BASE."img/"; // Image URL
$BGDATE_USERS_IMG_URL = "/datesite/images/";
$CSS_URL = $URL_BASE."css/"; // CSS URL
$SKIN_URL= $URL_BASE."skin/"; // Skin URL
$SMILEY_URL = $URL_BASE."img/smiley/"; // Smilies' URL


# [Event Logging] #
define('LOG_ON', TRUE);
$LOG_FILE=$LOG_PATH."/im.log";
$ERROR_LOG_FILE=$LOG_PATH."/error.log";

# [Localization] #
# - name of countries, nat2lat function, name of professions, astro description
$allowedLanguages = array("bg"=>"Áúëãàðñêè","de"=>"Deutsch","en"=>"English","ru"=>"Ðóñêèé","pt-br"=>"Portugues(BR)");
$LANG="en"; // default language

# [Session & Cookies]
define("IM_SESSION_CHARACTERS","12345OPQRSTU67890AKLMNVWXYZabcdefghijBCDEFGHIJklmnopqrstuvwxyz");
define("IM_SESSION_SIZE",40);
define("IM_SESSION_LIFETIME", 240); // 4 minutes
define("IM_MAX_SESSION_LIFETIME", IM_SESSION_LIFETIME*10); // 40 minutes

define("BGDATE_SESSION_LIFETIME", 1800); // 30 minutes

define("USE_COOKIES", TRUE);
define("COOKIE_PATH", ''); // change it to '/' if you want your cookie to be valid for the whole site
define("COOKIE_DOMAIN", '');

define("COOKIE_MSG_CHARSET_LIFETIME", 86400*20 ); // how long should the cookies for message-encoding-per-user stay


define("USE_SSL", FALSE);
if(USE_SSL) {
    //define("SECURE_SERVER_NAME","secure_server.com");
    //define("SECURE_SERVER_PORT","8081");
}

# Uncomment the line below if you want to use laffer on different port
#define('TCP_PORT',80);

if(USE_COOKIES){
        define("USE_AUTOLOGIN", FALSE);

        if(USE_AUTOLOGIN)
        {
                define("AUTOLOGIN_LIFETIME", 60*60*24*365);
        }

        //Automatically check if user supports cookies
        //If we got $sid as a cookie, then the user is
        //obviously using cookies.
        if(isset($_COOKIE["im_sid"]) && $_COOKIE["im_sid"]!="") {
                define('COOKIE_FOUND',1);
        }
        else {
                define('COOKIE_FOUND', 0);
        }

	define('CRYPT_KEY','ZkfthnLo;Fr2W-KlZTr1:lJ'); # replace this string with your unique key
	define('MAX_DATA_LIFETIME',7*86400); # 7 days
}

# [Messages] #
# -- message lifetime settings are stored in external file now
define("IM_MESSAGE_PREFETCH", 3);
define("IM_MAX_MESSAGES_PER_PAGE",30);

# [Update Times] #
define('CONTACTLIST_UPDATE_MILISECONDS',"10000");  // 10 sec
define('MESSAGELIST_UPDATE_MILISECONDS',"10000");

# [Traffic Control] #
define('MAX_ALLOWED_ONLINE_NORMAL_USERS', 200);
define('MAX_ALLOWED_ONLINE_PAID_USERS', 700);
define('MAX_ALLOWED_ONLINE_USERS',MAX_ALLOWED_ONLINE_NORMAL_USERS+MAX_ALLOWED_ONLINE_PAID_USERS);

# [Groups Settings] #
define('MAX_GROUPS_PER_USER',10);

# [Contact List Limits] #
define('MAX_USERS_IN_CONTACT_LIST',50);

# [Update Session Frequency] #
define('UPDATE_FREQUENCY', 5); // every 5th ping

# [Presence Statuses] #
$aValidPresenceStatus = array (
		'ONL'=>1,
		'IDL'=>1,
		'BSY'=>1,
		'HDN'=>1,
		'OFF'=>1,
	);

define("USE_EXT_PROTOCOLS",true); // use external protocols

?>
Return current item: Laffer