destoon采集论坛

 找回密码
 立即注册
查看: 101|回复: 0

请问一下谁 知道如何再添加一个自定义

[复制链接]

33

主题

46

回帖

369

积分

中级会员

Rank: 3Rank: 3

积分
369
发表于 2014-6-25 11:13:52 | 显示全部楼层 |阅读模式
RT

我想再添加一个首页用于绑定其它域名调用不同的内容

现在首页是    www.xxx.com/index.php  index.html    调用的模板是template/default/index.htm


我想实现成这样www.xxx.com/index2.php  index2.html    调用的模板是template/default/index2.htm

现在页面内容是调出来了但是不能生成静态文件```是不是还有地方要改啊!
index2.php[ol]
  •         if($DT['index2_html']) {
  •                 $html_file = $CFG['com_dir'] ? DT_ROOT.'/'.$DT['index2'].'.'.$DT['file_ext'] : DT_CACHE.'/index2.inc.html';
  •                 if(!is_file($html_file)) tohtml('index2');               
  •                 if(is_file($html_file)) exit(include($html_file));
  •         }
  •         $AREA or $AREA = cache_read('area.php');
  •         if($EXT['wap_enable']) $head_mobile = $EXT['wap_url'];
  •         $seo_title = $DT['seo_title'];
  •         $head_keywords = $DT['seo_keywords'];
  •         $head_description = $DT['seo_description'];
  •         if($city_template) {
  •                 include template($city_template, 'city');
  •         } else {               
  •                 include template('index2');
  •         }
  • }[/ol]复制代码
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|小黑屋|手机版|Archiver|destoon采集论坛

    GMT+8, 2025-11-24 09:52 , Processed in 0.014848 second(s), 20 queries .

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表