Слияние кода завершено, страница обновится автоматически
<?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]); //网站微博
?>
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )