/home/techb158/exp.abdallabala.com/vendor/smarty/smarty/libs/sysplugins
NameSizeModeActions
smartycompilerexception.php7710644editdlrm
smartyexception.php3340644editdlrm
smarty_cacheresource.php66440644editdlrm
smarty_cacheresource_custom.php99120644editdlrm
smarty_cacheresource_keyvaluestore.php176510644editdlrm
smarty_data.php16960644editdlrm
smarty_internal_block.php16270644editdlrm
smarty_internal_cacheresource_file.php82020644editdlrm
smarty_internal_compilebase.php70980644editdlrm
smarty_internal_compile_append.php17910644editdlrm
smarty_internal_compile_assign.php34160644editdlrm
smarty_internal_compile_block.php76960644editdlrm
smarty_internal_compile_block_child.php4850644editdlrm
smarty_internal_compile_block_parent.php5830644editdlrm
smarty_internal_compile_break.php38540644editdlrm
smarty_internal_compile_call.php28700644editdlrm
smarty_internal_compile_capture.php36330644editdlrm
smarty_internal_compile_child.php24680644editdlrm
smarty_internal_compile_config_load.php27290644editdlrm
smarty_internal_compile_continue.php4370644editdlrm
smarty_internal_compile_debug.php10830644editdlrm
smarty_internal_compile_eval.php18910644editdlrm
smarty_internal_compile_extends.php54030644editdlrm
smarty_internal_compile_for.php67060644editdlrm
smarty_internal_compile_foreach.php117280644editdlrm
smarty_internal_compile_function.php99330644editdlrm
smarty_internal_compile_if.php83020644editdlrm
smarty_internal_compile_include.php150180644editdlrm
smarty_internal_compile_include_php.php35650644editdlrm
smarty_internal_compile_insert.php60240644editdlrm
smarty_internal_compile_ldelim.php10530644editdlrm
smarty_internal_compile_make_nocache.php16660644editdlrm
smarty_internal_compile_nocache.php21380644editdlrm
smarty_internal_compile_parent.php5650644editdlrm
smarty_internal_compile_private_block_plugin.php50840644editdlrm
smarty_internal_compile_private_foreachsection.php70770644editdlrm
smarty_internal_compile_private_function_plugin.php25270644editdlrm
smarty_internal_compile_private_modifier.php80440644editdlrm
smarty_internal_compile_private_object_block_function.php13560644editdlrm
smarty_internal_compile_private_object_function.php32000644editdlrm
smarty_internal_compile_private_php.php98340644editdlrm
smarty_internal_compile_private_print_expression.php66830644editdlrm
smarty_internal_compile_private_registered_block.php29810644editdlrm
smarty_internal_compile_private_registered_function.php34380644editdlrm
smarty_internal_compile_private_special_variable.php58260644editdlrm
smarty_internal_compile_rdelim.php9020644editdlrm
smarty_internal_compile_section.php183970644editdlrm
smarty_internal_compile_setfilter.php21820644editdlrm
smarty_internal_compile_shared_inheritance.php17970644editdlrm
smarty_internal_compile_while.php38220644editdlrm
smarty_internal_configfilelexer.php248460644editdlrm
smarty_internal_configfileparser.php346400644editdlrm
smarty_internal_config_file_compiler.php65480644editdlrm
smarty_internal_data.php89880644editdlrm
smarty_internal_debug.php154640644editdlrm
smarty_internal_errorhandler.php43350644editdlrm
smarty_internal_extension_handler.php82100644editdlrm
smarty_internal_method_addautoloadfilters.php22220644editdlrm
smarty_internal_method_adddefaultmodifiers.php11640644editdlrm
smarty_internal_method_append.php28670644editdlrm
smarty_internal_method_appendbyref.php18010644editdlrm
smarty_internal_method_assignbyref.php12760644editdlrm
smarty_internal_method_assignglobal.php14080644editdlrm
smarty_internal_method_clearallassign.php7780644editdlrm
smarty_internal_method_clearallcache.php9940644editdlrm
smarty_internal_method_clearassign.php10730644editdlrm
smarty_internal_method_clearcache.php12850644editdlrm
smarty_internal_method_clearcompiledtemplate.php56560644editdlrm
smarty_internal_method_clearconfig.php9770644editdlrm
smarty_internal_method_compileallconfig.php9640644editdlrm
smarty_internal_method_compilealltemplates.php46460644editdlrm
smarty_internal_method_configload.php72970644editdlrm
smarty_internal_method_createdata.php13300644editdlrm
smarty_internal_method_getautoloadfilters.php13530644editdlrm
smarty_internal_method_getconfigvariable.php9190644editdlrm
smarty_internal_method_getconfigvars.php16330644editdlrm
smarty_internal_method_getdebugtemplate.php7090644editdlrm
smarty_internal_method_getdefaultmodifiers.php7450644editdlrm
smarty_internal_method_getglobal.php11120644editdlrm
smarty_internal_method_getregisteredobject.php13440644editdlrm
smarty_internal_method_getstreamvariable.php12690644editdlrm
smarty_internal_method_gettags.php20720644editdlrm
smarty_internal_method_gettemplatevars.php40210644editdlrm
smarty_internal_method_literals.php30490644editdlrm
smarty_internal_method_loadfilter.php21720644editdlrm
smarty_internal_method_loadplugin.php42460644editdlrm
smarty_internal_method_mustcompile.php17690644editdlrm
smarty_internal_method_registercacheresource.php11780644editdlrm
smarty_internal_method_registerclass.php14270644editdlrm
smarty_internal_method_registerdefaultconfighandler.php11750644editdlrm
smarty_internal_method_registerdefaultpluginhandler.php12740644editdlrm
smarty_internal_method_registerdefaulttemplatehandler.php30150644editdlrm
smarty_internal_method_registerfilter.php24970644editdlrm
smarty_internal_method_registerobject.php40760644editdlrm
smarty_internal_method_registerplugin.php22180644editdlrm
smarty_internal_method_registerresource.php18620644editdlrm
smarty_internal_method_setautoloadfilters.php22780644editdlrm
smarty_internal_method_setdebugtemplate.php10230644editdlrm
smarty_internal_method_setdefaultmodifiers.php10080644editdlrm
smarty_internal_method_unloadfilter.php14400644editdlrm
smarty_internal_method_unregistercacheresource.php10740644editdlrm
smarty_internal_method_unregisterfilter.php14710644editdlrm
smarty_internal_method_unregisterobject.php10590644editdlrm
smarty_internal_method_unregisterplugin.php11580644editdlrm
smarty_internal_method_unregisterresource.php10540644editdlrm
smarty_internal_nocache_insert.php17310644editdlrm
smarty_internal_parsetree.php9070644editdlrm
smarty_internal_parsetree_code.php8890644editdlrm
smarty_internal_parsetree_dq.php33150644editdlrm
smarty_internal_parsetree_dqcontent.php9300644editdlrm
smarty_internal_parsetree_tag.php17760644editdlrm
smarty_internal_parsetree_template.php47230644editdlrm
smarty_internal_parsetree_text.php12790644editdlrm
smarty_internal_resource_eval.php27870644editdlrm
smarty_internal_resource_extends.php37280644editdlrm
smarty_internal_resource_file.php67780644editdlrm
smarty_internal_resource_php.php36020644editdlrm
smarty_internal_resource_registered.php31990644editdlrm
smarty_internal_resource_stream.php23950644editdlrm
smarty_internal_resource_string.php30730644editdlrm
smarty_internal_runtime_cachemodify.php25930644editdlrm
smarty_internal_runtime_cacheresourcefile.php58660644editdlrm
smarty_internal_runtime_capture.php41870644editdlrm
smarty_internal_runtime_codeframe.php40890644editdlrm
smarty_internal_runtime_filterhandler.php29770644editdlrm
smarty_internal_runtime_foreach.php54770644editdlrm
smarty_internal_runtime_getincludepath.php50110644editdlrm
smarty_internal_runtime_inheritance.php83690644editdlrm
smarty_internal_runtime_make_nocache.php20700644editdlrm
smarty_internal_runtime_tplfunction.php75820644editdlrm
smarty_internal_runtime_updatecache.php66270644editdlrm
smarty_internal_runtime_updatescope.php39530644editdlrm
smarty_internal_runtime_writefile.php34680644editdlrm
smarty_internal_smartytemplatecompiler.php56250644editdlrm
smarty_internal_template.php259250644editdlrm
smarty_internal_templatebase.php139370644editdlrm
smarty_internal_templatecompilerbase.php597080644editdlrm
smarty_internal_templatelexer.php363930644editdlrm
smarty_internal_templateparser.php1378800644editdlrm
smarty_internal_testinstall.php320440644editdlrm
smarty_internal_undefined.php16990644editdlrm
smarty_resource.php95140644editdlrm
smarty_resource_custom.php30150644editdlrm
smarty_resource_recompiled.php23940644editdlrm
smarty_resource_uncompiled.php14200644editdlrm
smarty_security.php234680644editdlrm
smarty_template_cached.php77680644editdlrm
smarty_template_compiled.php94610644editdlrm
smarty_template_config.php30630644editdlrm
smarty_template_resource_base.php34910644editdlrm
smarty_template_source.php53270644editdlrm
smarty_undefined_variable.php5670644editdlrm
smarty_variable.php9100644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/smarty/smarty/libs/sysplugins/smarty_internal_debug.php (15464B)
_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; } } } }