0 && !is_dir($session_path))
$BadSessionPath = true;
if (!$BadSessionPath) {
$autostart = ini_get('session.auto_start');
if ($autostart) {
session_unset();
} else {
session_name('PHPWEBMAILSESSID');
session_start();
session_unset();
session_destroy();
session_name('PHPWEBMAILSESSID');
session_start();
}
}
require './class_dom_xml.php';
require './inc_settings.php';
if ($StartError != '') {
$config = SetDefaultSettings();
} else {
$RestoreError = '';
$config = RestoreSettings($RestoreError);
if (empty($StartError)) $StartError = $RestoreError;
}
if ($StartError == '' && $BadSessionPath)
$StartError = 'Path for saving sessions (specified in session.save_path variable in php.ini file) doesn\'t exist or there is no permission to write into that location.
WebMail can\'t work properly because it\'s impossible to create new sessions.';
if ($config['intDisableErrorHandling'] == 1)
error_reporting (E_ALL ^ E_NOTICE);
include './language.php';
$Charset = 'utf-8';
header('Content-type: text/html; charset='.$Charset);
?>