bug #2634827 [import] Using DELIMITER produces infinite cycle
[phpmyadmin/madhuracj.git] / import_status.php
blobfa148f06e5fd291fca9e80a7d9034db1ab5a603a
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
24 echo $_SESSION['Import_message']['message'];
25 echo '<fieldset class="tblFooters">'."\n";
26 echo ' [ <a href="'.$_SESSION['Import_message']['go_back_url'].'">'.$GLOBALS["strBack"].'</a> ]' ."\n";
27 echo '</fieldset>'."\n";
29 } else {
30 PMA_importAjaxStatus($GLOBALS["id"]);