asterisk用 的voip记费软件
源代码在线查看: smarty.php
error_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 window if (!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); ?>