Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2009-07-02 16:12:06 +0400
committerMarc Delisle <marc@infomarc.info>2009-07-02 16:12:06 +0400
commit60536d78e16eced688f29d8cb6a378707bc6ef92 (patch)
tree38eaa5a7cc9282fc548e0f6faa79399ec29bb954 /import_status.php
parent1dae3a15e2f1fa58fd2d63ac651251ef13cef87c (diff)
patch #2798592 [import] Progress bar
Diffstat (limited to 'import_status.php')
-rw-r--r--import_status.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/import_status.php b/import_status.php
new file mode 100644
index 0000000000..5ce2536742
--- /dev/null
+++ b/import_status.php
@@ -0,0 +1,32 @@
+<?php
+/* vim: set expandtab sw=4 ts=4 sts=4: */
+/**
+ *
+ * @version $Id$
+ * @package phpMyAdmin
+ */
+
+require_once './libraries/common.inc.php';
+require_once './libraries/display_import_ajax.lib.php';
+
+// AJAX requests can't be cached!
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Expires: Sat, 11 Jan 1991 06:30:00 GMT"); // Date in the past
+
+// $GLOBALS["message"] is used for asking for an import message
+if ($GLOBALS["message"]) {
+
+ header('Content-type: text/html');
+
+ while ($_SESSION['Import_message']['message']==null) // wait until message is available
+ usleep(250000); // 0.25 sec
+
+ echo $_SESSION['Import_message']['message'];
+ echo '<fieldset class="tblFooters">'."\n";
+ echo ' [ <a href="'.$_SESSION['Import_message']['go_back_url'].'">'.$GLOBALS["strBack"].'</a> ]' ."\n";
+ echo '</fieldset>'."\n";
+
+} else {
+ PMA_importAjaxStatus($GLOBALS["id"]);
+}
+?>