Viewing file: a193f353e7b65d141665f8ef51af80e4f1d29b88a09529faba040a148e6a664e.php (8.54 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?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;
/* prefs_twofactor.twig */ class __TwigTemplate_55f456b5093f53e801762db79db4f3b13a824f60f52423fce9ada861d4fa0d42 extends \Twig\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 "<div class=\"group\"> <h2> "; // line 3 echo _gettext("Two-factor authentication status"); // line 4 echo PhpMyAdmin\Util::showDocu("two_factor"); echo " </h2> <div class=\"group-cnt\"> "; // line 7 if (($context["enabled"] ?? null)) { // line 8 if ((($context["num_backends"] ?? null) == 0)) { // line 9 echo "<p>"; echo _gettext("Two-factor authentication is not available, please install optional dependencies to enable authentication backends."); echo "</p> <p>"; // line 10 echo _gettext("Following composer packages are missing:"); echo "</p> <ul> "; // line 12 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["missing"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 13 echo " <li><code>"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "dep", [], "any", false, false, false, 13), "html", null, true); echo "</code> ("; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "class", [], "any", false, false, false, 13), "html", null, true); echo ")</li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 15 echo "</ul> "; } else { // line 17 if (($context["backend_id"] ?? null)) { // line 18 echo "<p>"; echo _gettext("Two-factor authentication is available and configured for this account."); echo "</p> "; } else { // line 20 echo "<p>"; echo _gettext("Two-factor authentication is available, but not configured for this account."); echo "</p> "; } } } else { // line 24 echo "<p>"; echo _gettext("Two-factor authentication is not available, enable phpMyAdmin configuration storage to use it."); echo "</p> "; } // line 26 echo "</div> </div>
"; // line 29 if (($context["backend_id"] ?? null)) { // line 30 echo "<div class=\"group\"> <h2>"; // line 31 echo twig_escape_filter($this->env, ($context["backend_name"] ?? null), "html", null, true); echo "</h2> <div class=\"group-cnt\"> <p>"; // line 33 echo _gettext("You have enabled two factor authentication."); echo "</p> <p>"; // line 34 echo twig_escape_filter($this->env, ($context["backend_description"] ?? null), "html", null, true); echo "</p> <form method=\"POST\" action=\"prefs_twofactor.php\"> "; // line 36 echo PhpMyAdmin\Url::getHiddenInputs(); echo " <input type=\"submit\" name=\"2fa_remove\" value=\""; // line 37 echo _gettext("Disable two-factor authentication"); echo "\" /> </form> </div> </div> "; } elseif (( // line 41 ($context["num_backends"] ?? null) > 0)) { // line 42 echo "<div class=\"group\"> <h2>"; // line 43 echo _gettext("Configure two-factor authentication"); echo "</h2> <div class=\"group-cnt\"> <form method=\"POST\" action=\"prefs_twofactor.php\"> "; // line 46 echo PhpMyAdmin\Url::getHiddenInputs(); echo " "; // line 47 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["backends"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["backend"]) { // line 48 echo "<label> <input type=\"radio\" name=\"2fa_configure\" "; // line 49 if (((($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = $context["backend"]) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["id"] ?? null) : null) == "")) { echo "checked=\"checked\""; } echo " value=\""; echo twig_escape_filter($this->env, (($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = $context["backend"]) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144["id"] ?? null) : null), "html", null, true); echo "\"/> <strong>"; // line 50 echo twig_escape_filter($this->env, (($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = $context["backend"]) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b["name"] ?? null) : null), "html", null, true); echo "</strong> <p>"; // line 51 echo twig_escape_filter($this->env, (($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = $context["backend"]) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002["description"] ?? null) : null), "html", null, true); echo "</p> </label> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['backend'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 54 echo "<input type=\"submit\" value=\""; echo _gettext("Configure two-factor authentication"); echo "\" /> </form> </div> </div> "; } }
public function getTemplateName() { return "prefs_twofactor.twig"; }
public function isTraitable() { return false; }
public function getDebugInfo() { return array ( 182 => 54, 173 => 51, 169 => 50, 161 => 49, 158 => 48, 154 => 47, 150 => 46, 144 => 43, 141 => 42, 139 => 41, 132 => 37, 128 => 36, 123 => 34, 119 => 33, 114 => 31, 111 => 30, 109 => 29, 104 => 26, 98 => 24, 90 => 20, 84 => 18, 82 => 17, 78 => 15, 67 => 13, 63 => 12, 58 => 10, 53 => 9, 51 => 8, 49 => 7, 43 => 4, 41 => 3, 37 => 1,); }
public function getSourceContext() { return new Source("", "prefs_twofactor.twig", "/usr/share/phpmyadmin/templates/prefs_twofactor.twig"); } }
|