summaryrefslogtreecommitdiffstats
path: root/uploadi/counter.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
commit19985dbb8c0aa66dc4bf7905abc1148de909097d (patch)
tree2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /uploadi/counter.php
download1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip
Diffstat (limited to 'uploadi/counter.php')
-rw-r--r--uploadi/counter.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/uploadi/counter.php b/uploadi/counter.php
new file mode 100644
index 0000000..f93a91e
--- /dev/null
+++ b/uploadi/counter.php
@@ -0,0 +1,10 @@
+<?php
+
+ include_once ('../function.php');
+
+ $fn = $_GET['fn'];
+ $fn = str_replace ("'", "", $fn);
+
+ $result = sisplet_query ("INSERT INTO UlCounter (filename, timestamp) VALUES ('$fn', NOW())");
+ header ('location: ' .$site_url .'uploadi/editor/' .$fn);
+?> \ No newline at end of file