Last article,
"PHP7 use Dedecms, weaving dream dedecsm a blank solution in the background"
Dedecms a part of the pit in the PHP7,
Today I met a big pit ' dedecms ' backstage,
Click on the Content Maintenance after a blank,
There's nothing.
The online approach is ineffective.
After that, you open the Nginx error log,
To see where the error occurred,
To change the error over.
The customer is using dedecms5.7 SP1,
dede/content_list.php,
About 145 lines.
$optHash = MD5 ($cid. $admin _catalogs. $channelid);
$admin _catalogs is an array,
Used directly as a string in the source code.
Looking at the latest Dedecms 5.7 SP2,
It seems like it's still used,
No in-depth analysis.
Since the site was moved over,
Data/tplcache/content_list_xxxx.inc
In this cache file,
<?php if () {?>
<input type= ' button ' class= ' COOLBG np ' onclick= ' location= ' content_list.php?cid=<?php echo $GLOBALS [' CID '];? >&mid=0 '; ' value= ' All documents '/>
<?php
}
else{
?>
About 26 Lines,
If the condition is a null error,
result in a blank.
Way to solve
<?php if (1) {?>
<input type= ' button ' class= ' COOLBG np ' onclick= ' location= ' content_list.php?cid=<?php echo $GLOBALS [' CID '];? >&mid=0 '; ' value= ' All documents '/>
<?php
}
else{
?>
Fill in the expression ' 1 ',
Indicates that all is displayed.
Using this word,
You cannot display articles based on categories.
Dedecms in the PHP7 under the pit too much,
There's no analysis,
You'll have to use it first.