本文整理汇总了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';