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

« back to all changes in this revision

Viewing changes to tbl_operations.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: tbl_operations.php 12154 2008-12-23 18:15:56Z lem9 $
 
5
 * @version $Id: tbl_operations.php 12297 2009-03-22 12:05:21Z lem9 $
 
6
 * @package phpMyAdmin
6
7
 */
7
8
 
8
9
/**
179
180
} // end if
180
181
 
181
182
if ($reread_info) {
 
183
    // to avoid showing the old value (for example the AUTO_INCREMENT) after
 
184
    // a change, clear the cache
 
185
    PMA_Table::$cache = array(); 
182
186
    $page_checksum = $checksum = $delay_key_write = 0;
183
187
    require './libraries/tbl_info.inc.php';
184
188
}
190
194
require_once './libraries/tbl_links.inc.php';
191
195
 
192
196
if (isset($result)) {
193
 
    // set to success by default, because result set could be empty 
 
197
    // set to success by default, because result set could be empty
194
198
    // (for example, a table rename)
195
199
    $_type = 'success';
196
200
    if (empty($_message)) {
701
705
require_once './libraries/footer.inc.php';
702
706
 
703
707
 
704
 
function PMA_set_global_variables_for_engine($tbl_type) 
 
708
function PMA_set_global_variables_for_engine($tbl_type)
705
709
{
706
710
    global $is_myisam_or_maria, $is_innodb, $is_isam, $is_berkeleydb, $is_maria, $is_pbxt;
707
711
 
708
712
    $is_myisam_or_maria = $is_isam = $is_innodb = $is_berkeleydb = $is_maria = $is_pbxt = false;
709
713
    $upper_tbl_type = strtoupper($tbl_type);
710
 
    
 
714
 
711
715
    //Options that apply to MYISAM usually apply to MARIA
712
716
    $is_myisam_or_maria = ($upper_tbl_type == 'MYISAM' || $upper_tbl_type == 'MARIA');
713
717
    $is_maria = ($upper_tbl_type == 'MARIA');