-
貂絨大衣服裝設(shè)計類網(wǎng)站...
-
物流快運速遞類網(wǎng)站織夢...
-
儀器分析儀類網(wǎng)站織夢模...
-
食品百貨英文外貿(mào)類網(wǎng)站...
-
人力資源管理類網(wǎng)站織夢...
-
精工機械軸承生產(chǎn)廠家類...
-
電腦系統(tǒng)軟件下載類網(wǎng)站...
-
水利工程施工類網(wǎng)站織夢...
-
蔬菜鮮果配送類網(wǎng)站織夢...
-
電子元件電路板類網(wǎng)站織...
-
中英雙語律師事務(wù)所類網(wǎng)...
-
手游APP軟件下載類網(wǎng)站織...
-
儀器儀表科技公司類網(wǎng)站...
-
網(wǎng)站模板資源下載類網(wǎng)站...
-
玩具動漫類網(wǎng)站織夢模板...
-
裝飾建材公司類網(wǎng)站織夢...
-
鋼結(jié)構(gòu)崗?fù)I銷型織夢網(wǎng)...
-
財稅記賬工商注冊認(rèn)證類...
-
展覽展會信息類網(wǎng)站織夢...
-
營銷型無縫鋼管定制生產(chǎn)...
最新的織夢版本(2018-01-09)修改了include文件夾中的common.func.php,增加了兩個函數(shù)。
下載的模板文件夾中如果提供了common.func.php文件,很有可能沒有這兩個函數(shù),于是會造成錯誤。
需要將這兩個函數(shù)的代碼粘貼到/include/common.func.php文件中,代碼如下:
function make_hash(){$rand = dede_random_bytes(16);$_SESSION['token'] = ($rand === FALSE)? md5(uniqid(mt_rand(), TRUE)): bin2hex($rand);return $_SESSION['token'];}function dede_random_bytes($length){if (empty($length) OR ! ctype_digit((string) $length)){return FALSE;}if (function_exists('random_bytes')){try{return random_bytes((int) $length);}catch (Exception $e){return FALSE;}}if (defined('MCRYPT_DEV_URANDOM') && ($output = mcrypt_create_iv($length, MCRYPT_DEV_URANDOM)) !== FALSE){return $output;}if (is_readable('/dev/urandom') && ($fp = fopen('/dev/urandom', 'rb')) !== FALSE){is_php('5.4') && stream_set_chunk_size($fp, $length);$output = fread($fp, $length);fclose($fp);if ($output !== FALSE){return $output;}}if (function_exists('openssl_random_pseudo_bytes')){return openssl_random_pseudo_bytes($length);}return FALSE;}