CMSware系统配置函数:修订间差异
来自站长百科
Ahbaybface(讨论 | 贡献) (新页面: <span style="border:1px solid #000; float:right; text-align:center; padding:6px;"><strong>导航:</strong>返回上一页</span> <div style="clear:both;"><...) |
Ahbaybface(讨论 | 贡献) 无编辑摘要 |
||
第25行: | 第25行: | ||
foreach($urls as $key=>$var) | foreach($urls as $key=>$var) | ||
{ | { | ||
$display_item .= "<font face=Webdings color=#ff8c00>8</font><a href='/publish/download.php?id=".$IndexID."&url=".$key."' target="_blank"> | $display_item .= "<font face=Webdings color=#ff8c00>8</font><a href='/publish/download.php?id=".$IndexID."&url=".$key."' target="_blank">下载地 | ||
址".$i."</a><br>"; | |||
$i++; | $i++; | ||
} | } |
2010年5月31日 (一) 16:56的最新版本
导航:返回上一页
系统的各类配置函数都放在{cmsware}/setting目录。可以在这里手工修改下载及采集等的各种配置
下载配置:
<?php include_once(SETTING_DIR."model.download.ini.php"); ?> [@download_parse($Download, $IndexID )] 可以通过修改{cmsware}/setting/model.download.ini.php进行高级配置 model.download.ini.php的内容: <?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 .= "<font face=Webdings color=#ff8c00>8</font><a href='/publish/download.php?id=".$IndexID."&url=".$key."' target="_blank">下载地 址".$i."</a><br>"; $i++; } return $display_item ; } ?> 注意:修改/publish/为你的[$PUBLISH_URL]来定位你的download.php,否则使用下载系统时会出现问题