File: /var/lib/phpmyadmin/tmp/twig/0c/0c3890f7722cb07bc91dce2aa594fc09.php
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* server/binlog/index.twig */
class __TwigTemplate_2d2e75fd78e88e82da7a0e753e107750 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<h2>
";
// line 2
echo \PhpMyAdmin\Html\Generator::getImage("s_tbl");
echo "
";
// line 3
echo _gettext("Binary log");
// line 4
echo "</h2>
<form action=\"";
// line 6
echo PhpMyAdmin\Url::getFromRoute("/server/binlog");
echo "\" method=\"post\">
";
// line 7
echo PhpMyAdmin\Url::getHiddenInputs(($context["url_params"] ?? null));
echo "
<fieldset>
<legend>
";
// line 10
echo _gettext("Select binary log to view");
// line 11
echo " </legend>
";
// line 13
$context["full_size"] = 0;
// line 14
echo " <select name=\"log\">
";
// line 15
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["binary_logs"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["each_log"]) {
// line 16
echo " <option value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_0 = $context["each_log"]) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["Log_name"] ?? null) : null), "html", null, true);
echo "\"";
// line 17
echo ((((($__internal_compile_1 = $context["each_log"]) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["Log_name"] ?? null) : null) == ($context["log"] ?? null))) ? (" selected") : (""));
echo ">
";
// line 18
echo twig_escape_filter($this->env, (($__internal_compile_2 = $context["each_log"]) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["Log_name"] ?? null) : null), "html", null, true);
echo "
";
// line 19
if (twig_get_attribute($this->env, $this->source, $context["each_log"], "File_size", [], "array", true, true, false, 19)) {
// line 20
echo " (";
echo twig_escape_filter($this->env, twig_join_filter(PhpMyAdmin\Util::formatByteDown((($__internal_compile_3 = $context["each_log"]) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["File_size"] ?? null) : null), 3, 2), " "), "html", null, true);
echo ")
";
// line 21
$context["full_size"] = (($context["full_size"] ?? null) + (($__internal_compile_4 = $context["each_log"]) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["File_size"] ?? null) : null));
// line 22
echo " ";
}
// line 23
echo " </option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['each_log'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " </select>
";
// line 26
echo twig_escape_filter($this->env, twig_length_filter($this->env, ($context["binary_logs"] ?? null)), "html", null, true);
echo "
";
// line 27
echo _gettext("Files");
echo ",
";
// line 28
if ((($context["full_size"] ?? null) > 0)) {
// line 29
echo " ";
echo twig_escape_filter($this->env, twig_join_filter(PhpMyAdmin\Util::formatByteDown(($context["full_size"] ?? null)), " "), "html", null, true);
echo "
";
}
// line 31
echo " </fieldset>
<fieldset class=\"tblFooters\">
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
// line 34
echo _gettext("Go");
echo "\">
</fieldset>
</form>
";
// line 38
echo ($context["sql_message"] ?? null);
echo "
<table class=\"pma-table\" id=\"binlogTable\">
<thead>
<tr>
<td colspan=\"6\" class=\"text-center\">
";
// line 44
if (($context["has_previous"] ?? null)) {
// line 45
echo " ";
if (($context["has_icons"] ?? null)) {
// line 46
echo " <a href=\"";
echo PhpMyAdmin\Url::getFromRoute("/server/binlog");
echo "\" data-post=\"";
echo PhpMyAdmin\Url::getCommon(($context["previous_params"] ?? null), "");
echo "\" title=\"";
// line 47
echo _pgettext( "Previous page", "Previous");
echo "\">
«
</a>
";
} else {
// line 51
echo " <a href=\"";
echo PhpMyAdmin\Url::getFromRoute("/server/binlog");
echo "\" data-post=\"";
echo PhpMyAdmin\Url::getCommon(($context["previous_params"] ?? null), "");
echo "\">
";
// line 52
echo _pgettext( "Previous page", "Previous");
echo " «
</a>
";
}
// line 55
echo " -
";
}
// line 57
echo "
";
// line 58
if (($context["is_full_query"] ?? null)) {
// line 59
echo " <a href=\"";
echo PhpMyAdmin\Url::getFromRoute("/server/binlog");
echo "\" data-post=\"";
echo PhpMyAdmin\Url::getCommon(($context["full_queries_params"] ?? null), "");
echo "\" title=\"";
echo _gettext("Truncate shown queries");
echo "\">
<img src=\"";
// line 60
echo twig_escape_filter($this->env, ($context["image_path"] ?? null), "html", null, true);
echo "s_partialtext.png\" alt=\"";
echo _gettext("Truncate shown queries");
echo "\">
</a>
";
} else {
// line 63
echo " <a href=\"";
echo PhpMyAdmin\Url::getFromRoute("/server/binlog");
echo "\" data-post=\"";
echo PhpMyAdmin\Url::getCommon(($context["full_queries_params"] ?? null), "");
echo "\" title=\"";
echo _gettext("Show full queries");
echo "\">
<img src=\"";
// line 64
echo twig_escape_filter($this->env, ($context["image_path"] ?? null), "html", null, true);
echo "s_fulltext.png\" alt=\"";
echo _gettext("Show full queries");
echo "\">
</a>
";
}
// line 67
echo "
";
// line 68
if (($context["has_next"] ?? null)) {
// line 69
echo " -
";
// line 70
if (($context["has_icons"] ?? null)) {
// line 71
echo " <a href=\"";
echo PhpMyAdmin\Url::getFromRoute("/server/binlog");
echo "\" data-post=\"";
echo PhpMyAdmin\Url::getCommon(($context["next_params"] ?? null), "");
echo "\" title=\"";
// line 72
echo _pgettext( "Next page", "Next");
echo "\">
»
</a>
";
} else {
// line 76
echo " <a href=\"";
echo PhpMyAdmin\Url::getFromRoute("/server/binlog");
echo "\" data-post=\"";
echo PhpMyAdmin\Url::getCommon(($context["next_params"] ?? null), "");
echo "\">
";
// line 77
echo _pgettext( "Next page", "Next");
echo " »
</a>
";
}
// line 80
echo " ";
}
// line 81
echo " </td>
</tr>
<tr>
<th>";
// line 84
echo _gettext("Log name");
echo "</th>
<th>";
// line 85
echo _gettext("Position");
echo "</th>
<th>";
// line 86
echo _gettext("Event type");
echo "</th>
<th>";
// line 87
echo _gettext("Server ID");
echo "</th>
<th>";
// line 88
echo _gettext("Original position");
echo "</th>
<th>";
// line 89
echo _gettext("Information");
echo "</th>
</tr>
</thead>
<tbody>
";
// line 94
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["values"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
// line 95
echo " <tr class=\"noclick\">
<td>";
// line 96
echo twig_escape_filter($this->env, (($__internal_compile_5 = $context["value"]) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["Log_name"] ?? null) : null), "html", null, true);
echo "</td>
<td class=\"right\">";
// line 97
echo twig_escape_filter($this->env, (($__internal_compile_6 = $context["value"]) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["Pos"] ?? null) : null), "html", null, true);
echo "</td>
<td>";
// line 98
echo twig_escape_filter($this->env, (($__internal_compile_7 = $context["value"]) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["Event_type"] ?? null) : null), "html", null, true);
echo "</td>
<td class=\"right\">";
// line 99
echo twig_escape_filter($this->env, (($__internal_compile_8 = $context["value"]) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8["Server_id"] ?? null) : null), "html", null, true);
echo "</td>
<td class=\"right\">";
// line 101
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["value"], "Orig_log_pos", [], "array", true, true, false, 101)) ? ((($__internal_compile_9 = $context["value"]) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["Orig_log_pos"] ?? null) : null)) : ((($__internal_compile_10 = $context["value"]) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["End_log_pos"] ?? null) : null))), "html", null, true);
// line 102
echo "</td>
<td>";
// line 103
echo \PhpMyAdmin\Html\Generator::formatSql((($__internal_compile_11 = $context["value"]) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11["Info"] ?? null) : null), !($context["is_full_query"] ?? null));
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo " </tbody>
</table>
";
}
public function getTemplateName()
{
return "server/binlog/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 329 => 106, 320 => 103, 317 => 102, 315 => 101, 311 => 99, 307 => 98, 303 => 97, 299 => 96, 296 => 95, 292 => 94, 284 => 89, 280 => 88, 276 => 87, 272 => 86, 268 => 85, 264 => 84, 259 => 81, 256 => 80, 250 => 77, 243 => 76, 236 => 72, 230 => 71, 228 => 70, 225 => 69, 223 => 68, 220 => 67, 212 => 64, 203 => 63, 195 => 60, 186 => 59, 184 => 58, 181 => 57, 177 => 55, 171 => 52, 164 => 51, 157 => 47, 151 => 46, 148 => 45, 146 => 44, 137 => 38, 130 => 34, 125 => 31, 119 => 29, 117 => 28, 113 => 27, 109 => 26, 106 => 25, 99 => 23, 96 => 22, 94 => 21, 89 => 20, 87 => 19, 83 => 18, 79 => 17, 75 => 16, 71 => 15, 68 => 14, 66 => 13, 62 => 11, 60 => 10, 54 => 7, 50 => 6, 46 => 4, 44 => 3, 40 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "server/binlog/index.twig", "/usr/share/phpmyadmin/templates/server/binlog/index.twig");
}
}