<?php
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
header("Pragma: no-cache");
$x_2b9 = kerio('kerio::web::PhpSession');
if ($_SERVER['command'] == 'loginAgain') {
print ($x_2b9 ? '1' : '0');
exit;
}
if ($_SERVER['command'] == 'loginAndRefresh') {
if ($x_2b9) {
header('Location: refresh.php');
}
exit;
}
$x_2bg = $_SERVER['kerio_mode'];
if ($x_2bg != 'full' && $x_2bg != 'mini' && $x_2bg != 'pda' && $x_2bg != 'wm2') {
$x_2bg = (isset($_SERVER['kerio_useMini']) ? 'mini' : 'full');
}
if ($x_2b9) {
switch ($x_2bg) {
case 'full':
$x_2kp = (isset($_SERVER['x_9tr'])) ? '/webmail/index.php' : '/webmail/loginCheck.php';
break;
case 'mini':
$x_2kp = '/mini/index.php';
break;
case 'pda':
$x_2kp = '/mini/index.php?pda=1';
break;
case 'wm2':
if (KMS_WEBMAIL_INTERNAL_SETTINGS & 0x0001) {
setRawCookie('EPISODES', 's=' . floor(microtime(true) * 1000) . '&r=' . $_SERVER['HTTP_REFERER']);
}
$x_2kp = '/webmail/index2.php';
break;
}
if (isset($_SERVER['kerio_startFolder'])) {
$x_9ts = (strpos($x_2kp, '?') !== false ? '&' : '?');
$x_2kp .= $x_9ts . 'kerio_startFolder=' . urlencode($_SERVER['kerio_startFolder']);
}
}
else {
if ($x_2bg == 'wm2') {
$x_2kp = '/webmail/login2/?reason=failure';
}
else {
$x_2kp = '/webmail/login/?reason=failure';
}
if ($x_2bg != 'full') {
$x_2kp .= '&mode=' . $x_2bg;
}
}
header("Location: " . $x_2kp);
?>
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
header("Pragma: no-cache");
$x_2b9 = kerio('kerio::web::PhpSession');
if ($_SERVER['command'] == 'loginAgain') {
print ($x_2b9 ? '1' : '0');
exit;
}
if ($_SERVER['command'] == 'loginAndRefresh') {
if ($x_2b9) {
header('Location: refresh.php');
}
exit;
}
$x_2bg = $_SERVER['kerio_mode'];
if ($x_2bg != 'full' && $x_2bg != 'mini' && $x_2bg != 'pda' && $x_2bg != 'wm2') {
$x_2bg = (isset($_SERVER['kerio_useMini']) ? 'mini' : 'full');
}
if ($x_2b9) {
switch ($x_2bg) {
case 'full':
$x_2kp = (isset($_SERVER['x_9tr'])) ? '/webmail/index.php' : '/webmail/loginCheck.php';
break;
case 'mini':
$x_2kp = '/mini/index.php';
break;
case 'pda':
$x_2kp = '/mini/index.php?pda=1';
break;
case 'wm2':
if (KMS_WEBMAIL_INTERNAL_SETTINGS & 0x0001) {
setRawCookie('EPISODES', 's=' . floor(microtime(true) * 1000) . '&r=' . $_SERVER['HTTP_REFERER']);
}
$x_2kp = '/webmail/index2.php';
break;
}
if (isset($_SERVER['kerio_startFolder'])) {
$x_9ts = (strpos($x_2kp, '?') !== false ? '&' : '?');
$x_2kp .= $x_9ts . 'kerio_startFolder=' . urlencode($_SERVER['kerio_startFolder']);
}
}
else {
if ($x_2bg == 'wm2') {
$x_2kp = '/webmail/login2/?reason=failure';
}
else {
$x_2kp = '/webmail/login/?reason=failure';
}
if ($x_2bg != 'full') {
$x_2kp .= '&mode=' . $x_2bg;
}
}
header("Location: " . $x_2kp);
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货