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