Translation update done using Pootle.
[phpmyadmin-themes.git] / import_status.php
blobdccd41fdddbf11a1071d0cc0bbc3254da2975a18
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 usleep(300000); // wait 0.3 sec before we check for $_SESSION variable, which is set inside import.php
22 while ($_SESSION['Import_message']['message'] == null) { // wait until message is available
23 usleep(250000); // 0.25 sec
26 echo $_SESSION['Import_message']['message'];
27 echo '<fieldset class="tblFooters">' . "\n";
28 echo ' [ <a href="' . $_SESSION['Import_message']['go_back_url'] . '">' . $GLOBALS["strBack"] . '</a> ]' . "\n";
29 echo '</fieldset>'."\n";
31 } else {
32 PMA_importAjaxStatus($GLOBALS["id"]);