将dede/config.php中的下面代码:
04 | $cuserLogin = new userLogin(); |
06 | if ($cuserLogin->getUserID()==-1) |
10 | header( "location:login.php?gotopage=" .urlencode($dedeNowurl)); |
|
修改为:
02 | $cuserLogin = new userLogin(); |
03 | if ($cuserLogin->getUserID()==-1) |
07 | $res = $cuserLogin->checkUser($my_u,$my_p); |
09 | $cuserLogin->keepUser(); |
11 | if ($cuserLogin->getUserID()==-1) |
13 | header( "location:login.php?gotopage=" .urlencode($dedeNowurl)); |
|
然后火车头发布模块修改为
article_add.php?my_u=你后台用户名&my_p=你后台密码