discuz x3.3 background admin.php prevent direct malicious access

   Function: admin.php is the default background discuz address, under normal circumstances can be accessed directly, in order to prevent some malicious access, you can modify the following safety performance. Applicable version:! Discuz x1-x3.3 specific embodiments:

  admin.php found:

  

$discuz->init();

  After wrapping, add the following code on it

   

if(!$_G['uid'] || !getstatus($_G['member']['allowadmincp'], 1)) {
header('Location: /');
}

  If all non-administrator users return to the site root directory.

Guess you like

Origin www.cnblogs.com/68xi/p/11582733.html