Merge branch 'QA_3_3'
[phpmyadmin/dkf.git] / libraries / import / upload / noplugin.php
blobb3baf70e1747fbfda8893c89f374af300fca54a2
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
9 if (! defined('PHPMYADMIN')) {
10 exit;
13 $ID_KEY = 'noplugin';
15 /**
16 * Returns upload status.
18 * This is implementation when no webserver support exists, so it returns just zeroes.
20 function PMA_getUploadStatus($id) {
21 global $SESSION_KEY;
22 global $ID_KEY;
24 if (trim($id) == "") {
25 return;
27 if (! array_key_exists($id, $_SESSION[$SESSION_KEY])) {
28 $_SESSION[$SESSION_KEY][$id] = array(
29 'id' => $id,
30 'finished' => false,
31 'percent' => 0,
32 'total' => 0,
33 'complete' => 0,
34 'plugin' => $ID_KEY
37 $ret = $_SESSION[$SESSION_KEY][$id];
39 return $ret;