discuz! x 1.5 formhash值的调整
function formhash($specialadd = ”) {
global $_G;
$hashadd = defined(‘IN_ADMINCP’) ? ‘Only For Discuz! Admin Control Panel’ : ”;
return substr(md5(substr($_G[‘timestamp’], 0, -7).$_G[‘username’].$_G[‘uid’].$_G[‘authkey’].$hashadd.$specialadd), 8, 8);
}
转载请注明:苏demo的别样人生 » discuz !x1.5 formhash取值方式