示例#1
0
    echo '</session>';
    exit;
}
if ($validsession !== true && IS_IMG) {
    header("Content-Type: image/png");
    header("Cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 16 Jul 2008 04:21:44 GMT");
    // HTTP/1.0 Date dans le passé
    require_once CLASS_PATH . 'map.class.php';
    $Taille = 180;
    $image = imagecreate($Taille, 20);
    $background_color = imagecolorallocate($image, 0, 0, 0);
    imagefilledrectangle($image, 0, 0, $Taille, $Taille, $background_color);
    $debug_cl = imagecolorallocate($image, 254, 254, 254);
    map::map_debug($lng['session_lost']);
    imagepng($image);
    imagedestroy($image);
    exit;
}
// $validsession
if ($validsession === true && $_SESSION['_Perm'] < AXX_VALIDATING) {
    $query = 'INSERT INTO `SQL_PREFIX_Log` (`DATE`,`log`,`IP`) VALUES(NOW(),"login,needvalidation:' . $_SESSION['_login'] . '",\'' . $_SESSION['_IP'] . '\')';
    $_SESSION['_login'] = '';
    DataEngine::sql($query);
    output::_DoOutput('<a href="' . DataEngine::config_key('config', 'ForumLink') . '"><p style="color:red">' . $lng['no_axx'] . '</p></a>');
}
if ($validsession !== true) {
    require_once TEMPLATE_PATH . 'login.tpl.php';
    $tpl = tpl_login::getinstance();
    $tpl->page_title = $lng['login_page_title'];