代码拉取完成,页面将自动刷新
<?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]); //网站微博
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。