Merge remote-tracking branch 'origin/master'
[phpmyadmin/madhuracj.git] / import_status.php
blob75a336104f8e05e85a2ddf7a03c1a09e5c844f70
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 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
20 usleep(300000);
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";
32 } else {
33 PMA_importAjaxStatus($GLOBALS["id"]);