| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <?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/privileges/privileges_summary.twig */
- class __TwigTemplate_ed075abcfed74a01ef053488933a96f7d3c7f82020b1d4e525df45d0f74ee172 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 "<form class=\"submenu-item\" action=\"server_privileges.php\" id=\"";
- echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
- echo "\" method=\"post\">
- ";
- // line 2
- echo PhpMyAdmin\Url::getHiddenInputs();
- echo "
- <input type=\"hidden\" name=\"username\" value=\"";
- // line 3
- echo twig_escape_filter($this->env, ($context["username"] ?? null), "html", null, true);
- echo "\">
- <input type=\"hidden\" name=\"hostname\" value=\"";
- // line 4
- echo twig_escape_filter($this->env, ($context["hostname"] ?? null), "html", null, true);
- echo "\">
- <fieldset>
- <legend data-submenu-label=\"";
- // line 7
- echo twig_escape_filter($this->env, ($context["sub_menu_label"] ?? null), "html", null, true);
- echo "\">
- ";
- // line 8
- echo twig_escape_filter($this->env, ($context["legend"] ?? null), "html", null, true);
- echo "
- </legend>
- <table class=\"data\">
- <thead>
- <tr>
- <th>";
- // line 14
- echo twig_escape_filter($this->env, ($context["type_label"] ?? null), "html", null, true);
- echo "</th>
- <th>";
- // line 15
- echo _gettext("Privileges");
- echo "</th>
- <th>";
- // line 16
- echo _gettext("Grant");
- echo "</th>
- ";
- // line 17
- if ((($context["type"] ?? null) == "database")) {
- // line 18
- echo " <th>";
- echo _gettext("Table-specific privileges");
- echo "</th>
- ";
- } elseif (( // line 19
- ($context["type"] ?? null) == "table")) {
- // line 20
- echo " <th>";
- echo _gettext("Column-specific privileges");
- echo "</th>
- ";
- }
- // line 22
- echo " <th colspan=\"2\">";
- echo _gettext("Action");
- echo "</th>
- </tr>
- </thead>
- <tbody>
- ";
- // line 27
- if ((twig_length_filter($this->env, ($context["privileges"] ?? null)) == 0)) {
- // line 28
- echo " ";
- $context["colspan"] = (((($context["type"] ?? null) == "database")) ? (7) : ((((($context["type"] ?? null) == "table")) ? (6) : (5))));
- // line 29
- echo " <tr>
- <td colspan=\"";
- // line 30
- echo twig_escape_filter($this->env, ($context["colspan"] ?? null), "html", null, true);
- echo "\"><center><em>";
- echo _gettext("None");
- echo "</em></center></td>
- </tr>
- ";
- } else {
- // line 33
- echo " ";
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(($context["privileges"] ?? null));
- foreach ($context['_seq'] as $context["_key"] => $context["privilege"]) {
- // line 34
- echo " <tr>
- <td>";
- // line 35
- echo twig_escape_filter($this->env, (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = $context["privilege"]) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["name"] ?? null) : null), "html", null, true);
- echo "</td>
- <td><code>";
- // line 36
- echo (($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = $context["privilege"]) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144["privileges"] ?? null) : null);
- echo "</code></td>
- <td>";
- // line 37
- echo twig_escape_filter($this->env, (((($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = $context["privilege"]) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b["grant"] ?? null) : null)) ? (_gettext("Yes")) : (_gettext("No"))), "html", null, true);
- echo "</td>
- ";
- // line 39
- if ((($context["type"] ?? null) == "database")) {
- // line 40
- echo " <td>";
- echo twig_escape_filter($this->env, (((($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = $context["privilege"]) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002["table_privs"] ?? null) : null)) ? (_gettext("Yes")) : (_gettext("No"))), "html", null, true);
- echo "</td>
- ";
- } elseif (( // line 41
- ($context["type"] ?? null) == "table")) {
- // line 42
- echo " <td>";
- echo twig_escape_filter($this->env, (((($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 = $context["privilege"]) && is_array($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4) || $__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 instanceof ArrayAccess ? ($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4["column_privs"] ?? null) : null)) ? (_gettext("Yes")) : (_gettext("No"))), "html", null, true);
- echo "</td>
- ";
- }
- // line 44
- echo "
- <td>";
- // line 45
- echo (($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 = $context["privilege"]) && is_array($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666) || $__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 instanceof ArrayAccess ? ($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666["edit_link"] ?? null) : null);
- echo "</td>
- <td>";
- // line 46
- echo (($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e = $context["privilege"]) && is_array($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e) || $__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e instanceof ArrayAccess ? ($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e["revoke_link"] ?? null) : null);
- echo "</td>
- </tr>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['privilege'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 49
- echo " ";
- }
- // line 50
- echo " </tbody>
- </table>
- ";
- // line 53
- if ((($context["type"] ?? null) == "database")) {
- // line 54
- echo " <label for=\"text_dbname\">";
- echo _gettext("Add privileges on the following database(s):");
- echo "</label>";
- // line 56
- if ( !twig_test_empty(($context["databases"] ?? null))) {
- // line 57
- echo " <select name=\"pred_dbname[]\" multiple=\"multiple\">
- ";
- // line 58
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(($context["databases"] ?? null));
- foreach ($context['_seq'] as $context["_key"] => $context["database"]) {
- // line 59
- echo " <option value=\"";
- echo twig_escape_filter($this->env, PhpMyAdmin\Util::convertBitDefaultValue($context["database"]), "html", null, true);
- echo "\">
- ";
- // line 60
- echo twig_escape_filter($this->env, $context["database"], "html", null, true);
- echo "
- </option>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['database'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 63
- echo " </select>
- ";
- }
- // line 66
- echo "<input type=\"text\" id=\"text_dbname\" name=\"dbname\">
- ";
- // line 67
- echo PhpMyAdmin\Util::showHint(_gettext("Wildcards % and _ should be escaped with a \\ to use them literally."));
- echo "
- ";
- } elseif (( // line 68
- ($context["type"] ?? null) == "table")) {
- // line 69
- echo " <input type=\"hidden\" name=\"dbname\" value=\"";
- echo twig_escape_filter($this->env, ($context["database"] ?? null), "html", null, true);
- echo "\">
- <label for=\"text_tablename\">";
- // line 71
- echo _gettext("Add privileges on the following table:");
- echo "</label>";
- // line 73
- if ( !twig_test_empty(($context["tables"] ?? null))) {
- // line 74
- echo " <select name=\"pred_tablename\" class=\"autosubmit\">
- <option value=\"\" selected=\"selected\">";
- // line 75
- echo _gettext("Use text field");
- echo ":</option>
- ";
- // line 76
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(($context["tables"] ?? null));
- foreach ($context['_seq'] as $context["_key"] => $context["table"]) {
- // line 77
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $context["table"], "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $context["table"], "html", null, true);
- echo "</option>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['table'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 79
- echo " </select>
- ";
- }
- // line 82
- echo "<input type=\"text\" id=\"text_tablename\" name=\"tablename\">
- ";
- } else {
- // line 84
- echo " <input type=\"hidden\" name=\"dbname\" value=\"";
- echo twig_escape_filter($this->env, ($context["database"] ?? null), "html", null, true);
- echo "\">
- <label for=\"text_routinename\">";
- // line 86
- echo _gettext("Add privileges on the following routine:");
- echo "</label>";
- // line 88
- if ( !twig_test_empty(($context["routines"] ?? null))) {
- // line 89
- echo " <select name=\"pred_routinename\" class=\"autosubmit\">
- <option value=\"\" selected=\"selected\">";
- // line 90
- echo _gettext("Use text field");
- echo ":</option>
- ";
- // line 91
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(($context["routines"] ?? null));
- foreach ($context['_seq'] as $context["_key"] => $context["routine"]) {
- // line 92
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $context["routine"], "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $context["routine"], "html", null, true);
- echo "</option>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['routine'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 94
- echo " </select>
- ";
- }
- // line 97
- echo "<input type=\"text\" id=\"text_routinename\" name=\"routinename\">
- ";
- }
- // line 99
- echo " </fieldset>
- <fieldset class=\"tblFooters\">
- <input class=\"btn btn-primary\" type=\"submit\" value=\"";
- // line 102
- echo _gettext("Go");
- echo "\">
- </fieldset>
- </form>
- ";
- }
- public function getTemplateName()
- {
- return "server/privileges/privileges_summary.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 310 => 102, 305 => 99, 301 => 97, 297 => 94, 286 => 92, 282 => 91, 278 => 90, 275 => 89, 273 => 88, 270 => 86, 264 => 84, 260 => 82, 256 => 79, 245 => 77, 241 => 76, 237 => 75, 234 => 74, 232 => 73, 229 => 71, 223 => 69, 221 => 68, 217 => 67, 214 => 66, 210 => 63, 201 => 60, 196 => 59, 192 => 58, 189 => 57, 187 => 56, 183 => 54, 181 => 53, 176 => 50, 173 => 49, 164 => 46, 160 => 45, 157 => 44, 151 => 42, 149 => 41, 144 => 40, 142 => 39, 137 => 37, 133 => 36, 129 => 35, 126 => 34, 121 => 33, 113 => 30, 110 => 29, 107 => 28, 105 => 27, 96 => 22, 90 => 20, 88 => 19, 83 => 18, 81 => 17, 77 => 16, 73 => 15, 69 => 14, 60 => 8, 56 => 7, 50 => 4, 46 => 3, 42 => 2, 37 => 1,);
- }
- public function getSourceContext()
- {
- return new Source("", "server/privileges/privileges_summary.twig", "/wwwroot/OA/public/phpMyAdmin/templates/server/privileges/privileges_summary.twig");
- }
- }
|