Merge pull request !104 from test_discuz/master
This commit is contained in:
commit
e74d9e3699
|
@ -2026,7 +2026,7 @@ function check_diy_perm($topic = array(), $flag = '') {
|
|||
function strhash($string, $operation = 'DECODE', $key = '') {
|
||||
$key = md5($key != '' ? $key : getglobal('authkey'));
|
||||
if($operation == 'DECODE') {
|
||||
$hashcode = gzuncompress(base64_decode(($string)));
|
||||
$hashcode = gzuncompress(base64_decode($string));
|
||||
$string = substr($hashcode, 0, -16);
|
||||
$hash = substr($hashcode, -16);
|
||||
unset($hashcode);
|
||||
|
|
|
@ -80,8 +80,6 @@ function dshowmessage($message, $url_forward = '', $values = array(), $extrapara
|
|||
if(!empty($_G['inajax'])) {
|
||||
$handlekey = $_GET['handlekey'] = !empty($_GET['handlekey']) ? dhtmlspecialchars($_GET['handlekey']) : '';
|
||||
$param['handle'] = true;
|
||||
}
|
||||
if(!empty($_G['inajax'])) {
|
||||
$param['msgtype'] = empty($_GET['ajaxmenu']) && (empty($_POST) || !empty($_GET['nopost'])) ? 2 : 3;
|
||||
}
|
||||
if($url_forward) {
|
||||
|
|
Loading…
Reference in New Issue