<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* server/privileges/user_properties.twig */
class __TwigTemplate_787d8604446bc752e787e4e106ef5ab4 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $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 = []): iterable
{
$macros = $this->macros;
// line 1
yield "<div id=\"edit_user_dialog\">
<h2>
";
// line 3
yield PhpMyAdmin\Html\Generator::getIcon("b_usredit");
yield "
";
yield _gettext("Edit privileges:");
// line 5
yield " ";
yield _gettext("User account");
// line 6
yield "
";
// line 7
if ( !Twig\Extension\CoreExtension::testEmpty(($context["database"] ?? null))) {
// line 8
yield " <em>
<a class=\"edit_user_anchor\" href=\"";
// line 9
yield PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" => // line 10
($context["username"] ?? null), "hostname" => // line 11
($context["hostname"] ?? null), "dbname" => "", "tablename" => ""]);
// line 14
yield "\">
'";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["username"] ?? null), "html", null, true);
yield "'@'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["hostname"] ?? null), "html", null, true);
yield "'
</a>
</em>
-
";
// line 19
if (($context["is_databases"] ?? null)) {
// line 20
yield " ";
yield _gettext("Databases");
// line 21
yield " ";
} else {
// line 22
yield " ";
yield _gettext("Database");
// line 23
yield " ";
}
// line 24
yield "
";
// line 25
if ( !Twig\Extension\CoreExtension::testEmpty(($context["table"] ?? null))) {
// line 26
yield " <em>
<a href=\"";
// line 27
yield PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" => // line 28
($context["username"] ?? null), "hostname" => // line 29
($context["hostname"] ?? null), "dbname" => // line 30
($context["dbname"] ?? null), "tablename" => ""]);
// line 32
yield "\">
";
// line 33
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["database"] ?? null), "html", null, true);
yield "
</a>
</em>
-
";
yield _gettext("Table");
// line 38
yield " <em>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["table"] ?? null), "html", null, true);
yield "</em>
";
} else {
// line 40
yield " ";
if ( !is_iterable(($context["database"] ?? null))) {
// line 41
yield " ";
$context["database"] = [($context["database"] ?? null)];
// line 42
yield " ";
}
// line 43
yield " <em>
";
// line 44
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::join(($context["database"] ?? null), ", "), "html", null, true);
yield "
</em>
";
}
// line 47
yield " ";
} else {
// line 48
yield " <em>'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["username"] ?? null), "html", null, true);
yield "'@'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["hostname"] ?? null), "html", null, true);
yield "'</em>
";
}
// line 50
yield " </h2>
";
// line 52
if ((($context["current_user"] ?? null) == ((($context["username"] ?? null) . "@") . ($context["hostname"] ?? null)))) {
// line 53
yield " ";
yield $this->env->getFilter('notice')->getCallable()(_gettext("Note: You are attempting to edit privileges of the user with which you are currently logged in."));
yield "
";
}
// line 55
yield "
";
// line 56
if (($context["user_does_not_exists"] ?? null)) {
// line 57
yield " ";
yield $this->env->getFilter('error')->getCallable()(_gettext("The selected user was not found in the privilege table."));
yield "
";
}
// line 59
yield "
<form class=\"submenu-item\" name=\"usersForm\" id=\"addUsersForm\" action=\"";
// line 60
yield PhpMyAdmin\Url::getFromRoute("/server/privileges");
yield "\" method=\"post\">
";
// line 61
yield PhpMyAdmin\Url::getHiddenInputs(($context["params"] ?? null));
yield "
";
// line 63
yield ($context["privileges_table"] ?? null);
yield "
</form>
";
// line 66
yield ($context["table_specific_rights"] ?? null);
yield "
";
// line 68
if ((( !is_iterable(($context["database"] ?? null)) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["database"] ?? null)) > 0)) && !($context["is_wildcard"] ?? null))) {
// line 69
yield " [
";
yield _gettext("Database");
// line 71
yield " <a href=\"";
yield ($context["database_url"] ?? null);
yield PhpMyAdmin\Url::getCommon(["db" => Twig\Extension\CoreExtension::replace( // line 72
($context["database"] ?? null), ["\\_" => "_", "\\%" => "%"]), "reload" => true], "&");
// line 74
yield "\">
";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace(($context["database"] ?? null), ["\\_" => "_", "\\%" => "%"]), "html", null, true);
yield ":
";
// line 76
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["database_url_title"] ?? null), "html", null, true);
yield "
</a>
]
";
// line 79
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["table"] ?? null)) > 0)) {
// line 80
yield " [
";
yield _gettext("Table");
// line 82
yield " <a href=\"";
yield ($context["table_url"] ?? null);
yield PhpMyAdmin\Url::getCommon(["db" => Twig\Extension\CoreExtension::replace( // line 83
($context["database"] ?? null), ["\\_" => "_", "\\%" => "%"]), "table" => // line 84
($context["table"] ?? null), "reload" => true], "&");
// line 86
yield "\">
";
// line 87
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["table"] ?? null), "html", null, true);
yield ":
";
// line 88
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["table_url_title"] ?? null), "html", null, true);
yield "
</a>
]
";
}
// line 92
yield " ";
}
// line 93
yield "
";
// line 94
yield ($context["change_password"] ?? null);
yield "
<form action=\"";
// line 96
yield PhpMyAdmin\Url::getFromRoute("/server/privileges");
yield "\" id=\"copyUserForm\" method=\"post\" class=\"copyUserForm submenu-item\" autocomplete=\"off\">
";
// line 97
yield PhpMyAdmin\Url::getHiddenInputs();
yield "
<input type=\"hidden\" name=\"old_username\" value=\"";
// line 98
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["username"] ?? null), "html", null, true);
yield "\">
<input type=\"hidden\" name=\"old_hostname\" value=\"";
// line 99
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["hostname"] ?? null), "html", null, true);
yield "\">
";
// line 100
if ( !Twig\Extension\CoreExtension::testEmpty(($context["user_group"] ?? null))) {
// line 101
yield " <input type=\"hidden\" name=\"old_usergroup\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["user_group"] ?? null), "html", null, true);
yield "\">
";
}
// line 103
yield "
<fieldset class=\"pma-fieldset\" id=\"fieldset_change_copy_user\">
<legend data-submenu-label=\"";
yield _gettext("Login Information");
// line 105
yield "\">
";
yield _gettext("Change login information / Copy user account");
// line 107
yield " </legend>
";
// line 109
yield ($context["change_login_info_fields"] ?? null);
yield "
<fieldset class=\"pma-fieldset\" id=\"fieldset_mode\">
<legend>
";
yield _gettext("Create a new user account with the same privileges and …");
// line 114
yield " </legend>
<div class=\"mb-3 form-check\">
<input class=\"form-check-input\" type=\"radio\" name=\"mode\" id=\"mode_4\" value=\"4\" checked>
<label class=\"form-check-label\" for=\"mode_4\">
";
yield _gettext("… keep the old one.");
// line 120
yield " </label>
</div>
<div class=\"mb-3 form-check\">
<input class=\"form-check-input\" type=\"radio\" name=\"mode\" id=\"mode_1\" value=\"1\">
<label class=\"form-check-label\" for=\"mode_1\">
";
yield _gettext("… delete the old one from the user tables.");
// line 127
yield " </label>
</div>
<div class=\"mb-3 form-check\">
<input class=\"form-check-input\" type=\"radio\" name=\"mode\" id=\"mode_2\" value=\"2\">
<label class=\"form-check-label\" for=\"mode_2\">
";
yield _gettext("… revoke all active privileges from the old one and delete it afterwards.");
// line 134
yield " </label>
</div>
<div class=\"mb-3 form-check\">
<input class=\"form-check-input\" type=\"radio\" name=\"mode\" id=\"mode_3\" value=\"3\">
<label class=\"form-check-label\" for=\"mode_3\">
";
yield _gettext("… delete the old one from the user tables and reload the privileges afterwards.");
// line 141
yield " </label>
</div>
</fieldset>
</fieldset>
<fieldset id=\"fieldset_change_copy_user_footer\" class=\"pma-fieldset tblFooters\">
<input type=\"hidden\" name=\"change_copy\" value=\"1\">
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
yield _gettext("Go");
// line 148
yield "\">
</fieldset>
</form>
</div>
";
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "server/privileges/user_properties.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 348 => 148, 338 => 141, 329 => 134, 320 => 127, 311 => 120, 303 => 114, 295 => 109, 291 => 107, 287 => 105, 282 => 103, 276 => 101, 274 => 100, 270 => 99, 266 => 98, 262 => 97, 258 => 96, 253 => 94, 250 => 93, 247 => 92, 240 => 88, 236 => 87, 233 => 86, 231 => 84, 230 => 83, 227 => 82, 223 => 80, 221 => 79, 215 => 76, 211 => 75, 208 => 74, 206 => 72, 203 => 71, 199 => 69, 197 => 68, 192 => 66, 186 => 63, 181 => 61, 177 => 60, 174 => 59, 168 => 57, 166 => 56, 163 => 55, 157 => 53, 155 => 52, 151 => 50, 143 => 48, 140 => 47, 134 => 44, 131 => 43, 128 => 42, 125 => 41, 122 => 40, 116 => 38, 108 => 33, 105 => 32, 103 => 30, 102 => 29, 101 => 28, 100 => 27, 97 => 26, 95 => 25, 92 => 24, 89 => 23, 86 => 22, 83 => 21, 80 => 20, 78 => 19, 69 => 15, 66 => 14, 64 => 11, 63 => 10, 62 => 9, 59 => 8, 57 => 7, 54 => 6, 51 => 5, 46 => 3, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("", "server/privileges/user_properties.twig", "/usr/share/phpmyadmin/templates/server/privileges/user_properties.twig");
}
}