From bbd3f9d8566a7050784d1adbbbbe84ab6521ec19 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 17 Jul 2009 01:35:46 +0000 Subject: simple stats --- views/default/tidypics/stats.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'views') 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 -- cgit v1.2.3