1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00
Files
phpmyadmin/templates/server/databases/table_header.phtml
Michal Čihař 98964e2f59 Remove is_superuser superglobal
Issue #11731

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-10 12:28:00 +02:00

41 lines
1.6 KiB
PHTML

<thead>
<tr>
<?php if ($GLOBALS['dbi']->isSuperuser() || $GLOBALS['cfg']['AllowUserDropDatabase']): ?>
<th></th>
<?php endif; ?>
<th>
<a href="server_databases.php<?= \PhpMyAdmin\Url::getCommon($_url_params); ?>">
<?= __('Database'); ?>
<?= ($sort_by == 'SCHEMA_NAME' ? \PhpMyAdmin\Util::getImage('s_' . $sort_order . '.png', $sort_order_text) : ''); ?>
</a>
</th>
<?php foreach ($column_order as $stat_name => $stat):
if (! array_key_exists($stat_name, $first_database)) {
continue;
}
$_url_params['sort_by'] = $stat_name;
$_url_params['sort_order'] = ($sort_by == $stat_name && $sort_order == 'desc') ? 'asc' : 'desc'; ?>
<th <?php if ($stat['format'] === 'byte'): ?>colspan="2"<?php endif; ?>>
<a href="server_databases.php<?= \PhpMyAdmin\Url::getCommon($_url_params); ?>">
<?= $stat['disp_name']; ?>
<?= ($sort_by == $stat_name ? \PhpMyAdmin\Util::getImage('s_' . $sort_order . '.png', $sort_order_text) : ''); ?>
</a>
</th>
<?php endforeach; ?>
<?php if ($master_replication): ?>
<th>
<?= __('Master replication'); ?>
</th>
<?php endif; ?>
<?php if ($slave_replication): ?>
<th>
<?= __('Slave replication'); ?>
</th>
<?php endif; ?>
<th>
<?= __('Action'); ?>
</th>
</tr>
</thead>