Home > CMS Tutorial > DEDECMS > body text

How to modify the default image upload path in DEDECMS V5.3/V5.5

藏色散人
Release: 2019-12-18 10:20:08
Original
2139 people have browsed it

How to modify the default image upload path in DEDECMS V5.3/V5.5

How to modify the default image upload path in DEDCMS V5.3/V5.5?

Sometimes due to certain needs, the default upload path needs to be modified. You can refer to the modification method below.

Recommended study: Dreamweavercms

All configuration files are in the include/common.inc.php file.

The code is as follows:

//模板的存放目录 
$cfg_templets_dir = $cfg_cmspath.'/templets'; 
$cfg_templeturl = $cfg_mainsite.$cfg_templets_dir; 
//cms安装目录的网址 
$cfg_cmsurl = $cfg_mainsite.$cfg_cmspath; 
//插件目录,这个目录是用于存放计数器、投票、评论等程序的必要动态程序 
$cfg_plus_dir = $cfg_cmspath.'/plus'; 
$cfg_phpurl = $cfg_mainsite.$cfg_plus_dir; 
$cfg_data_dir = $cfg_cmspath.'/data'; 
$cfg_dataurl = $cfg_mainsite.$cfg_data_dir; 
//会员目录 
$cfg_member_dir = $cfg_cmspath.'/member'; 
$cfg_memberurl = $cfg_mainsite.$cfg_member_dir; 
//专题列表的存放路径 
$cfg_special = $cfg_cmspath.'/special'; 
$cfg_specialurl = $cfg_mainsite.$cfg_special; 
//附件目录 
$cfg_medias_dir = $cfg_cmspath.$cfg_medias_dir; 
$cfg_mediasurl = $cfg_mainsite.$cfg_medias_dir; 
//上传的普通图片的路径,建议按默认 
$cfg_image_dir = $cfg_medias_dir.'/allimg'; 
//上传的缩略图 
$ddcfg_image_dir = $cfg_medias_dir.'/litimg'; 
//用户投稿图片存放目录 
$cfg_user_dir = $cfg_medias_dir.'/userup'; 
//上传的软件目录 
$cfg_soft_dir = $cfg_medias_dir.'/soft'; 
//上传的多媒体文件目录 
$cfg_other_medias = $cfg_medias_dir.'/media';
Copy after login

The above is the detailed content of How to modify the default image upload path in DEDECMS V5.3/V5.5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!