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

« back to all changes in this revision

Viewing changes to import_status.php

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2010-03-08 15:25:00 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100308152500-6e8hmuqc5co39de5
Tags: 4:3.3.0-1
* New upstream version.
* Rediff debian/patches.
* Fix permissions on mediawiki export extension.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/* vim: set expandtab sw=4 ts=4 sts=4: */
 
3
/**
 
4
 *
 
5
 * @version $Id: import_status.php 13427 2010-03-03 09:02:12Z helmo $
 
6
 * @package phpMyAdmin
 
7
 */
 
8
 
 
9
require_once './libraries/common.inc.php';
 
10
require_once './libraries/display_import_ajax.lib.php';
 
11
 
 
12
// AJAX requests can't be cached!
 
13
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
 
14
header("Expires: Sat, 11 Jan 1991 06:30:00 GMT"); // Date in the past
 
15
 
 
16
// $GLOBALS["message"] is used for asking for an import message
 
17
if (isset($GLOBALS["message"]) && $GLOBALS["message"]) {
 
18
 
 
19
    header('Content-type: text/html');
 
20
 
 
21
        usleep(300000); // wait 0.3 sec before we check for $_SESSION variable, which is set inside import.php 
 
22
    while ($_SESSION['Import_message']['message'] == null) { // wait until message is available 
 
23
        usleep(250000); // 0.25 sec
 
24
    }
 
25
 
 
26
    echo $_SESSION['Import_message']['message'];
 
27
    echo '<fieldset class="tblFooters">' . "\n";
 
28
    echo '      [ <a href="' . $_SESSION['Import_message']['go_back_url'] . '">' . $GLOBALS["strBack"] . '</a> ]' . "\n";
 
29
    echo '</fieldset>'."\n";
 
30
 
 
31
} else {
 
32
    PMA_importAjaxStatus($GLOBALS["id"]);
 
33
}
 
34
?>