~ubuntu-branches/ubuntu/lucid/phpmyadmin/lucid

« back to all changes in this revision

Viewing changes to server_databases.php

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2009-06-30 14:05:13 UTC
  • mfrom: (1.2.1 upstream) (36.1.2 karmic)
  • Revision ID: james.westby@ubuntu.com-20090630140513-hz71do3sij2jhm4s
* New upstream version fixing XSS (PMASA-2009-5).
* Document no empty password in README.Debian and the shipped sample
  configuration file (LP: #388703).
* Install service file for avahi (if web service enabled and if avahi is
  installed) (LP: #369244).
* Mention protecting of setup if not using provided configuration snippets
  for webservers.
* Call ucf with --debconf-ok in postrm (Closes: #534894).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/* vim: set expandtab sw=4 ts=4 sts=4: */
3
3
/**
4
4
 *
5
 
 * @version $Id: server_databases.php 12238 2009-02-16 10:22:09Z lem9 $
 
5
 * @version $Id: server_databases.php 12242 2009-02-20 09:22:20Z lem9 $
 
6
 * @package phpMyAdmin
6
7
 */
7
8
 
8
9
/**
162
163
    echo '<table id="tabledatabases" class="data">' . "\n"
163
164
       . '<thead>' . "\n"
164
165
       . '<tr>' . "\n"
165
 
       . ($is_superuser || $cfg['AllowUserDropDatabase'] ? '        <th>&nbsp;</th>' . "\n" : '')
 
166
       . ($is_superuser || $cfg['AllowUserDropDatabase'] ? '        <th></th>' . "\n" : '')
166
167
       . '    <th><a href="./server_databases.php' . PMA_generate_common_url($_url_params) . '">' . "\n"
167
168
       . '            ' . $strDatabase . "\n"
168
169
       . ($sort_by == 'SCHEMA_NAME' ? '                <img class="icon" src="' . $pmaThemeImage . 's_' . $sort_order . '.png" width="11" height="9"  alt="' . ($sort_order == 'asc' ? $strAscending : $strDescending) . '" />' . "\n" : '')
187
188
        }
188
189
    }
189
190
    if ($is_superuser) {
190
 
        echo '    <th>' . ($cfg['PropertiesIconic'] ? '&nbsp;' : $strAction) . "\n"
 
191
        echo '    <th>' . ($cfg['PropertiesIconic'] ? '' : $strAction) . "\n"
191
192
           . '    </th>' . "\n";
192
193
    }
193
194
    echo '</tr>' . "\n"
267
268
 
268
269
    echo '<tr>' . "\n";
269
270
    if ($is_superuser || $cfg['AllowUserDropDatabase']) {
270
 
        echo '    <th>&nbsp;</th>' . "\n";
 
271
        echo '    <th></th>' . "\n";
271
272
    }
272
273
    echo '    <th>' . $strTotalUC . ': ' . $databases_count . '</th>' . "\n";
273
274
    foreach ($column_order as $stat_name => $stat) {
294
295
        }
295
296
    }
296
297
    if ($is_superuser) {
297
 
        echo '    <th>&nbsp;</th>' . "\n";
 
298
        echo '    <th></th>' . "\n";
298
299
    }
299
300
    echo '</tr>' . "\n";
300
301
    echo '</tbody>' . "\n"