Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of solving the Blank of basic parameters of Weaving Dream dedecms system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method to solve the blank of the basic parameters of the Weaving Dream dedecms system, which is very detailed and has a certain reference value. Interested friends must read it!

Dream weaving dedecms appears the basic parameters of the system blank how to do?

Dream weaving dedecms appears the basic parameters of the system blank or displays Call to undefined function make_hash ()

Recommended study: dream weaving cms

The latest version of Dream Weaving (2018-01-09) modifies common.func.php in the include folder by adding two functions.

If the common.func.php file is provided in the downloaded template folder, it is very likely that these two functions are not available, resulting in an error.

You need to paste the code for these two functions into the / include/common.func.php file, as follows:

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;}

Paste the above code into the

/ * *

* load the assistant. The system loads the helper by default.

Just at the top of this code.

These are all the contents of the method to solve the blank of the basic parameters of the system in Weaving Dream dedecms. Thank you for your reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report