Ec (2); Modify dedecms dream system to generate static page column cache file path because dedecms generates channel columns, a temporary mkall_cache _ {adminid} will be generated }. php tutorial files, which may have some impact on website security. In particular, I want to restrict my entire website from uploading php and js files. For convenience, today, I will share with you the modification process records. On the homepage, we find the background management of dedecms & nbsp. By default, it is in de script ec (2); script
Modify dedecms dream system to generate static page column cache file path
Because dedecms generates a channel column, a temporary mkall_cache _ {adminid} is generated }. php tutorial files, which may have some impact on website security. In particular, I want to restrict my entire website from uploading php and js files. For convenience, today, I will share with you the modification process records.
On the homepage, we find the background management of dedecms, which is in the dede/directory by default.
Find the file:
Makehtml_all.php
Locate 73 rows,
Set
// $ Mkcachefile = DEDEROOT. "/data/mkall_cache _ {$ adminID}. php ";
Change to your off-site directory, as shown in figure
$ Mkcachefile = "s:/s/data/mkall_cache _ {$ adminID}. php ";
This is to write the cached file, that is, to save your updated directory ID to an array.
Find Row 3
// $ Mkcachefile = DEDEDATA. "/mkall_cache _ {$ adminID}. php ";
$ Mkcachefile = "s:/s/data/mkall_cache _ {$ adminID}. php ";
Okay, save the file, and we will find it at the moment.
Makehtml_list_action.php
Find row 37th
// $ Mkcachefile = DEDEROOT. "/data/mkall_cache _ {$ adminID}. php ";
$ Mkcachefile = "s:/s/data/mkall_cache _ {$ adminID}. php ";
Save and upload.
This article was originally reproduced on www.111cn.net and indicated the source