From: Cash Costello Date: Fri, 17 Jul 2009 01:35:46 +0000 (+0000) Subject: simple stats X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bbd3f9d8566a7050784d1adbbbbe84ab6521ec19;p=lorea%2Felgg.git simple stats --- diff --git a/views/default/tidypics/stats.php b/views/default/tidypics/stats.php index 8680ab052..ebaf9a061 100644 --- a/views/default/tidypics/stats.php +++ b/views/default/tidypics/stats.php @@ -1,3 +1,14 @@ dbprefix}entities where subtype={$img_type}"; + $total = get_data_row($query); + $num_images = $total->total; + + $img_type = get_subtype_id('object', 'album'); + $query = "SELECT count(guid) as total from {$CONFIG->dbprefix}entities where subtype={$img_type}"; + $total = get_data_row($query); + $num_albums = $total->total; + + echo $num_images . " Photos in " . $num_albums . " Albums"; ?> \ No newline at end of file