V7做中英文切换思路
原创作者:飞将军
思路一:可以用万能文章做英文频道
思路二:用两个整站系统
思路三:
中文用 index.php 英文用main.php 可以建立一个main.php
<?php
require(dirname(__FILE__)."/global.php");
$titleDB[title]="$webdb[en_webname]";
$titleDB[keywords] = "$webdb[en_metakeywords]";
$titleDB[description] = "$webdb[en_description]";
$head_tpl = $foot_tpl = $index_tpl = '';
$chdb[main_tpl] = html('enindex',$index_tpl);
$ch_fid = $ch_module = 0;
$ch_pagetype = 8;
$ch = 0;
require(ROOT_PATH."inc/label_module.php");
require(html("enhead",$head_tpl));
require(html('enindex',$index_tpl));
require(html("enfoot",$foot_tpl));
?>
模板目录 建立一个 enhead.htm enfoot.htm enindex.htm
|
点击率:1364
|
|