From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../Plugins/Import/Upload/UploadProgress.php | 97 ---------------------- 1 file changed, 97 deletions(-) delete mode 100644 srcs/phpmyadmin/libraries/classes/Plugins/Import/Upload/UploadProgress.php (limited to 'srcs/phpmyadmin/libraries/classes/Plugins/Import/Upload/UploadProgress.php') diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Import/Upload/UploadProgress.php b/srcs/phpmyadmin/libraries/classes/Plugins/Import/Upload/UploadProgress.php deleted file mode 100644 index 13578e0..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Import/Upload/UploadProgress.php +++ /dev/null @@ -1,97 +0,0 @@ - $id, - 'finished' => false, - 'percent' => 0, - 'total' => 0, - 'complete' => 0, - 'plugin' => UploadProgress::getIdKey(), - ]; - } - $ret = $_SESSION[$SESSION_KEY][$id]; - - if (! ImportAjax::progressCheck() || $ret['finished']) { - return $ret; - } - - $status = null; - if (function_exists('uploadprogress_get_info')) { - $status = uploadprogress_get_info($id); - } - - if ($status) { - if ($status['bytes_uploaded'] == $status['bytes_total']) { - $ret['finished'] = true; - } else { - $ret['finished'] = false; - } - $ret['total'] = $status['bytes_total']; - $ret['complete'] = $status['bytes_uploaded']; - - if ($ret['total'] > 0) { - $ret['percent'] = $ret['complete'] / $ret['total'] * 100; - } - } else { - $ret = [ - 'id' => $id, - 'finished' => true, - 'percent' => 100, - 'total' => $ret['total'], - 'complete' => $ret['total'], - 'plugin' => UploadProgress::getIdKey(), - ]; - } - - $_SESSION[$SESSION_KEY][$id] = $ret; - - return $ret; - } -} -- cgit