* @license http://www.contenido.org/license/LIZENZ.txt
* @link http://www.4fb.de
* @link http://www.contenido.org
* @since file available since contenido release <= 4.6
*
* {@internal
* created 2003-01-21
* modified 2008-06-17, Rudi Bieller, some ugly fix for possible abuse of belang...
* modified 2008-07-02, Frederic Schneider, add security fix
* modified 2010-05-20, Murat Purc, removed request check during processing ticket [#CON-307]
* modified 2010-05-25, Dominik Ziegler, Remove password and username maxlength definitions at backend login [#CON-314]
* modified 2010-05-27, Dominik Ziegler, restored maxlength definition for username at backend login [#CON-314]
*
* $Id$:
* }}
*
*/
if (!defined('CON_FRAMEWORK')) {
die('Illegal call');
}
global $cfg, $username;
$aLangs = i18nStripAcceptLanguages($_SERVER['HTTP_ACCEPT_LANGUAGE']);
foreach ($aLangs as $sValue) {
$sEncoding = i18nMatchBrowserAccept($sValue);
$GLOBALS['belang'] = $sEncoding;
if ($sEncoding !== false) {
break;
}
}
if (isset($_POST['belang']) && $_POST['belang'] != '') {
$sSelectedLang = $_POST['belang'];
$GLOBALS['belang'] = $sSelectedLang;
}
if (!isset($belang) || empty($belang)) {
$belang = $GLOBALS['belang'];
}
$db = new DB_ConLite();
$noti = "";
if (getenv('CONTENIDO_IGNORE_SETUP') != "true") {
$aMessages = array();
if (getSystemProperty('maintenance', 'mode') == 'enabled') {
$aMessages[] = i18n("Contenido is in maintenance mode. Only sysadmins are allowed to login. Please try again later.");
}
if (count($aMessages) > 0) {
$notification = new Contenido_Notification;
$noti = $notification->messageBox("warning", implode("
", $aMessages), 1) . "
";
}
}
?>