2 Star 2 Fork 1

子弹兄 / lycms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
global.php 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
子弹兄 提交于 2014-10-20 01:04 . This is first update files
<?php
error_reporting(0);
include_once ('./configs/config.php');
include_once ('./common/smarty/Smarty.class.php');
include_once ('./common/mysql.class.php');
include_once ('./common/action.class.php');
include_once ('./common/page.class.php');
include_once ('./common/page2.class.php');
$db = new action($mydbhost, $mydbuser, $mydbpw, $mydbname, ALL_PS, $mydbcharset);
//********smarty**********
$smarty = new smarty();
//前台smarty
$smarty->template_dir = $smarty_template_dir;
$smarty->compile_dir = $smarty_compile_dir;
$smarty->config_dir = $smarty_config_dir;
$smarty->cache_dir = $smarty_cache_dir;
$smarty->caching = $smarty_caching;
$smarty->left_delimiter = $smarty_delimiter[0]; //左边界符
$smarty->right_delimiter= $smarty_delimiter[1]; //右边界符
//模板
$smarty->assign("t_dir",$smarty_template_dir);
//全站配置
$res = $db->query("SELECT * FROM `n_config`");
while($row_config=$db->fetch_array()){
$sm_config[] = $row_config['values'];
}
$smarty->assign("website_name", $sm_config[0]); //网站名称
$smarty->assign("website_url", $sm_config[1]); //网站链接
$smarty->assign("website_keyword", $sm_config[2]); //网站关键字
$smarty->assign("website_description", $sm_config[3]); //网站描述
$smarty->assign("website_email", $sm_config[4]); //网站Email
$smarty->assign("website_tel", $sm_config[5]); //网站电话
$smarty->assign("website_qq", $sm_config[6]); //网站QQ
$smarty->assign("website_weibo", $sm_config[7]); //网站微博
?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/hongweizhiyuan/lycms.git
git@gitee.com:hongweizhiyuan/lycms.git
hongweizhiyuan
lycms
lycms
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891