當前位置: 首頁>>代碼示例>>PHP>>正文


PHP smarty::get_install方法代碼示例

本文整理匯總了PHP中smarty::get_install方法的典型用法代碼示例。如果您正苦於以下問題:PHP smarty::get_install方法的具體用法?PHP smarty::get_install怎麽用?PHP smarty::get_install使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在smarty的用法示例。


在下文中一共展示了smarty::get_install方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: time

include CONFIG_PATH . 'db.config.php';
include_once PLUS_PATH . 'config.php';
include CONFIG_PATH . 'db.safety.php';
$starttime = time();
define('DEF_DATA', $db_config['def']);
unset($_ENV, $HTTP_ENV_VARS, $_REQUEST, $HTTP_POST_VARS, $HTTP_GET_VARS);
$_COOKIE = is_array($_COOKIE) ? $_COOKIE : $HTTP_COOKIE_VARS;
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
header('Content-Type: text/html; charset=' . $db_config['charset']);
header("Cache-control: private");
@ob_start('ob_gzhandler');
date_default_timezone_set($db_config['timezone']);
include_once LIB_PATH . "mysql.class.php";
include_once LIB_PATH . 'libs/Smarty.class.php';
$phpyun = new smarty();
$phpyun->debugging = false;
$phpyun->caching = false;
$phpyun->force_cache = true;
$phpyun->template_dir = TPL_PATH;
$phpyun->compile_dir = DATA_PATH . '/templates_c/';
$phpyun->left_delimiter = '{yun:}';
$phpyun->right_delimiter = '{/yun}';
$phpyun->get_install();
if (is_file(LIB_PATH . 'webscan360/360safe/360webscan.php')) {
    require_once LIB_PATH . 'webscan360/360safe/360webscan.php';
}
$db = new mysql($db_config['dbhost'], $db_config['dbuser'], $db_config['dbpass'], $db_config['dbname'], ALL_PS, $db_config['charset'], $db_config['def']);
include_once LIB_PATH . 'public.function.php';
include LIB_PATH . 'public.url.php';
include_once LIB_PATH . 'public.domain.php';
include PLUS_PATH . 'seo.cache.php';
開發者ID:justinyaoqi,項目名稱:qyhr,代碼行數:31,代碼來源:global.php


注:本文中的smarty::get_install方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。