aboutsummaryrefslogtreecommitdiff
path: root/www/stats.php
diff options
context:
space:
mode:
authorjimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003>2006-02-14 20:52:54 +0000
committerjimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003>2006-02-14 20:52:54 +0000
commitb50897cb0fdf0d42d306b20b8e38f19f8e2832e3 (patch)
tree101066455a67bc4c1be5244f6fbdf608df5f021e /www/stats.php
parent20407702b92cb93970eaa4a71e659f383d2f92a5 (diff)
downloadoriginal-b50897cb0fdf0d42d306b20b8e38f19f8e2832e3.tar.gz
original-b50897cb0fdf0d42d306b20b8e38f19f8e2832e3.tar.bz2
add sqlite hooks
git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@9 4fa712ea-3c06-0410-9261-c11b4c06c003
Diffstat (limited to 'www/stats.php')
-rw-r--r--www/stats.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/www/stats.php b/www/stats.php
new file mode 100644
index 0000000..1a47ee7
--- /dev/null
+++ b/www/stats.php
@@ -0,0 +1,25 @@
+<?php
+require_once ("lib/lib.l10n.php");
+require_once("inc/config.inc.php");
+require_once("inc/www.class.inc.php");
+require_once("inc/funkce.inc.php");
+
+l10n::set("$root/l10n/".$sclang."/main.lang");
+
+$page = new C_www;
+if ($GLOBALS['have_sqlite']) {
+ $page->header("Photo Statistics");
+ require("inc/header.inc.php");
+ //recent views
+ print "<h2>Recently Viewed</h2>";
+ //recently commented
+ print "<h2>Recently Commented</h2>";
+ //most viewed
+ print "<h2>Most Viewed</h2>";
+ //most discussed
+ print "<h2>Most Discussed</h2>";
+} else {
+ $page->error("No SQLite", "You need SQLite to use view statistics.");
+}
+$page->footer();
+?>