3.3.0-beta1
[phpmyadmin/tyronm.git] / import_status.php
blob93cd7ba00e067bc7229c1083c53969a659dfe665
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 while ($_SESSION['Import_message']['message'] == null) { // wait until message is available
22 usleep(250000); // 0.25 sec
25 echo $_SESSION['Import_message']['message'];
26 echo '<fieldset class="tblFooters">' . "\n";
27 echo ' [ <a href="' . $_SESSION['Import_message']['go_back_url'] . '">' . $GLOBALS["strBack"] . '</a> ]' . "\n";
28 echo '</fieldset>'."\n";
30 } else {
31 PMA_importAjaxStatus($GLOBALS["id"]);