$filename){ if($filename!=".." && $filename!="." && $filename!="index.php"){ if(is_dir($dir."/".$filename)){ $new_foldersize = foldersize($dir."/".$filename); $count_size = $count_size+ $new_foldersize; }else if(is_file($dir."/".$filename)){ $count_size = $count_size + filesize($dir."/".$filename); $count++; } } } return $count_size; } // size converter function sizeFormat($bytes){ $kb = 1024; $mb = $kb * 1024; $gb = $mb * 1024; $tb = $gb * 1024; if (($bytes >= 0) && ($bytes < $kb)) { return $bytes . ' B'; } elseif (($bytes >= $kb) && ($bytes < $mb)) { return ceil($bytes / $kb) . ' KB'; } elseif (($bytes >= $mb) && ($bytes < $gb)) { return ceil($bytes / $mb) . ' MB'; } elseif (($bytes >= $gb) && ($bytes < $tb)) { return ceil($bytes / $gb) . ' GB'; } elseif ($bytes >= $tb) { return ceil($bytes / $tb) . ' TB'; } else { return $bytes . ' B'; } } // get size of folders in a folder $plugin_count = count(glob('../../plugins/*', GLOB_ONLYDIR)); // Get version $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $github_api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); curl_setopt($ch, CURLOPT_USERAGENT, 'AnonUpload'); $headers = array(); $headers[] = 'Accept: application/vnd.github+json'; $headers[] = 'X-Github-Api-Version: 2022-11-28'; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); $server_version = $result['tag_name']; if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close($ch); ?>

Dashboard

Total Files

Storage Used

Plugins Installed

Version

version){ echo '

update available

'; } echo $server_version; ?>


'; } template_admin_footer();