很久没有更新百科系统程序了,应该有几个月了,今天就接着之前的更新内容,继续发布,本章节是单语言/多语言仿百度HDwiki百科网站源码开发 第五篇。
程序源码:不加密,开源
程序开源:PHP+MySQL+thinkPHP框架
程序演示:http://baike.yetukeji.cn, 账户18127950266 ,密码qq2360248666
先上几张效果图先
这个是手机版
这部分是代码区
<?php
namespace app\index\controller;
use app\Base;
use think\App;
use think\facade\Cache;
use think\Request;
use think\facade\View;
use think\facade\Db;
class Common extends Base
{
public function __construct()
{
parent::__construct();
$this->loading_language();
$this->personal_nav();
}
//设置默认语言
function loading_language(){
if(cookie('lang')