安装了,后台打开验证码功能后,登陆会员前台点击"退出"按扭出现错误提示:
Warning: main() [function.main]: Unable to access ./ejewimage.php in /srv/www/httpd/pytalhost/1896/html/logging.php on line 21
Warning: main(./ejewimage.php) [function.main]: failed to open stream: No such file or directory in /srv/www/httpd/pytalhost/1896/html/logging.php on line 21
请问这是怎么会事??
我把logging.php 前面的帖出来,大家帮忙看看,谢谢了
<?php
/*
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [DISCUZ!] Crossday Discuz! Board ::
:: (c) 2001-2005 Comsenz Technology Ltd (www.discuz.com) ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Author: Crossday (tech@discuz.com) Cnteacher (cnteacher@discuz.com) ::
:: Version: 2.5F 2004/10/01 05:15 ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/
//fix: BY pk0909
/*
1 在线列表重复的问题
*/
define('CURRSCRIPT', 'logging');
require './include/common.php';
if($ejewlog) {
require './ejewimage.php';
}
if($action == 'logout') {
if($adminid <>0){
$query = $db->query("DELETE FROM $table_adminsessions WHERE uid='$discuz_uid' OR dateline<$timestamp-3600", 'SILENT');
}
clearcookies();
$styleid = $_DCACHE['settings']['styleid'];
showmessage('logout_succeed', dreferer());
} elseif($action == 'login') {
if(!submitcheck('loginsubmit', 1)) {
$discuz_action = 6;
$referer = dreferer();
$styleselect = '';
$query = $db->query("SELECT styleid, name FROM $table_styles WHERE available='1'");
while($styleinfo = $db->fetch_array($query)) {
$styleselect .= "<option value=\"$styleinfo[styleid]\">$styleinfo[name]</option>\n";
}
$year_checked = $day_checked = $hour_checked = $task_checked = $month_checked = '';
switch($_COOKIE['_cookietime']) {
case '31536000': $year_checked = 'checked'; break;
case '86400': $day_checked = 'checked'; break;
case '3600': $hour_checked = 'checked'; break;
case '0': $task_checked = 'checked'; break;
default: $month_checked = 'checked';
}
include template('login');
} else {
if($ejewlog && ($HTTP_POST_VARS["number"] != $HTTP_SESSION_VARS[login_check_number] || empty($HTTP_POST_VARS["number"]))){
showmessage( '验证码未输入或输入错误', 'logging.php?action=login');
die();
}
$discuz_uid = $adminid = 0;
$discuz_user = $discuz_pw = $discuz_secques = '';
$loginperm = logincheck();
if(!$loginperm) {
showmessage('login_strike');
}
$secques = ($questionid && $answer) ? quescrypt($questionid, $answer): '';
$errorlog = "$timestamp\t$username\t".substr($password, 0, 2);
for($i = 3; $i < strlen($password); $i++) {
$errorlog .= '*';
}
$errorlog .= substr($password, -1)."\t".($secques ? "Ques #$questionid" : '')."\t$onlineip\n";
$password = md5($password);
$query = $db->query("SELECT m.uid AS discuz_uid, m.username AS discuz_user, m.password AS discuz_pw, m.adminid, m.groupid, m.credit, m.styleid AS styleidmem, m.lastvisit, m.lastpost, u.type as usertype, u.creditshigher, u.creditslower, u.allowinvisible
FROM $table_members m LEFT JOIN $table_usergroups u USING (groupid) |