typo
[phpmyadmin/arisferyanto.git] / libraries / import / upload / noplugin.php
blobaf55d76813ba5a7baa8323acf3c1568a7e686efd
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 function PMA_getUploadStatus($id) {
16 global $SESSION_KEY;
17 global $ID_KEY;
19 if (trim($id) == "") {
20 return;
22 if (! array_key_exists($id, $_SESSION[$SESSION_KEY])) {
23 $_SESSION[$SESSION_KEY][$id] = array(
24 'id' => $id,
25 'finished' => false,
26 'percent' => 0,
27 'total' => 0,
28 'complete' => 0,
29 'plugin' => $ID_KEY
32 $ret = $_SESSION[$SESSION_KEY][$id];
34 return $ret;