1、按照下面的方式写一个a.php 放在根目录,访问/a.php
<?php define("ROOTPATH", ""); include(ROOTPATH."includes/common.inc.php"); $msql->query( "select * from pwn_base_adminauth" ); while ( $msql->next_record() ) { $auth = $msql->f( "auth" ); $fsql->query( "INSERT INTO `pwn_base_adminrights` VALUES ('', '{$auth}', 'admin'); " ); } echo "<br>". " 权限初始化成功!";
2、进入数据库,找到表pwn_base_adminrights,看看user字段的值是不是admin,不是全部改成admin
3、进入后台查看是否生效
4、删除a.php