KONTOLODON
/
var
/
www
/
ojs-3.3.0-13
/
lib
/
pkp
/
lib
/
vendor
/
smarty
/
smarty
/
libs
/
sysplugins
/
Nama File / Folder
Size
Action
smarty_cacheresource_custom.php
9.68KB
Hapus
Edit
Rename
smarty_cacheresource_keyvaluestore.php
17.237KB
Hapus
Edit
Rename
smarty_data.php
1.656KB
Hapus
Edit
Rename
smarty_internal_cacheresource_file.php
8.01KB
Hapus
Edit
Rename
smarty_internal_compile_append.php
1.749KB
Hapus
Edit
Rename
smarty_internal_compile_assign.php
3.336KB
Hapus
Edit
Rename
smarty_internal_compile_block.php
7.516KB
Hapus
Edit
Rename
smarty_internal_compile_block_child.php
0.474KB
Hapus
Edit
Rename
smarty_internal_compile_block_parent.php
0.569KB
Hapus
Edit
Rename
smarty_internal_compile_break.php
3.764KB
Hapus
Edit
Rename
smarty_internal_compile_call.php
2.803KB
Hapus
Edit
Rename
smarty_internal_compile_capture.php
3.548KB
Hapus
Edit
Rename
smarty_internal_compile_child.php
2.41KB
Hapus
Edit
Rename
smarty_internal_compile_config_load.php
2.665KB
Hapus
Edit
Rename
smarty_internal_compile_continue.php
0.427KB
Hapus
Edit
Rename
smarty_internal_compile_debug.php
1.058KB
Hapus
Edit
Rename
smarty_internal_compile_eval.php
1.847KB
Hapus
Edit
Rename
smarty_internal_compile_extends.php
5.276KB
Hapus
Edit
Rename
smarty_internal_compile_for.php
6.549KB
Hapus
Edit
Rename
smarty_internal_compile_foreach.php
11.453KB
Hapus
Edit
Rename
smarty_internal_compile_function.php
9.7KB
Hapus
Edit
Rename
smarty_internal_compile_if.php
8.107KB
Hapus
Edit
Rename
smarty_internal_compile_include.php
14.666KB
Hapus
Edit
Rename
smarty_internal_compile_include_php.php
3.481KB
Hapus
Edit
Rename
smarty_internal_compile_insert.php
5.883KB
Hapus
Edit
Rename
smarty_internal_compile_ldelim.php
1.028KB
Hapus
Edit
Rename
smarty_internal_compile_make_nocache.php
1.627KB
Hapus
Edit
Rename
smarty_internal_compile_nocache.php
2.088KB
Hapus
Edit
Rename
smarty_internal_compile_parent.php
0.552KB
Hapus
Edit
Rename
smarty_internal_compile_private_block_plugin.php
4.965KB
Hapus
Edit
Rename
smarty_internal_compile_private_foreachsection.php
6.911KB
Hapus
Edit
Rename
smarty_internal_compile_private_function_plugin.php
2.468KB
Hapus
Edit
Rename
smarty_internal_compile_private_modifier.php
7.855KB
Hapus
Edit
Rename
smarty_internal_compile_private_object_block_function.php
1.324KB
Hapus
Edit
Rename
smarty_internal_compile_private_object_function.php
3.125KB
Hapus
Edit
Rename
smarty_internal_compile_private_php.php
9.604KB
Hapus
Edit
Rename
smarty_internal_compile_private_print_expression.php
6.526KB
Hapus
Edit
Rename
smarty_internal_compile_private_registered_block.php
2.911KB
Hapus
Edit
Rename
smarty_internal_compile_private_registered_function.php
3.357KB
Hapus
Edit
Rename
smarty_internal_compile_private_special_variable.php
5.689KB
Hapus
Edit
Rename
smarty_internal_compile_rdelim.php
0.881KB
Hapus
Edit
Rename
smarty_internal_compile_section.php
17.966KB
Hapus
Edit
Rename
smarty_internal_compile_setfilter.php
2.131KB
Hapus
Edit
Rename
smarty_internal_compile_shared_inheritance.php
1.755KB
Hapus
Edit
Rename
smarty_internal_compile_while.php
3.732KB
Hapus
Edit
Rename
smarty_internal_compilebase.php
6.932KB
Hapus
Edit
Rename
smarty_internal_config_file_compiler.php
6.395KB
Hapus
Edit
Rename
smarty_internal_configfilelexer.php
24.264KB
Hapus
Edit
Rename
smarty_internal_configfileparser.php
33.828KB
Hapus
Edit
Rename
smarty_internal_errorhandler.php
4.233KB
Hapus
Edit
Rename
smarty_internal_extension_handler.php
8.018KB
Hapus
Edit
Rename
smarty_internal_method_addautoloadfilters.php
2.17KB
Hapus
Edit
Rename
smarty_internal_method_adddefaultmodifiers.php
1.137KB
Hapus
Edit
Rename
smarty_internal_method_append.php
2.8KB
Hapus
Edit
Rename
smarty_internal_method_appendbyref.php
1.759KB
Hapus
Edit
Rename
smarty_internal_method_assignbyref.php
1.246KB
Hapus
Edit
Rename
smarty_internal_method_assignglobal.php
1.375KB
Hapus
Edit
Rename
smarty_internal_method_clearallassign.php
0.76KB
Hapus
Edit
Rename
smarty_internal_method_clearallcache.php
0.971KB
Hapus
Edit
Rename
smarty_internal_method_clearassign.php
1.048KB
Hapus
Edit
Rename
smarty_internal_method_clearcache.php
1.255KB
Hapus
Edit
Rename
smarty_internal_method_clearcompiledtemplate.php
5.523KB
Hapus
Edit
Rename
smarty_internal_method_clearconfig.php
0.954KB
Hapus
Edit
Rename
smarty_internal_method_compileallconfig.php
0.941KB
Hapus
Edit
Rename
smarty_internal_method_compilealltemplates.php
4.537KB
Hapus
Edit
Rename
smarty_internal_method_configload.php
7.126KB
Hapus
Edit
Rename
smarty_internal_method_createdata.php
1.299KB
Hapus
Edit
Rename
smarty_internal_method_getautoloadfilters.php
1.321KB
Hapus
Edit
Rename
smarty_internal_method_getconfigvariable.php
0.897KB
Hapus
Edit
Rename
smarty_internal_method_getconfigvars.php
1.595KB
Hapus
Edit
Rename
smarty_internal_method_getdebugtemplate.php
0.692KB
Hapus
Edit
Rename
smarty_internal_method_getdefaultmodifiers.php
0.728KB
Hapus
Edit
Rename
smarty_internal_method_getglobal.php
1.086KB
Hapus
Edit
Rename
smarty_internal_method_getregisteredobject.php
1.313KB
Hapus
Edit
Rename
smarty_internal_method_getstreamvariable.php
1.239KB
Hapus
Edit
Rename
smarty_internal_method_gettags.php
2.023KB
Hapus
Edit
Rename
smarty_internal_method_gettemplatevars.php
3.927KB
Hapus
Edit
Rename
smarty_internal_method_literals.php
2.978KB
Hapus
Edit
Rename
smarty_internal_method_loadfilter.php
2.121KB
Hapus
Edit
Rename
smarty_internal_method_loadplugin.php
4.146KB
Hapus
Edit
Rename
smarty_internal_method_mustcompile.php
1.728KB
Hapus
Edit
Rename
smarty_internal_method_registercacheresource.php
1.15KB
Hapus
Edit
Rename
smarty_internal_method_registerclass.php
1.394KB
Hapus
Edit
Rename
smarty_internal_method_registerdefaultconfighandler.php
1.147KB
Hapus
Edit
Rename
smarty_internal_method_registerdefaultpluginhandler.php
1.244KB
Hapus
Edit
Rename
smarty_internal_method_registerdefaulttemplatehandler.php
2.944KB
Hapus
Edit
Rename
smarty_internal_method_registerfilter.php
2.438KB
Hapus
Edit
Rename
smarty_internal_method_registerobject.php
3.98KB
Hapus
Edit
Rename
smarty_internal_method_registerplugin.php
2.166KB
Hapus
Edit
Rename
smarty_internal_method_registerresource.php
1.818KB
Hapus
Edit
Rename
smarty_internal_method_setautoloadfilters.php
2.225KB
Hapus
Edit
Rename
smarty_internal_method_setdebugtemplate.php
0.999KB
Hapus
Edit
Rename
smarty_internal_method_setdefaultmodifiers.php
0.984KB
Hapus
Edit
Rename
smarty_internal_method_unloadfilter.php
1.406KB
Hapus
Edit
Rename
smarty_internal_method_unregistercacheresource.php
1.049KB
Hapus
Edit
Rename
smarty_internal_method_unregisterfilter.php
1.437KB
Hapus
Edit
Rename
smarty_internal_method_unregisterobject.php
1.034KB
Hapus
Edit
Rename
smarty_internal_method_unregisterplugin.php
1.131KB
Hapus
Edit
Rename
smarty_internal_method_unregisterresource.php
1.029KB
Hapus
Edit
Rename
smarty_internal_nocache_insert.php
1.69KB
Hapus
Edit
Rename
smarty_internal_parsetree.php
0.886KB
Hapus
Edit
Rename
smarty_internal_parsetree_code.php
0.868KB
Hapus
Edit
Rename
smarty_internal_parsetree_dq.php
3.237KB
Hapus
Edit
Rename
smarty_internal_parsetree_dqcontent.php
0.908KB
Hapus
Edit
Rename
smarty_internal_parsetree_tag.php
1.734KB
Hapus
Edit
Rename
smarty_internal_parsetree_template.php
4.612KB
Hapus
Edit
Rename
smarty_internal_parsetree_text.php
1.249KB
Hapus
Edit
Rename
smarty_internal_resource_eval.php
2.722KB
Hapus
Edit
Rename
smarty_internal_resource_extends.php
3.641KB
Hapus
Edit
Rename
smarty_internal_resource_file.php
6.619KB
Hapus
Edit
Rename
smarty_internal_resource_php.php
3.518KB
Hapus
Edit
Rename
smarty_internal_resource_registered.php
3.124KB
Hapus
Edit
Rename
smarty_internal_resource_stream.php
2.339KB
Hapus
Edit
Rename
smarty_internal_resource_string.php
3.001KB
Hapus
Edit
Rename
smarty_internal_runtime_cachemodify.php
2.532KB
Hapus
Edit
Rename
smarty_internal_runtime_cacheresourcefile.php
5.729KB
Hapus
Edit
Rename
smarty_internal_runtime_capture.php
4.089KB
Hapus
Edit
Rename
smarty_internal_runtime_codeframe.php
3.993KB
Hapus
Edit
Rename
smarty_internal_runtime_filterhandler.php
2.907KB
Hapus
Edit
Rename
smarty_internal_runtime_foreach.php
5.349KB
Hapus
Edit
Rename
smarty_internal_runtime_getincludepath.php
4.894KB
Hapus
Edit
Rename
smarty_internal_runtime_inheritance.php
8.173KB
Hapus
Edit
Rename
smarty_internal_runtime_make_nocache.php
2.021KB
Hapus
Edit
Rename
smarty_internal_runtime_tplfunction.php
7.404KB
Hapus
Edit
Rename
smarty_internal_runtime_updatecache.php
6.472KB
Hapus
Edit
Rename
smarty_internal_runtime_updatescope.php
3.86KB
Hapus
Edit
Rename
smarty_internal_runtime_writefile.php
3.387KB
Hapus
Edit
Rename
smarty_internal_smartytemplatecompiler.php
5.493KB
Hapus
Edit
Rename
smarty_internal_template.php
25.317KB
Hapus
Edit
Rename
smarty_internal_templatebase.php
13.61KB
Hapus
Edit
Rename
smarty_internal_templatecompilerbase.php
58.309KB
Hapus
Edit
Rename
smarty_internal_templatelexer.php
35.54KB
Hapus
Edit
Rename
smarty_internal_templateparser.php
134.648KB
Hapus
Edit
Rename
smarty_internal_testinstall.php
31.293KB
Hapus
Edit
Rename
smarty_internal_undefined.php
1.659KB
Hapus
Edit
Rename
smarty_resource_recompiled.php
2.338KB
Hapus
Edit
Rename
smarty_resource_uncompiled.php
1.387KB
Hapus
Edit
Rename
smarty_template_compiled.php
9.239KB
Hapus
Edit
Rename
smarty_template_resource_base.php
3.409KB
Hapus
Edit
Rename
smarty_undefined_variable.php
0.554KB
Hapus
Edit
Rename
<?php /** * Smarty Resource Data Object * Meta Data Container for Template Files * * @package Smarty * @subpackage TemplateResources * @author Rodney Rehm * @property string $content compiled content */ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base { /** * nocache hash * * @var string|null */ public $nocache_hash = null; /** * get a Compiled Object of this source * * @param Smarty_Internal_Template $_template template object * * @return Smarty_Template_Compiled compiled object */ public static function load($_template) { $compiled = new Smarty_Template_Compiled(); if ($_template->source->handler->hasCompiledHandler) { $_template->source->handler->populateCompiledFilepath($compiled, $_template); } else { $compiled->populateCompiledFilepath($_template); } return $compiled; } /** * populate Compiled Object with compiled filepath * * @param Smarty_Internal_Template $_template template object **/ public function populateCompiledFilepath(Smarty_Internal_Template $_template) { $source = &$_template->source; $smarty = &$_template->smarty; $this->filepath = $smarty->getCompileDir(); if (isset($_template->compile_id)) { $this->filepath .= preg_replace('![^\w]+!', '_', $_template->compile_id) . ($smarty->use_sub_dirs ? DIRECTORY_SEPARATOR : '^'); } // if use_sub_dirs, break file into directories if ($smarty->use_sub_dirs) { $this->filepath .= $source->uid[ 0 ] . $source->uid[ 1 ] . DIRECTORY_SEPARATOR . $source->uid[ 2 ] . $source->uid[ 3 ] . DIRECTORY_SEPARATOR . $source->uid[ 4 ] . $source->uid[ 5 ] . DIRECTORY_SEPARATOR; } $this->filepath .= $source->uid . '_'; if ($source->isConfig) { $this->filepath .= (int)$smarty->config_read_hidden + (int)$smarty->config_booleanize * 2 + (int)$smarty->config_overwrite * 4; } else { $this->filepath .= (int)$smarty->merge_compiled_includes + (int)$smarty->escape_html * 2 + (($smarty->merge_compiled_includes && $source->type === 'extends') ? (int)$smarty->extends_recursion * 4 : 0); } $this->filepath .= '.' . $source->type; $basename = $source->handler->getBasename($source); if (!empty($basename)) { $this->filepath .= '.' . $basename; } if ($_template->caching) { $this->filepath .= '.cache'; } $this->filepath .= '.php'; $this->timestamp = $this->exists = is_file($this->filepath); if ($this->exists) { $this->timestamp = filemtime($this->filepath); } } /** * render compiled template code * * @param Smarty_Internal_Template $_template * * @return string * @throws Exception */ public function render(Smarty_Internal_Template $_template) { // checks if template exists if (!$_template->source->exists) { $type = $_template->source->isConfig ? 'config' : 'template'; throw new SmartyException("Unable to load {$type} '{$_template->source->type}:{$_template->source->name}'"); } if ($_template->smarty->debugging) { if (!isset($_template->smarty->_debug)) { $_template->smarty->_debug = new Smarty_Internal_Debug(); } $_template->smarty->_debug->start_render($_template); } if (!$this->processed) { $this->process($_template); } if (isset($_template->cached)) { $_template->cached->file_dependency = array_merge($_template->cached->file_dependency, $this->file_dependency); } if ($_template->source->handler->uncompiled) { $_template->source->handler->renderUncompiled($_template->source, $_template); } else { $this->getRenderedTemplateCode($_template); } if ($_template->caching && $this->has_nocache_code) { $_template->cached->hashes[ $this->nocache_hash ] = true; } if ($_template->smarty->debugging) { $_template->smarty->_debug->end_render($_template); } } /** * load compiled template or compile from source * * @param Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template * * @throws Exception */ public function process(Smarty_Internal_Template $_smarty_tpl) { $source = &$_smarty_tpl->source; $smarty = &$_smarty_tpl->smarty; if ($source->handler->recompiled) { $source->handler->process($_smarty_tpl); } elseif (!$source->handler->uncompiled) { if (!$this->exists || $smarty->force_compile || ($_smarty_tpl->compile_check && $source->getTimeStamp() > $this->getTimeStamp()) ) { $this->compileTemplateSource($_smarty_tpl); $compileCheck = $_smarty_tpl->compile_check; $_smarty_tpl->compile_check = Smarty::COMPILECHECK_OFF; $this->loadCompiledTemplate($_smarty_tpl); $_smarty_tpl->compile_check = $compileCheck; } else { $_smarty_tpl->mustCompile = true; @include $this->filepath; if ($_smarty_tpl->mustCompile) { $this->compileTemplateSource($_smarty_tpl); $compileCheck = $_smarty_tpl->compile_check; $_smarty_tpl->compile_check = Smarty::COMPILECHECK_OFF; $this->loadCompiledTemplate($_smarty_tpl); $_smarty_tpl->compile_check = $compileCheck; } } $_smarty_tpl->_subTemplateRegister(); $this->processed = true; } } /** * compile template from source * * @param Smarty_Internal_Template $_template * * @throws Exception */ public function compileTemplateSource(Smarty_Internal_Template $_template) { $this->file_dependency = array(); $this->includes = array(); $this->nocache_hash = null; $this->unifunc = null; // compile locking if ($saved_timestamp = (!$_template->source->handler->recompiled && is_file($this->filepath))) { $saved_timestamp = $this->getTimeStamp(); touch($this->filepath); } // compile locking try { // call compiler $_template->loadCompiler(); $this->write($_template, $_template->compiler->compileTemplate($_template)); } catch (Exception $e) { // restore old timestamp in case of error if ($saved_timestamp && is_file($this->filepath)) { touch($this->filepath, $saved_timestamp); } unset($_template->compiler); throw $e; } // release compiler object to free memory unset($_template->compiler); } /** * Write compiled code by handler * * @param Smarty_Internal_Template $_template template object * @param string $code compiled code * * @return bool success * @throws \SmartyException */ public function write(Smarty_Internal_Template $_template, $code) { if (!$_template->source->handler->recompiled) { if ($_template->smarty->ext->_writeFile->writeFile($this->filepath, $code, $_template->smarty) === true) { $this->timestamp = $this->exists = is_file($this->filepath); if ($this->exists) { $this->timestamp = filemtime($this->filepath); return true; } } return false; } return true; } /** * Read compiled content from handler * * @param Smarty_Internal_Template $_template template object * * @return string content */ public function read(Smarty_Internal_Template $_template) { if (!$_template->source->handler->recompiled) { return file_get_contents($this->filepath); } return isset($this->content) ? $this->content : false; } /** * Load fresh compiled template by including the PHP file * HHVM requires a work around because of a PHP incompatibility * * @param \Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template */ private function loadCompiledTemplate(Smarty_Internal_Template $_smarty_tpl) { if (function_exists('opcache_invalidate') && (!function_exists('ini_get') || strlen(ini_get("opcache.restrict_api")) < 1) ) { opcache_invalidate($this->filepath, true); } elseif (function_exists('apc_compile_file')) { apc_compile_file($this->filepath); } if (defined('HHVM_VERSION')) { eval('?>' . file_get_contents($this->filepath)); } else { include $this->filepath; } } }