/
home
/
techb158
/
exp.abdallabala.com
/
vendor
/
smarty
/
smarty
/
libs
/
sysplugins
/
/home/techb158/exp.abdallabala.com/vendor/smarty/smarty/libs/sysplugins
mkdir
upload
Name
Size
Mode
Actions
smartycompilerexception.php
771
0644
edit
dl
rm
smartyexception.php
334
0644
edit
dl
rm
smarty_cacheresource.php
6644
0644
edit
dl
rm
smarty_cacheresource_custom.php
9912
0644
edit
dl
rm
smarty_cacheresource_keyvaluestore.php
17651
0644
edit
dl
rm
smarty_data.php
1696
0644
edit
dl
rm
smarty_internal_block.php
1627
0644
edit
dl
rm
smarty_internal_cacheresource_file.php
8202
0644
edit
dl
rm
smarty_internal_compilebase.php
7098
0644
edit
dl
rm
smarty_internal_compile_append.php
1791
0644
edit
dl
rm
smarty_internal_compile_assign.php
3416
0644
edit
dl
rm
smarty_internal_compile_block.php
7696
0644
edit
dl
rm
smarty_internal_compile_block_child.php
485
0644
edit
dl
rm
smarty_internal_compile_block_parent.php
583
0644
edit
dl
rm
smarty_internal_compile_break.php
3854
0644
edit
dl
rm
smarty_internal_compile_call.php
2870
0644
edit
dl
rm
smarty_internal_compile_capture.php
3633
0644
edit
dl
rm
smarty_internal_compile_child.php
2468
0644
edit
dl
rm
smarty_internal_compile_config_load.php
2729
0644
edit
dl
rm
smarty_internal_compile_continue.php
437
0644
edit
dl
rm
smarty_internal_compile_debug.php
1083
0644
edit
dl
rm
smarty_internal_compile_eval.php
1891
0644
edit
dl
rm
smarty_internal_compile_extends.php
5403
0644
edit
dl
rm
smarty_internal_compile_for.php
6706
0644
edit
dl
rm
smarty_internal_compile_foreach.php
11728
0644
edit
dl
rm
smarty_internal_compile_function.php
9933
0644
edit
dl
rm
smarty_internal_compile_if.php
8302
0644
edit
dl
rm
smarty_internal_compile_include.php
15018
0644
edit
dl
rm
smarty_internal_compile_include_php.php
3565
0644
edit
dl
rm
smarty_internal_compile_insert.php
6024
0644
edit
dl
rm
smarty_internal_compile_ldelim.php
1053
0644
edit
dl
rm
smarty_internal_compile_make_nocache.php
1666
0644
edit
dl
rm
smarty_internal_compile_nocache.php
2138
0644
edit
dl
rm
smarty_internal_compile_parent.php
565
0644
edit
dl
rm
smarty_internal_compile_private_block_plugin.php
5084
0644
edit
dl
rm
smarty_internal_compile_private_foreachsection.php
7077
0644
edit
dl
rm
smarty_internal_compile_private_function_plugin.php
2527
0644
edit
dl
rm
smarty_internal_compile_private_modifier.php
8044
0644
edit
dl
rm
smarty_internal_compile_private_object_block_function.php
1356
0644
edit
dl
rm
smarty_internal_compile_private_object_function.php
3200
0644
edit
dl
rm
smarty_internal_compile_private_php.php
9834
0644
edit
dl
rm
smarty_internal_compile_private_print_expression.php
6683
0644
edit
dl
rm
smarty_internal_compile_private_registered_block.php
2981
0644
edit
dl
rm
smarty_internal_compile_private_registered_function.php
3438
0644
edit
dl
rm
smarty_internal_compile_private_special_variable.php
5826
0644
edit
dl
rm
smarty_internal_compile_rdelim.php
902
0644
edit
dl
rm
smarty_internal_compile_section.php
18397
0644
edit
dl
rm
smarty_internal_compile_setfilter.php
2182
0644
edit
dl
rm
smarty_internal_compile_shared_inheritance.php
1797
0644
edit
dl
rm
smarty_internal_compile_while.php
3822
0644
edit
dl
rm
smarty_internal_configfilelexer.php
24846
0644
edit
dl
rm
smarty_internal_configfileparser.php
34640
0644
edit
dl
rm
smarty_internal_config_file_compiler.php
6548
0644
edit
dl
rm
smarty_internal_data.php
8988
0644
edit
dl
rm
smarty_internal_debug.php
15464
0644
edit
dl
rm
smarty_internal_errorhandler.php
4335
0644
edit
dl
rm
smarty_internal_extension_handler.php
8210
0644
edit
dl
rm
smarty_internal_method_addautoloadfilters.php
2222
0644
edit
dl
rm
smarty_internal_method_adddefaultmodifiers.php
1164
0644
edit
dl
rm
smarty_internal_method_append.php
2867
0644
edit
dl
rm
smarty_internal_method_appendbyref.php
1801
0644
edit
dl
rm
smarty_internal_method_assignbyref.php
1276
0644
edit
dl
rm
smarty_internal_method_assignglobal.php
1408
0644
edit
dl
rm
smarty_internal_method_clearallassign.php
778
0644
edit
dl
rm
smarty_internal_method_clearallcache.php
994
0644
edit
dl
rm
smarty_internal_method_clearassign.php
1073
0644
edit
dl
rm
smarty_internal_method_clearcache.php
1285
0644
edit
dl
rm
smarty_internal_method_clearcompiledtemplate.php
5656
0644
edit
dl
rm
smarty_internal_method_clearconfig.php
977
0644
edit
dl
rm
smarty_internal_method_compileallconfig.php
964
0644
edit
dl
rm
smarty_internal_method_compilealltemplates.php
4646
0644
edit
dl
rm
smarty_internal_method_configload.php
7297
0644
edit
dl
rm
smarty_internal_method_createdata.php
1330
0644
edit
dl
rm
smarty_internal_method_getautoloadfilters.php
1353
0644
edit
dl
rm
smarty_internal_method_getconfigvariable.php
919
0644
edit
dl
rm
smarty_internal_method_getconfigvars.php
1633
0644
edit
dl
rm
smarty_internal_method_getdebugtemplate.php
709
0644
edit
dl
rm
smarty_internal_method_getdefaultmodifiers.php
745
0644
edit
dl
rm
smarty_internal_method_getglobal.php
1112
0644
edit
dl
rm
smarty_internal_method_getregisteredobject.php
1344
0644
edit
dl
rm
smarty_internal_method_getstreamvariable.php
1269
0644
edit
dl
rm
smarty_internal_method_gettags.php
2072
0644
edit
dl
rm
smarty_internal_method_gettemplatevars.php
4021
0644
edit
dl
rm
smarty_internal_method_literals.php
3049
0644
edit
dl
rm
smarty_internal_method_loadfilter.php
2172
0644
edit
dl
rm
smarty_internal_method_loadplugin.php
4246
0644
edit
dl
rm
smarty_internal_method_mustcompile.php
1769
0644
edit
dl
rm
smarty_internal_method_registercacheresource.php
1178
0644
edit
dl
rm
smarty_internal_method_registerclass.php
1427
0644
edit
dl
rm
smarty_internal_method_registerdefaultconfighandler.php
1175
0644
edit
dl
rm
smarty_internal_method_registerdefaultpluginhandler.php
1274
0644
edit
dl
rm
smarty_internal_method_registerdefaulttemplatehandler.php
3015
0644
edit
dl
rm
smarty_internal_method_registerfilter.php
2497
0644
edit
dl
rm
smarty_internal_method_registerobject.php
4076
0644
edit
dl
rm
smarty_internal_method_registerplugin.php
2218
0644
edit
dl
rm
smarty_internal_method_registerresource.php
1862
0644
edit
dl
rm
smarty_internal_method_setautoloadfilters.php
2278
0644
edit
dl
rm
smarty_internal_method_setdebugtemplate.php
1023
0644
edit
dl
rm
smarty_internal_method_setdefaultmodifiers.php
1008
0644
edit
dl
rm
smarty_internal_method_unloadfilter.php
1440
0644
edit
dl
rm
smarty_internal_method_unregistercacheresource.php
1074
0644
edit
dl
rm
smarty_internal_method_unregisterfilter.php
1471
0644
edit
dl
rm
smarty_internal_method_unregisterobject.php
1059
0644
edit
dl
rm
smarty_internal_method_unregisterplugin.php
1158
0644
edit
dl
rm
smarty_internal_method_unregisterresource.php
1054
0644
edit
dl
rm
smarty_internal_nocache_insert.php
1731
0644
edit
dl
rm
smarty_internal_parsetree.php
907
0644
edit
dl
rm
smarty_internal_parsetree_code.php
889
0644
edit
dl
rm
smarty_internal_parsetree_dq.php
3315
0644
edit
dl
rm
smarty_internal_parsetree_dqcontent.php
930
0644
edit
dl
rm
smarty_internal_parsetree_tag.php
1776
0644
edit
dl
rm
smarty_internal_parsetree_template.php
4723
0644
edit
dl
rm
smarty_internal_parsetree_text.php
1279
0644
edit
dl
rm
smarty_internal_resource_eval.php
2787
0644
edit
dl
rm
smarty_internal_resource_extends.php
3728
0644
edit
dl
rm
smarty_internal_resource_file.php
6778
0644
edit
dl
rm
smarty_internal_resource_php.php
3602
0644
edit
dl
rm
smarty_internal_resource_registered.php
3199
0644
edit
dl
rm
smarty_internal_resource_stream.php
2395
0644
edit
dl
rm
smarty_internal_resource_string.php
3073
0644
edit
dl
rm
smarty_internal_runtime_cachemodify.php
2593
0644
edit
dl
rm
smarty_internal_runtime_cacheresourcefile.php
5866
0644
edit
dl
rm
smarty_internal_runtime_capture.php
4187
0644
edit
dl
rm
smarty_internal_runtime_codeframe.php
4089
0644
edit
dl
rm
smarty_internal_runtime_filterhandler.php
2977
0644
edit
dl
rm
smarty_internal_runtime_foreach.php
5477
0644
edit
dl
rm
smarty_internal_runtime_getincludepath.php
5011
0644
edit
dl
rm
smarty_internal_runtime_inheritance.php
8369
0644
edit
dl
rm
smarty_internal_runtime_make_nocache.php
2070
0644
edit
dl
rm
smarty_internal_runtime_tplfunction.php
7582
0644
edit
dl
rm
smarty_internal_runtime_updatecache.php
6627
0644
edit
dl
rm
smarty_internal_runtime_updatescope.php
3953
0644
edit
dl
rm
smarty_internal_runtime_writefile.php
3468
0644
edit
dl
rm
smarty_internal_smartytemplatecompiler.php
5625
0644
edit
dl
rm
smarty_internal_template.php
25925
0644
edit
dl
rm
smarty_internal_templatebase.php
13937
0644
edit
dl
rm
smarty_internal_templatecompilerbase.php
59708
0644
edit
dl
rm
smarty_internal_templatelexer.php
36393
0644
edit
dl
rm
smarty_internal_templateparser.php
137880
0644
edit
dl
rm
smarty_internal_testinstall.php
32044
0644
edit
dl
rm
smarty_internal_undefined.php
1699
0644
edit
dl
rm
smarty_resource.php
9514
0644
edit
dl
rm
smarty_resource_custom.php
3015
0644
edit
dl
rm
smarty_resource_recompiled.php
2394
0644
edit
dl
rm
smarty_resource_uncompiled.php
1420
0644
edit
dl
rm
smarty_security.php
23468
0644
edit
dl
rm
smarty_template_cached.php
7768
0644
edit
dl
rm
smarty_template_compiled.php
9461
0644
edit
dl
rm
smarty_template_config.php
3063
0644
edit
dl
rm
smarty_template_resource_base.php
3491
0644
edit
dl
rm
smarty_template_source.php
5327
0644
edit
dl
rm
smarty_undefined_variable.php
567
0644
edit
dl
rm
smarty_variable.php
910
0644
edit
dl
rm
Edit:
/home/techb158/exp.abdallabala.com/vendor/smarty/smarty/libs/sysplugins/smarty_internal_debug.php
(15464B)
<?php /** * Smarty Internal Plugin Debug * Class to collect data for the Smarty Debugging Console * * @package Smarty * @subpackage Debug * @author Uwe Tews */ /** * Smarty Internal Plugin Debug Class * * @package Smarty * @subpackage Debug */ class Smarty_Internal_Debug extends Smarty_Internal_Data { /** * template data * * @var array */ public $template_data = array(); /** * List of uid's which shall be ignored * * @var array */ public $ignore_uid = array(); /** * Index of display() and fetch() calls * * @var int */ public $index = 0; /** * Counter for window offset * * @var int */ public $offset = 0; /** * Start logging template * * @param \Smarty_Internal_Template $template template * @param null $mode true: display false: fetch null: subtemplate */ public function start_template(Smarty_Internal_Template $template, $mode = null) { if (isset($mode) && !$template->_isSubTpl()) { $this->index++; $this->offset++; $this->template_data[ $this->index ] = null; } $key = $this->get_key($template); $this->template_data[ $this->index ][ $key ][ 'start_template_time' ] = microtime(true); } /** * End logging of cache time * * @param \Smarty_Internal_Template $template cached template */ public function end_template(Smarty_Internal_Template $template) { $key = $this->get_key($template); $this->template_data[ $this->index ][ $key ][ 'total_time' ] += microtime(true) - $this->template_data[ $this->index ][ $key ][ 'start_template_time' ]; //$this->template_data[$this->index][$key]['properties'] = $template->properties; } /** * Start logging of compile time * * @param \Smarty_Internal_Template $template */ public function start_compile(Smarty_Internal_Template $template) { static $_is_stringy = array('string' => true, 'eval' => true); if (!empty($template->compiler->trace_uid)) { $key = $template->compiler->trace_uid; if (!isset($this->template_data[ $this->index ][ $key ])) { if (isset($_is_stringy[ $template->source->type ])) { $this->template_data[ $this->index ][ $key ][ 'name' ] = '\'' . substr($template->source->name, 0, 25) . '...\''; } else { $this->template_data[ $this->index ][ $key ][ 'name' ] = $template->source->filepath; } $this->template_data[ $this->index ][ $key ][ 'compile_time' ] = 0; $this->template_data[ $this->index ][ $key ][ 'render_time' ] = 0; $this->template_data[ $this->index ][ $key ][ 'cache_time' ] = 0; } } else { if (isset($this->ignore_uid[ $template->source->uid ])) { return; } $key = $this->get_key($template); } $this->template_data[ $this->index ][ $key ][ 'start_time' ] = microtime(true); } /** * End logging of compile time * * @param \Smarty_Internal_Template $template */ public function end_compile(Smarty_Internal_Template $template) { if (!empty($template->compiler->trace_uid)) { $key = $template->compiler->trace_uid; } else { if (isset($this->ignore_uid[ $template->source->uid ])) { return; } $key = $this->get_key($template); } $this->template_data[ $this->index ][ $key ][ 'compile_time' ] += microtime(true) - $this->template_data[ $this->index ][ $key ][ 'start_time' ]; } /** * Start logging of render time * * @param \Smarty_Internal_Template $template */ public function start_render(Smarty_Internal_Template $template) { $key = $this->get_key($template); $this->template_data[ $this->index ][ $key ][ 'start_time' ] = microtime(true); } /** * End logging of compile time * * @param \Smarty_Internal_Template $template */ public function end_render(Smarty_Internal_Template $template) { $key = $this->get_key($template); $this->template_data[ $this->index ][ $key ][ 'render_time' ] += microtime(true) - $this->template_data[ $this->index ][ $key ][ 'start_time' ]; } /** * Start logging of cache time * * @param \Smarty_Internal_Template $template cached template */ public function start_cache(Smarty_Internal_Template $template) { $key = $this->get_key($template); $this->template_data[ $this->index ][ $key ][ 'start_time' ] = microtime(true); } /** * End logging of cache time * * @param \Smarty_Internal_Template $template cached template */ public function end_cache(Smarty_Internal_Template $template) { $key = $this->get_key($template); $this->template_data[ $this->index ][ $key ][ 'cache_time' ] += microtime(true) - $this->template_data[ $this->index ][ $key ][ 'start_time' ]; } /** * Register template object * * @param \Smarty_Internal_Template $template cached template */ public function register_template(Smarty_Internal_Template $template) { } /** * Register data object * * @param \Smarty_Data $data data object */ public static function register_data(Smarty_Data $data) { } /** * Opens a window for the Smarty Debugging Console and display the data * * @param Smarty_Internal_Template|Smarty $obj object to debug * @param bool $full * * @throws \Exception * @throws \SmartyException */ public function display_debug($obj, $full = false) { if (!$full) { $this->offset++; $savedIndex = $this->index; $this->index = 9999; } $smarty = $obj->_getSmartyObj(); // create fresh instance of smarty for displaying the debug console // to avoid problems if the application did overload the Smarty class $debObj = new Smarty(); // copy the working dirs from application $debObj->setCompileDir($smarty->getCompileDir()); // init properties by hand as user may have edited the original Smarty class $debObj->setPluginsDir(is_dir(dirname(__FILE__) . '/../plugins') ? dirname(__FILE__) . '/../plugins' : $smarty->getPluginsDir()); $debObj->force_compile = false; $debObj->compile_check = Smarty::COMPILECHECK_ON; $debObj->left_delimiter = '{'; $debObj->right_delimiter = '}'; $debObj->security_policy = null; $debObj->debugging = false; $debObj->debugging_ctrl = 'NONE'; $debObj->error_reporting = E_ALL & ~E_NOTICE; $debObj->debug_tpl = isset($smarty->debug_tpl) ? $smarty->debug_tpl : 'file:' . dirname(__FILE__) . '/../debug.tpl'; $debObj->registered_plugins = array(); $debObj->registered_resources = array(); $debObj->registered_filters = array(); $debObj->autoload_filters = array(); $debObj->default_modifiers = array(); $debObj->escape_html = true; $debObj->caching = Smarty::CACHING_OFF; $debObj->compile_id = null; $debObj->cache_id = null; // prepare information of assigned variables $ptr = $this->get_debug_vars($obj); $_assigned_vars = $ptr->tpl_vars; ksort($_assigned_vars); $_config_vars = $ptr->config_vars; ksort($_config_vars); $debugging = $smarty->debugging; $_template = new Smarty_Internal_Template($debObj->debug_tpl, $debObj); if ($obj->_isTplObj()) { $_template->assign('template_name', $obj->source->type . ':' . $obj->source->name); } if ($obj->_objType === 1 || $full) { $_template->assign('template_data', $this->template_data[ $this->index ]); } else { $_template->assign('template_data', null); } $_template->assign('assigned_vars', $_assigned_vars); $_template->assign('config_vars', $_config_vars); $_template->assign('execution_time', microtime(true) - $smarty->start_time); $_template->assign('display_mode', $debugging === 2 || !$full); $_template->assign('offset', $this->offset * 50); echo $_template->fetch(); if (isset($full)) { $this->index--; } if (!$full) { $this->index = $savedIndex; } } /** * Recursively gets variables from all template/data scopes * * @param Smarty_Internal_Template|Smarty_Data $obj object to debug * * @return StdClass */ public function get_debug_vars($obj) { $config_vars = array(); foreach ($obj->config_vars as $key => $var) { $config_vars[ $key ][ 'value' ] = $var; if ($obj->_isTplObj()) { $config_vars[ $key ][ 'scope' ] = $obj->source->type . ':' . $obj->source->name; } elseif ($obj->_isDataObj()) { $tpl_vars[ $key ][ 'scope' ] = $obj->dataObjectName; } else { $config_vars[ $key ][ 'scope' ] = 'Smarty object'; } } $tpl_vars = array(); foreach ($obj->tpl_vars as $key => $var) { foreach ($var as $varkey => $varvalue) { if ($varkey === 'value') { $tpl_vars[ $key ][ $varkey ] = $varvalue; } else { if ($varkey === 'nocache') { if ($varvalue === true) { $tpl_vars[ $key ][ $varkey ] = $varvalue; } } else { if ($varkey !== 'scope' || $varvalue !== 0) { $tpl_vars[ $key ][ 'attributes' ][ $varkey ] = $varvalue; } } } } if ($obj->_isTplObj()) { $tpl_vars[ $key ][ 'scope' ] = $obj->source->type . ':' . $obj->source->name; } elseif ($obj->_isDataObj()) { $tpl_vars[ $key ][ 'scope' ] = $obj->dataObjectName; } else { $tpl_vars[ $key ][ 'scope' ] = 'Smarty object'; } } if (isset($obj->parent)) { $parent = $this->get_debug_vars($obj->parent); foreach ($parent->tpl_vars as $name => $pvar) { if (isset($tpl_vars[ $name ]) && $tpl_vars[ $name ][ 'value' ] === $pvar[ 'value' ]) { $tpl_vars[ $name ][ 'scope' ] = $pvar[ 'scope' ]; } } $tpl_vars = array_merge($parent->tpl_vars, $tpl_vars); foreach ($parent->config_vars as $name => $pvar) { if (isset($config_vars[ $name ]) && $config_vars[ $name ][ 'value' ] === $pvar[ 'value' ]) { $config_vars[ $name ][ 'scope' ] = $pvar[ 'scope' ]; } } $config_vars = array_merge($parent->config_vars, $config_vars); } else { foreach (Smarty::$global_tpl_vars as $key => $var) { if (!array_key_exists($key, $tpl_vars)) { foreach ($var as $varkey => $varvalue) { if ($varkey === 'value') { $tpl_vars[ $key ][ $varkey ] = $varvalue; } else { if ($varkey === 'nocache') { if ($varvalue === true) { $tpl_vars[ $key ][ $varkey ] = $varvalue; } } else { if ($varkey !== 'scope' || $varvalue !== 0) { $tpl_vars[ $key ][ 'attributes' ][ $varkey ] = $varvalue; } } } } $tpl_vars[ $key ][ 'scope' ] = 'Global'; } } } return (object)array('tpl_vars' => $tpl_vars, 'config_vars' => $config_vars); } /** * Return key into $template_data for template * * @param \Smarty_Internal_Template $template template object * * @return string key into $template_data */ private function get_key(Smarty_Internal_Template $template) { static $_is_stringy = array('string' => true, 'eval' => true); // calculate Uid if not already done if ($template->source->uid === '') { $template->source->filepath; } $key = $template->source->uid; if (isset($this->template_data[ $this->index ][ $key ])) { return $key; } else { if (isset($_is_stringy[ $template->source->type ])) { $this->template_data[ $this->index ][ $key ][ 'name' ] = '\'' . substr($template->source->name, 0, 25) . '...\''; } else { $this->template_data[ $this->index ][ $key ][ 'name' ] = $template->source->filepath; } $this->template_data[ $this->index ][ $key ][ 'compile_time' ] = 0; $this->template_data[ $this->index ][ $key ][ 'render_time' ] = 0; $this->template_data[ $this->index ][ $key ][ 'cache_time' ] = 0; $this->template_data[ $this->index ][ $key ][ 'total_time' ] = 0; return $key; } } /** * Ignore template * * @param \Smarty_Internal_Template $template */ public function ignore(Smarty_Internal_Template $template) { // calculate Uid if not already done if ($template->source->uid === '') { $template->source->filepath; } $this->ignore_uid[ $template->source->uid ] = true; } /** * handle 'URL' debugging mode * * @param Smarty $smarty */ public function debugUrl(Smarty $smarty) { if (isset($_SERVER[ 'QUERY_STRING' ])) { $_query_string = $_SERVER[ 'QUERY_STRING' ]; } else { $_query_string = ''; } if (false !== strpos($_query_string, $smarty->smarty_debug_id)) { if (false !== strpos($_query_string, $smarty->smarty_debug_id . '=on')) { // enable debugging for this browser session setcookie('SMARTY_DEBUG', true); $smarty->debugging = true; } elseif (false !== strpos($_query_string, $smarty->smarty_debug_id . '=off')) { // disable debugging for this browser session setcookie('SMARTY_DEBUG', false); $smarty->debugging = false; } else { // enable debugging for this page $smarty->debugging = true; } } else { if (isset($_COOKIE[ 'SMARTY_DEBUG' ])) { $smarty->debugging = true; } } } }
Save
cmd:
run