找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 262|回复: 0

[cms教程] 织梦dedecms出现系统基本参数空白怎么办

[复制链接]

该用户从未签到

发表于 2021-5-18 10:08:28 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

×
   
织梦dedecms出现系统基本参数空白或显示Call to undefined function make_hash() 最新的织梦版本(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 ...

   
内容已隐藏,请关注公众号输入验证码查看

               
验证码 

  

本帖支持关注公众号查看

【无套路  无套路  无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】

回复

使用道具 举报

网站地图|页面地图|Archiver|手机版|小黑屋|找资源 |网站地图

GMT+8, 2025-5-3 03:28

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表