0){ $_SESSION['uid'] = $uid; }else{ $_SESSION['uid'] = 0; } $_SESSION['level'] = mysql_result($sql_result, 0, 2); $_SESSION['time'] = time(); header('Location: ' . implode("/", (explode('/', $_SERVER["SCRIPT_NAME"], -1))).'/'); }else{ require('includes/lang/'.$_SESSION['langid'].'.inc.php'); $_SESSION['error'] = $lang['LOGIN_INVALID']; header('Location: ' . implode("/", (explode('/', $_SERVER["SCRIPT_NAME"], -1))) . '/?act=login'); } } ?>