source = $this->getSourceContext(); $this->blocks = [ 'content' => [$this, 'block_content'], ]; } protected function doGetParent(array $context) { // line 1 return "server/status/base.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 2 $context["active"] = "advisor"; // line 1 $this->parent = $this->loadTemplate("server/status/base.twig", "server/status/advisor/index.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 4 public function block_content($context, array $blocks = []) { $macros = $this->macros; // line 5 echo "

"; echo _gettext("Advisor system"); // line 6 echo "

"; // line 8 if (twig_test_empty(($context["data"] ?? null))) { // line 9 echo " "; echo $this->env->getFilter('error')->getCallable()(_gettext("Not enough privilege to view the advisor.")); echo " "; } else { // line 11 echo "
"; echo _gettext("Advisor system"); // line 19 echo "

"; echo _gettext("The Advisor system can provide recommendations on server variables by analyzing the server status variables."); // line 27 echo "

"; echo _gettext("Do note however that this system provides recommendations based on simple calculations and by rule of thumb which may not necessarily apply to your system."); // line 32 echo "

"; echo _gettext("Prior to changing any of the configuration, be sure to know what you are changing (by reading the documentation) and how to undo the change. Wrong tuning can have a very negative effect on performance."); // line 37 echo "

"; echo _gettext("The best way to tune your system would be to change only one setting at a time, observe or benchmark your database, and undo the change if there was no clearly measurable improvement."); // line 42 echo "

"; // line 51 if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "errors", [], "any", false, false, false, 51)), 0))) { // line 52 echo "

"; echo _gettext("Errors occurred while executing rule expressions:"); // line 53 echo "

"; } // line 61 echo " "; // line 62 if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "fired", [], "any", false, false, false, 62)), 0))) { // line 63 echo "

"; echo _gettext("Possible performance issues"); echo "

"; // line 66 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "fired", [], "any", false, false, false, 66)); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["rule"]) { // line 67 echo "
env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 68), "html", null, true); echo "\">
env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 73), "html", null, true); echo "\" class=\"accordion-collapse collapse"; echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 73)) ? (" show") : ("")); echo "\" aria-labelledby=\"heading"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 73), "html", null, true); echo "\" data-bs-parent=\"#rulesAccordion\">
"; echo _gettext("Issue:"); // line 76 echo "
"; // line 77 echo twig_get_attribute($this->env, $this->source, $context["rule"], "issue", [], "any", false, false, false, 77); echo "
"; echo _gettext("Recommendation:"); // line 79 echo "
"; // line 80 echo twig_get_attribute($this->env, $this->source, $context["rule"], "recommendation", [], "any", false, false, false, 80); echo "
"; echo _gettext("Justification:"); // line 82 echo "
"; // line 83 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rule"], "justification", [], "any", false, false, false, 83), "html", null, true); echo "
"; echo _gettext("Used variable / formula:"); // line 85 echo "
"; // line 86 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rule"], "formula", [], "any", false, false, false, 86), "html", null, true); echo "
"; echo _gettext("Test:"); // line 88 echo "
"; // line 89 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rule"], "test", [], "any", false, false, false, 89), "html", null, true); echo "
"; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rule'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 95 echo "
"; } // line 97 echo " "; } // line 98 echo " "; } public function getTemplateName() { return "server/status/advisor/index.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 276 => 98, 273 => 97, 269 => 95, 249 => 89, 246 => 88, 240 => 86, 237 => 85, 231 => 83, 228 => 82, 222 => 80, 219 => 79, 213 => 77, 210 => 76, 199 => 73, 193 => 70, 183 => 69, 179 => 68, 176 => 67, 159 => 66, 152 => 63, 150 => 62, 147 => 61, 142 => 58, 133 => 56, 129 => 55, 125 => 53, 121 => 52, 119 => 51, 111 => 45, 105 => 42, 101 => 37, 97 => 32, 93 => 27, 87 => 20, 83 => 19, 72 => 12, 69 => 11, 63 => 9, 61 => 8, 57 => 6, 53 => 5, 49 => 4, 44 => 1, 42 => 2, 35 => 1,); } public function getSourceContext() { return new Source("", "server/status/advisor/index.twig", "/usr/local/cpanel/base/3rdparty/phpMyAdmin/templates/server/status/advisor/index.twig"); } }