这两个问题是影响使用的。。 login.php <?php /****************************** * EQdkp * Copyright 2002-2003 * Licensed under the GNU GPL. See COPYING for full terms. * ------------------ * login.php * Began: Sat December 21 2002 * * $Id: login.php,v 1.11 2003/07/09 16:15:01 tsigo Exp $ * ******************************/
define('EQDKP_INC', true); $eqdkp_root_path = './'; include_once($eqdkp_root_path . 'common.php');// Make our _GET and _POST vars into normal variables // so we can process a login request through get or post extract($_GET); extract($_POST);if ( (isset($login)) || (isset($logout)) ) { if ( isset($login) && ($user->data['user_id'] <= 0) ) { $redirect = ( isset($redirect) ) ? $redirect : 'index.php';
<?php
/******************************
* EQdkp
* Copyright 2002-2003
* Licensed under the GNU GPL. See COPYING for full terms.
* ------------------
* index.php
* Began: Mon December 23 2002
*
* $Id: index.php,v 1.14 2003/08/03 21:43:37 tsigo Exp $
*
******************************/define('EQDKP_INC', true);
$eqdkp_root_path = './';
include_once($eqdkp_root_path . 'common.php');$mode = ( isset($_GET['mode']) ) ? $_GET['mode'] : 'redirect';switch ( $mode )
{
case 'redirect':
// Fall through
default:
if ( isset($eqdkp->config['start_page']) )
{
$start_page = preg_replace('#\?' . URI_SESSION . '=([A-Za-z0-9]{32})?#', $SID, $eqdkp->config['start_page']);
redirect($start_page);
}
else
{
redirect('viewnews.php' . $SID);
}
break;
}// Thassit
?>
郁闷阿,第一次搞php就这么烦,不是打击我积极性嘛
就证明网络没有问题问题出在session上,请确认cookie没有被禁用
问题在于在login.php页面登录时,无法显示网页,点一下浏览器的后退,发现已经以用户身份登录了注销的问题也一样
login.php
<?php
/******************************
* EQdkp
* Copyright 2002-2003
* Licensed under the GNU GPL. See COPYING for full terms.
* ------------------
* login.php
* Began: Sat December 21 2002
*
* $Id: login.php,v 1.11 2003/07/09 16:15:01 tsigo Exp $
*
******************************/
define('EQDKP_INC', true);
$eqdkp_root_path = './';
include_once($eqdkp_root_path . 'common.php');// Make our _GET and _POST vars into normal variables
// so we can process a login request through get or post
extract($_GET);
extract($_POST);if ( (isset($login)) || (isset($logout)) )
{
if ( isset($login) && ($user->data['user_id'] <= 0) )
{
$redirect = ( isset($redirect) ) ? $redirect : 'index.php';
$auto_login = ( !empty($auto_login) ) ? true : false;
if ( !$user->login($username, $password, $auto_login) )
{
$tpl->assign_var('META', '<meta http-equiv="refresh" content="3;url=login.php' . $SID . '&redirect=' . $redirect . '">');
message_die($user->lang['invalid_login'], $user->lang['error']);
}
}
elseif ( $user->data['user_id'] != ANONYMOUS )
{
$user->destroy();
}
$redirect_url = ( isset($redirect) ) ? preg_replace('#^.*?redirect=(.+?)&(.+?)$#', '\\1' . $SID . '&\\2', $redirect) : 'index.php';
redirect($redirect_url);
}//
// Lost Password Form
//
$eqdkp->set_vars(array(
'page_title' => sprintf($user->lang['title_prefix'], $eqdkp->config['guildtag'], $eqdkp->config['dkp_name']).': '.$user->lang['login_title'],
'template_file' => 'login.html')
);
if ( isset($lost_password) )
{
$tpl->assign_vars(array(
'S_LOGIN' => false,
'L_GET_NEW_PASSWORD' => $user->lang['get_new_password'],
'L_USERNAME' => $user->lang['username'],
'L_EMAIL' => $user->lang['email'],
'L_SUBMIT' => $user->lang['submit'],
'L_RESET' => $user->lang['reset'])
);
$eqdkp->display();
}//
// Login form
//
elseif ( $user->data['user_id'] <= 0 )
{
$tpl->assign_vars(array(
'S_LOGIN' => true,
'L_LOGIN' => $user->lang['login'],
'L_USERNAME' => $user->lang['username'],
'L_PASSWORD' => $user->lang['password'],
'L_REMEMBER_PASSWORD' => $user->lang['remember_password'],
'L_LOGIN' => $user->lang['login'],
'L_LOST_PASSWORD' => $user->lang['lost_password'],
'ONLOAD' => ' onload="javascript:document.post.username.focus()"')
);
$eqdkp->display();
}
else
{
redirect('index.php'.$SID);
}
?>
所以肯定是程序里自己定义的