Location: PHPKode > projects > phlyMail Lite > phlymail/shared/lib/init.backend.php
<?php
/**
 * Cousin of ./init.frontend.php for bakcend purposes
 * @package phlyMail Nahariya 4.0+
 * @subpackage Core system
 * @copyright 2002-2008 phlyLabs, Berlin (http://phlylabs.de)
 * @version 4.1.4 2008-09-16
 */
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();
define('SESS_NAME', session_name());
define('SESS_ID', preg_replace('![^-,a-zA-Z0-9]!', '', session_id())); // Allow up to 6bits per character session IDs
define('CRLF', "\r\n");
define('LF', "\n");
require_once($_PM_['path']['lib'].'/functions.php');
require_once($_PM_['path']['lib'].'/basemethods.php');
require_once($_PM_['path']['lib'].'/uctc.php');
// Global Choices, overloading core settings
if (file_exists($_PM_['path']['conf'].'/global.choices.ini.php')) {
    $_PM_ = merge_PM($_PM_, parse_ini_file($_PM_['path']['conf'].'/global.choices.ini.php', true));
}
$_PM_['core']['file_umask'] = octdec($_PM_['core']['file_umask']);
$_PM_['core']['dir_umask']  = octdec($_PM_['core']['dir_umask']);
define('PHP_SELF', (isset($_SERVER['SCRIPT_NAME']) && $_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : $_SERVER['PHP_SELF']);
require_once($_PM_['path']['driver'].'/'.$_PM_['core']['database'].'/driver.php');
$DB = new driver($_PM_['path']['conf'].'/driver.'.$_PM_['core']['database'].'.ini.php'
        ,(isset($_PM_['core']['accountpass_security']) && $_PM_['core']['accountpass_security'] == 'cleartext' ? false : true));
if (isset($_SESSION['phM_uid'])) require_once($_PM_['path']['lib'].'/user.choices.php');
require_once($_PM_['path']['message'].'/'.$_PM_['core']['language'].'.php');
require_once($_PM_['path']['lib'].'/fxl_template.inc.php');
require_once($_PM_['path']['lib'].'/idna_convert.class.php');
// Timezone
if (isset($_PM_['core']['timezone'])) {
    date_default_timezone_set($_PM_['core']['timezone']);
} elseif (isset($WP_msg['tz'])) {
    date_default_timezone_set($WP_msg['tz']);
}
// SMS active?
if (isset($_PM_['core']['sms_active'])) {
    if ($_PM_['core']['sms_active']) $_PM_['core']['sms_active'] = 1;
} elseif (isset($_PM_['core']['sms_default_active'])) {
    if ($_PM_['core']['sms_default_active']) $_PM_['core']['sms_active'] = 1;
} else {
    $_PM_['core']['sms_active'] = 0;
}
?>
Return current item: phlyMail Lite