Modify dedecms zhimeng system to generate static page column cache file path-PHP source code

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.