Merge remote branch 'origin/master'
[phpmyadmin/dkf.git] / import_status.php
blob4125eadeabdd9cfb5f6d045a1edddc1965e6a4bc
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
9 require_once './libraries/common.inc.php';
10 require_once './libraries/display_import_ajax.lib.php';
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
16 // $GLOBALS["message"] is used for asking for an import message
17 if (isset($GLOBALS["message"]) && $GLOBALS["message"]) {
19 header('Content-type: text/html');
21 // wait 0.3 sec before we check for $_SESSION variable, which is set inside import.php
22 usleep(300000);
24 // wait until message is available
25 while ($_SESSION['Import_message']['message'] == null) {
26 usleep(250000); // 0.25 sec
29 echo $_SESSION['Import_message']['message'];
30 echo '<fieldset class="tblFooters">' . "\n";
31 echo ' [ <a href="' . $_SESSION['Import_message']['go_back_url'] . '">' . __('Back') . '</a> ]' . "\n";
32 echo '</fieldset>'."\n";
34 } else {
35 PMA_importAjaxStatus($GLOBALS["id"]);