smarty.php
来自「asterisk用 的voip记费软件」· PHP 代码 · 共 71 行
PHP
71 行
<?phperror_reporting(E_ALL ^ (E_NOTICE | E_WARNING));include (dirname(__FILE__)."/company_info.php");define( 'FULL_PATH', dirname(__FILE__) . '/' );define( 'SMARTY_DIR', FULL_PATH . '/Smarty/' );define( 'TEMPLATE_DIR', './templates/' );define( 'TEMPLATE_C_DIR', './templates_c/' );require_once SMARTY_DIR . 'Smarty.class.php';$smarty = new Smarty;$skin_name = $_SESSION["stylefile"];//$smarty->template_dir = TEMPLATE_DIR . $skin_name.'/';$smarty->template_dir = TEMPLATE_DIR . $skin_name.'/';$smarty->compile_dir = TEMPLATE_C_DIR;$smarty->plugins_dir= "./plugins/";$smarty->assign("TEXTCONTACT", TEXTCONTACT);$smarty->assign("EMAILCONTACT", EMAILCONTACT);$smarty->assign("COPYRIGHT", COPYRIGHT);$smarty->assign("CCMAINTITLE", CCMAINTITLE);$smarty->assign("WEBUI_VERSION", WEBUI_VERSION);$smarty->assign("WEBUI_DATE", WEBUI_DATE);$smarty->assign("SIGNUPLINK", SIGNUP_LINK);if($exporttype != "" && $exporttype != "html"){ $smarty->assign("EXPORT", 1);}else{ $smarty->assign("EXPORT", 0);}if($_GET["section"]!=""){ $section = $_GET["section"]; $_SESSION["menu_section"] = $section;}else{ $section = $_SESSION["menu_section"];}$smarty->assign("section", $section);$smarty->assign("SKIN_NAME", $skin_name);// if it is a pop windowif (!is_numeric($popup_select)){ $popup_select=0;}// for menu$smarty->assign("popupwindow", $popup_select);// OPTION FOR THE MENU$smarty->assign("A2Bconfig", $A2B->config);$smarty->assign("PAGE_SELF", $PHP_SELF);?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?