skymvc/class/cls_smarty_php.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class smarty{
public $template_dir = '';//模版文件夹
public $cache_dir = '';//缓存文件夹
public $compile_dir = '';//编译文件夹
public $html_dir ='';//生成静态文件夹
public $html_file="";
public $_var;
public function __construct(){
}
public function goAssign($tpl_var, $value = ''){
if(get('ajax')){
C()->goALL("success",0,$tpl_var);
}else{
$this->assign($tpl_var,$value);
}
}
public function assign($tpl_var, $value = '')
{
if (is_array($tpl_var))
{
foreach ($tpl_var AS $key => $val)
{
if ($key != '')
{
$this->_var[$key] = $val;
}
}
}
else
{
if ($tpl_var != '')
{
$this->_var[$tpl_var] = $value;
}
}
}
public function display($filename, $cache_id = ''){
$out = $this->fetch($filename, $cache_id);
if(function_exists("shouQuanTpl")){
$out=shouQuanTpl($out);
}
if($this->html_file){
umkdir(dirname($this->html_file));
file_put_contents($this->html_file,$out);
}
echo $out;
}
public function html($htmlfile,$expire=3600){
$file=$this->html_dir."/".$htmlfile;
后面还有 43 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。