⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smartyinit.php

📁 flashget43的源代码 一个比较常用的下载程序
💻 PHP
字号:
<?php

define("SMARTY_DIR", dirname(__FILE__) . "/smarty/");// prevent redefine Smarty from CMS

include_once(dirname(__FILE__).'/common.php');

if( ! class_exists('Smarty')  )
{
	include_once(INC_DIR . 'smarty/Smarty.class.php');
}

$smarty = new Smarty;

//smarty config
$smarty->compile_check = true;
$smarty->debugging     = false;
$smarty->caching 	   = false;
//$smarty->force_compile = true;
$smarty->cache_dir     = INC_DIR . '../templates/cache';
$smarty->template_dir  = INC_DIR . '../templates';
$smarty->compile_dir   = INC_DIR . '../templates/templates_c';

$smarty->assign('rand',rand());

if( ! headers_sent() )
{
	header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-store, no-cache, must-revalidate");
	header("Cache-Control: post-check=0, pre-check=0", false);
	header("Pragma: no-cache");
}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -