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

« back to all changes in this revision

Viewing changes to navigation.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:
4
4
 * the navigation frame - displays server, db and table selection tree
5
5
 *
6
6
 * @version $Id: navigation.php 12022 2008-11-28 14:35:17Z nijel $
 
7
 * @package phpMyAdmin
7
8
 * @uses $GLOBALS['pma']->databases
8
9
 * @uses $GLOBALS['server']
9
10
 * @uses $GLOBALS['db']
47
48
require_once './libraries/common.inc.php';
48
49
 
49
50
/**
50
 
 * finish and cleanup navigation.php script execution
 
51
 * finish and cleanup navigation.php script execution, only to be used in navigation.php
51
52
 *
52
53
 * @uses $GLOBALS['controllink'] to close it
53
54
 * @uses $GLOBALS['userlink'] to close it
54
 
 * @access private only to be used in navigation.php
 
55
 * @access private
55
56
 */
56
57
function PMA_exitNavigationFrame()
57
58
{
141
142
    var image_plus = '<?php echo $GLOBALS['pmaThemeImage']; ?>b_plus.png';
142
143
 
143
144
    // INIT PMA_setFrameSize
144
 
    var onloadCnt = 0; 
145
 
    var onLoadHandler = window.onload;  
 
145
    var onloadCnt = 0;
 
146
    var onLoadHandler = window.onload;
146
147
    var resizeHandler = window.onresize;
147
148
    window.document.onresize  = resizeHandler;
148
149
    window.onload = function() {
149
150
        if (onloadCnt == 0) {
150
 
            if (typeof(onLoadHandler) == "function") { 
151
 
                onLoadHandler(); 
 
151
            if (typeof(onLoadHandler) == "function") {
 
152
                onLoadHandler();
152
153
            }
153
 
            if (typeof(PMA_setFrameSize) != 'undefined' && typeof(PMA_setFrameSize) == 'function') { 
154
 
                PMA_setFrameSize(); 
 
154
            if (typeof(PMA_setFrameSize) != 'undefined' && typeof(PMA_setFrameSize) == 'function') {
 
155
                PMA_setFrameSize();
155
156
            }
156
157
            onloadCnt++;
157
158
        }
158
159
    };
159
160
    window.onresize = function() {
160
 
        if (typeof(resizeHandler) == "function") { 
161
 
            resizeHandler(); 
 
161
        if (typeof(resizeHandler) == "function") {
 
162
            resizeHandler();
162
163
        }
163
 
        if (typeof(PMA_saveFrameSize) != 'undefined' && typeof(PMA_saveFrameSize) == 'function') { 
164
 
            PMA_saveFrameSize(); 
 
164
        if (typeof(PMA_saveFrameSize) != 'undefined' && typeof(PMA_saveFrameSize) == 'function') {
 
165
            PMA_saveFrameSize();
165
166
        }
166
167
    };
167
168
    // ]]>
260
261
if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
261
262
    $table_list = PMA_getTableList($GLOBALS['db']);
262
263
    $table_count = count($table_list);
263
 
    
 
264
 
264
265
    // show selected databasename as link to DefaultTabDatabase-page
265
266
    // with table count in ()
266
267
    $common_url_query = PMA_generate_common_url($GLOBALS['db']);
311
312
              'db' => $GLOBALS['db']
312
313
            );
313
314
            PMA_listNavigator($table_count, $tpos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxTableList']);
314
 
        } 
 
315
        }
315
316
        PMA_displayTableList($table_list, true, '', $GLOBALS['db']);
316
317
        // lower table list paginator
317
318
        if (count($table_list) <= $GLOBALS['cfg']['MaxTableList'] && $table_count > $GLOBALS['cfg']['MaxTableList']) {
346
347
 * @uses    PMA_generate_common_url()
347
348
 * @uses    PMA_getTableList()
348
349
 * @uses    PMA_displayTableList()
349
 
 * @global  $element_counter
350
 
 * @global  $img_minus
351
 
 * @global  $img_plus
352
 
 * @global  $href_left
353
 
 * @global  $db_start
354
 
 * @global  $common_url_query
 
350
 * @global  integer $element_counter
 
351
 * @global  string $img_minus
 
352
 * @global  string $img_plus
 
353
 * @global  string $href_left
 
354
 * @global  string $db_start
 
355
 * @global  string $common_url_query
355
356
 * @param   array   $ext_dblist extended db list
356
357
 * @param   integer $offset
357
358
 * @param   integer $count