2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 require_once './libraries/common.inc.php';
9 require_once './libraries/display_import_ajax.lib.php';
11 // AJAX requests can't be cached!
12 PMA_no_cache_header();
14 // $GLOBALS["message"] is used for asking for an import message
15 if (isset($GLOBALS["message"]) && $GLOBALS["message"]) {
17 header('Content-type: text/html');
19 // wait 0.3 sec before we check for $_SESSION variable, which is set inside import.php
22 // wait until message is available
23 while ($_SESSION['Import_message']['message'] == null) {
24 usleep(250000); // 0.25 sec
27 echo $_SESSION['Import_message']['message'];
28 echo '<fieldset class="tblFooters">' . "\n";
29 echo ' [ <a href="' . $_SESSION['Import_message']['go_back_url'] . '">' . __('Back') . '</a> ]' . "\n";
30 echo '</fieldset>'."\n";
33 PMA_importAjaxStatus($GLOBALS["id"]);