-
灶具电器设备类网站织梦...
-
企业公司行业通用类网站...
-
农业机械设备类网站织梦...
-
水上乐园设备类网站织梦...
-
汽车配件类网站织梦模板...
-
园林绿化景观建设类网站...
-
车辆机油工业润滑油类网...
-
LED显示屏中英双外贸类网...
-
道路护栏交通设施类网站...
-
园林景观设计类网站织梦...
-
新媒体自媒体运营资讯类...
-
潮流资讯信息类网站织梦...
-
办公学习教程资讯类网站...
-
环保设备研发制造类网站...
-
摄影拍摄短视频类网站织...
-
网站建设营销类网站织梦...
-
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;}




