summaryrefslogtreecommitdiffstats
path: root/utils/musarca.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 /utils/musarca.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 'utils/musarca.php')
-rw-r--r--utils/musarca.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/musarca.php b/utils/musarca.php
new file mode 100644
index 0000000..ee7527f
--- /dev/null
+++ b/utils/musarca.php
@@ -0,0 +1,22 @@
+<?php
+
+/**********************************************
+ *
+ * v .htaccess moraš dodati
+ *
+ * /cookie_da => utils/musarca.php?c=1
+ * /cookie_ne => utils/musarca.php?c=0
+ *
+ */
+
+
+if ($_GET['c']=="1") {
+ // setcookie,...
+ setcookie ('AllowCookie', '1', time()+(3600*24*365*10), '/');
+}
+else {
+ // setcookie....
+ setcookie ('AllowCookie', '0', time()+(3600*24*365*10), '/');
+}
+header ('location: /index.php');
+?>