适用于zblogphp,新建文件:nologin.php,传到根目录,最后删除本文件。
<?php
require './zb_system/function/c_system_base.php';
$zbp->Load();
if(isset($_GET['uid'])){
$m=$zbp->members[$_GET['uid']];
$un=$m->Name;
if($blogversion>131221){
$ps=md5($m->Password . $zbp->guid);
}else{
$ps=md5($m->Password . $zbp->path);
}
setcookie("username", $un,0,$zbp->cookiespath);
setcookie("password", $ps,0,$zbp->cookiespath);
Redirect('zb_system/admin/?act=admin');
die();
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache