CMSware系统配置函数
查看全部词条命名空间:Main
导航:返回上一页
系统的各类配置函数都放在{cmsware}/setting目录。可以在这里手工修改下载及采集等的各种配置
下载配置:
include_once(SETTING_DIR."model.download.ini.php");
?>
[@download_parse($Download, $IndexID )]可以通过修改{cmsware}/setting/model.download.ini.php进行高级配置
model.download.ini.php的内容:
//$IndexID = $this->_tpl_vars['IndexID'];
function download_parse($str, $IndexID)
{
$str = str_replace("\r\n", "\n", $str);
$str = str_replace("\r", "\n", $str);$urls = explode("\n", $str);
$i = 1;
foreach($urls as $key=>$var)
{
$display_item .= "8下载地
址".$i."
";
$i++;
}return $display_item ;
}
?>注意:修改/publish/为你的[$PUBLISH_URL]来定位你的download.php,否则使用下载系统时会出现问题