aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/stats.php
blob: ebaf9a06141be4b975552e8be02979647fc39bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

	$img_type = get_subtype_id('object', 'image');
	$query = "SELECT count(guid) as total from {$CONFIG->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";
?>