File: noplugin.php

package info (click to toggle)
phpmyadmin 4%3A3.3.7-11
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 19,656 kB
  • ctags: 112,701
  • sloc: php: 196,369; sh: 617; sql: 208; perl: 142; python: 105; makefile: 42
file content (36 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
*
* @version $Id$
* @package phpMyAdmin
*/

if (! defined('PHPMYADMIN')) {
    exit;
}

$ID_KEY      = 'noplugin';

function PMA_getUploadStatus($id) {
    global $SESSION_KEY;
    global $ID_KEY;
  
    if (trim($id) == "") {
        return;
    }
    if (! array_key_exists($id, $_SESSION[$SESSION_KEY])) {
        $_SESSION[$SESSION_KEY][$id] = array(
                    'id'       => $id,
                    'finished' => false,
                    'percent'  => 0,
                    'total'    => 0,
                    'complete' => 0,
	        	    'plugin'   => $ID_KEY
        );
    }
    $ret = $_SESSION[$SESSION_KEY][$id];

    return $ret;
}
?>