From 649c44446a2368ac004ffa5778704f7213cf54ad Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 20 Sep 2007 01:56:42 +0000 Subject: more sorting fixes, and move catalog stats to statistics --- lib/ui.lib.php | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'lib/ui.lib.php') diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 13065075..df4251b3 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -411,53 +411,6 @@ function show_all_popular() { } // show_all_popular -/** - * show_local_catalog_info - * Shows the catalog stats - * @package Web INterface - * @catagory Display - */ -function show_local_catalog_info() { - - /* Before we display anything make sure that they have a catalog */ - $query = "SELECT * FROM catalog"; - $db_results = Dba::query($query); - - // Make sure we have something to display - if (Dba::num_rows($db_results) < 1) { - show_box_top(); - echo "" . _('No Catalogs Found!') . "
"; - echo "" ._('Add a Catalog') . ""; - show_box_bottom(); - return false; - } - - $results = Catalog::get_stats(); - - $hours = floor($results['time']/3600); - $size = $results['size']/1048576; - - $days = floor($hours/24); - $hours = $hours%24; - - $time_text = "$days "; - $time_text .= ($days == 1) ? _("day") : _("days"); - $time_text .= ", $hours "; - $time_text .= ($hours == 1) ? _("hour") : _("hours"); - - if ( $size > 1024 ) { - $total_size = sprintf("%.2f", ($size/1024)); - $size_unit = "GB"; - } - else { - $total_size = sprintf("%.2f", $size); - $size_unit = "MB"; - } - - require Config::get('prefix') . '/templates/show_local_catalog_info.inc.php'; - -} // show_local_catalog_info - /** * img_resize * this automaticly resizes the image for thumbnail viewing -- cgit