3293f0aa1a39a06898fcdce69375d50f337a142a3c09bf6c0a24e9951333d2f8.php
9.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?php
/* server/databases/table_row.twig */
class __TwigTemplate_dd90d41c73072de05d6750276722da86a078dec85bed43ef1ba49e6a4d5bf2ce extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 1
echo "<tr";
if (($context["tr_class"] ?? null)) {
echo " class=\"";
echo twig_escape_filter($this->env, ($context["tr_class"] ?? null), "html", null, true);
echo "\"";
}
echo " data-filter-row=\"";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(($context["current"] ?? null), "SCHEMA_NAME", [], "array")), "html", null, true);
echo "\">
";
// line 2
if ((($context["is_superuser"] ?? null) || ($context["allow_user_drop_database"] ?? null))) {
// line 3
echo " <td class=\"tool\">
<input type=\"checkbox\" name=\"selected_dbs[]\" class=\"checkall\" title=\"";
// line 5
echo twig_escape_filter($this->env, $this->getAttribute(($context["current"] ?? null), "SCHEMA_NAME", [], "array"), "html", null, true);
echo "\" value=\"";
// line 6
echo twig_escape_filter($this->env, $this->getAttribute(($context["current"] ?? null), "SCHEMA_NAME", [], "array"), "html", null, true);
echo "\"";
// line 7
if (($context["is_system_schema"] ?? null)) {
echo " disabled=\"disabled\"";
}
echo " />
</td>
";
}
// line 10
echo " <td class=\"name\">
<a href=\"";
// line 11
echo PhpMyAdmin\Util::getScriptNameForOption(($context["default_tab_database"] ?? null), "database");
// line 12
echo PhpMyAdmin\Url::getCommon(["db" => $this->getAttribute(($context["current"] ?? null), "SCHEMA_NAME", [], "array")]);
echo "\" title=\"";
// line 13
echo twig_escape_filter($this->env, sprintf(_gettext("Jump to database '%s'"), twig_escape_filter($this->env, $this->getAttribute(($context["current"] ?? null), "SCHEMA_NAME", [], "array"))), "html", null, true);
echo "\">
";
// line 14
echo twig_escape_filter($this->env, $this->getAttribute(($context["current"] ?? null), "SCHEMA_NAME", [], "array"), "html", null, true);
echo "
</a>
</td>
";
// line 17
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["column_order"] ?? null));
foreach ($context['_seq'] as $context["stat_name"] => $context["stat"]) {
if (twig_in_filter($context["stat_name"], twig_get_array_keys_filter(($context["current"] ?? null)))) {
// line 18
echo " ";
if (($this->getAttribute($context["stat"], "format", [], "array") === "byte")) {
// line 19
echo " ";
$context["byte_format"] = PhpMyAdmin\Util::formatByteDown($this->getAttribute(($context["current"] ?? null), $context["stat_name"], [], "array"), 3, 1);
// line 20
echo " ";
$context["value"] = $this->getAttribute(($context["byte_format"] ?? null), 0, [], "array");
// line 21
echo " ";
$context["unit"] = $this->getAttribute(($context["byte_format"] ?? null), 1, [], "array");
// line 22
echo " ";
} elseif (($this->getAttribute($context["stat"], "format", [], "array") === "number")) {
// line 23
echo " ";
$context["value"] = PhpMyAdmin\Util::formatNumber($this->getAttribute(($context["current"] ?? null), $context["stat_name"], [], "array"), 0);
// line 24
echo " ";
} else {
// line 25
echo " ";
$context["value"] = htmlentities($this->getAttribute(($context["current"] ?? null), $context["stat_name"], [], "array"), 0);
// line 26
echo " ";
}
// line 27
echo "
<td class=\"value\">
";
// line 29
if ($this->getAttribute($context["stat"], "description_function", [], "array", true, true)) {
// line 30
echo " <dfn title=\"";
echo twig_escape_filter($this->env, PhpMyAdmin\Charsets::getCollationDescr($this->getAttribute(($context["current"] ?? null), $context["stat_name"], [], "array")), "html", null, true);
echo "\">
";
// line 31
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "
</dfn>
";
} else {
// line 34
echo " ";
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "
";
}
// line 36
echo " </td>
";
// line 37
if (($this->getAttribute($context["stat"], "format", [], "array") === "byte")) {
// line 38
echo " <td class=\"unit\">";
echo twig_escape_filter($this->env, ($context["unit"] ?? null), "html", null, true);
echo "</td>
";
}
// line 40
echo " ";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['stat_name'], $context['stat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo "
";
// line 42
if (($context["master_replication_status"] ?? null)) {
// line 43
echo " <td class=\"tool center\">
";
// line 44
echo ($context["master_replication"] ?? null);
echo "
</td>
";
}
// line 47
echo "
";
// line 48
if (($context["slave_replication_status"] ?? null)) {
// line 49
echo " <td class=\"tool center\">
";
// line 50
echo ($context["slave_replication"] ?? null);
echo "
</td>
";
}
// line 53
echo "
<td class=\"tool\">
<a class=\"server_databases\" data=\"";
// line 56
echo PhpMyAdmin\Sanitize::jsFormat($this->getAttribute(($context["current"] ?? null), "SCHEMA_NAME", [], "array"));
echo "\" href=\"server_privileges.php";
// line 57
echo PhpMyAdmin\Url::getCommon(["db" => $this->getAttribute( // line 58
($context["current"] ?? null), "SCHEMA_NAME", [], "array"), "checkprivsdb" => $this->getAttribute( // line 59
($context["current"] ?? null), "SCHEMA_NAME", [], "array")]);
// line 60
echo "\" title=\"";
// line 61
echo twig_escape_filter($this->env, sprintf(_gettext("Check privileges for database \"%s\"."), twig_escape_filter($this->env, $this->getAttribute(($context["current"] ?? null), "SCHEMA_NAME", [], "array"))), "html", null, true);
echo "\">
";
// line 62
echo PhpMyAdmin\Util::getIcon("s_rights", _gettext("Check privileges"));
echo "
</a>
</td>
</tr>
";
}
public function getTemplateName()
{
return "server/databases/table_row.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 185 => 62, 181 => 61, 179 => 60, 177 => 59, 176 => 58, 175 => 57, 172 => 56, 168 => 53, 162 => 50, 159 => 49, 157 => 48, 154 => 47, 148 => 44, 145 => 43, 143 => 42, 140 => 41, 133 => 40, 127 => 38, 125 => 37, 122 => 36, 116 => 34, 110 => 31, 105 => 30, 103 => 29, 99 => 27, 96 => 26, 93 => 25, 90 => 24, 87 => 23, 84 => 22, 81 => 21, 78 => 20, 75 => 19, 72 => 18, 67 => 17, 61 => 14, 57 => 13, 54 => 12, 52 => 11, 49 => 10, 41 => 7, 38 => 6, 35 => 5, 32 => 3, 30 => 2, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("", "server/databases/table_row.twig", "D:\\code\\yihewuku\\hx.yhwk.ynzhsk.cn\\public\\phpMyAdmin4.8.5\\templates\\server\\databases\\table_row.twig");
}
}