aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/archive.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/controllers/archive.php b/controllers/archive.php
new file mode 100644
index 0000000..a54387b
--- /dev/null
+++ b/controllers/archive.php
@@ -0,0 +1,10 @@
+<?php
+
+function on_get() {
+ global $page;
+ try {
+ $page = Database\Webpage::fromDB($_GET["page_url"]);
+ $page->incrementVisits();
+ }
+ catch(Exception $e) {}
+}