Home  >  Article  >  CMS Tutorial  >  How to modify the default image upload path in DEDECMS V5.3/V5.5

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

藏色散人
藏色散人Original
2019-12-18 10:20:082110browse

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

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!

Statement:
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