-
貂绒大衣服装设计类网站...
-
物流快运速递类网站织梦...
-
仪器分析仪类网站织梦模...
-
食品百货英文外贸类网站...
-
人力资源管理类网站织梦...
-
精工机械轴承生产厂家类...
-
电脑系统软件下载类网站...
-
水利工程施工类网站织梦...
-
蔬菜鲜果配送类网站织梦...
-
电子元件电路板类网站织...
-
中英双语律师事务所类网...
-
手游APP软件下载类网站织...
-
仪器仪表科技公司类网站...
-
网站模板资源下载类网站...
-
玩具动漫类网站织梦模板...
-
装饰建材公司类网站织梦...
-
钢结构岗亭营销型织梦网...
-
财税记账工商注册认证类...
-
展览展会信息类网站织梦...
-
营销型无缝钢管定制生产...
最新的织梦版本(2018-01-09)修改了include文件夹中的common.func.php,增加了两个函数。
下载的模板文件夹中如果提供了common.func.php文件,很有可能没有这两个函数,于是会造成错误。
需要将这两个函数的代码粘贴到/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;}