* @license http://www.contenido.org/license/LIZENZ.txt * @link http://www.4fb.de * @link http://www.contenido.org * * $Id$: */ /** * security check */ if(!defined('CON_FRAMEWORK')) { die('Illegal call'); } global $cfg, $idcat, $idart, $idcatart, $lang, $client, $username, $encoding; $err_catart = trim(getEffectiveSetting("login_error_page", "idcatart", "")); $err_cat = trim(getEffectiveSetting("login_error_page", "idcat", "")); $err_art = trim(getEffectiveSetting("login_error_page", "idart", "")); $oUrl = Contenido_Url::getInstance(); $sClientHtmlPath = $cfgClient[$client]['path']['htmlpath']; $sUrl = $sClientHtmlPath . 'front_content.php'; $sErrorUrl = $sUrl; $bRedirect = false; if ($err_catart != '') { $sErrorUrl .= '?idcatart=' . $err_catart . '&lang=' . $lang; $bRedirect = true; } elseif ($err_art != '' && $err_cat != '') { $sErrorUrl .= '?idcat=' . $err_cat . '&idart=' . $err_art . '&lang=' . $lang; $bRedirect = true; } elseif ($err_cat != '') { $sErrorUrl .= '?idcat=' . $err_cat . '&lang=' . $lang; $bRedirect = true; } elseif ($err_art != '') { $sErrorUrl .= '?idart=' . $err_art . '&lang=' . $lang; $bRedirect = true; } if ($bRedirect) { $aUrl = $oUrl->parse($sess->url($sErrorUrl)); $sErrorUrl = $oUrl->buildRedirect($aUrl['params']); header('Location: ' . $sErrorUrl); exit(); } if (isset($_GET['return']) || isset($_POST['return'])){ $aLocator = array('lang=' . (int) $lang); if ($idcat > 0) { $aLocator[] = 'idcat=' . intval($idcat); } if ($idart > 0) { $aLocator[] = 'idart=' . intval($idart); } if (isset($_POST['username']) || isset($_GET['username'])){ $aLocator[] = 'wrongpass=1'; } $sErrorUrl = $sUrl . '?' . implode('&', $aLocator); $aUrl = $oUrl->parse($sess->url($sErrorUrl)); $sErrorUrl = $oUrl->buildRedirect($aUrl['params']); header ('Location: ' . $sErrorUrl); exit(); } // set form action $sFormAction = $sess->url($sUrl . '?idcat=' . intval($idcat) . '&lang=' . $lang); $aUrl = $oUrl->parse($sFormAction); $sFormAction = $oUrl->build($aUrl['params']); // set login input image, use button as fallback if ( file_exists($cfgClient[$client]['path']['frontend'] . 'images/but_ok.gif') ) { $sLoginButton = '' . "\n"; } else { $sLoginButton = '' . "\n"; } ?> :: :: :: :: Contenido Login
Login