summaryrefslogtreecommitdiffstats
path: root/utils/genSTR.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/genSTR.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/genSTR.php')
-rw-r--r--utils/genSTR.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/genSTR.php b/utils/genSTR.php
new file mode 100644
index 0000000..1b4c798
--- /dev/null
+++ b/utils/genSTR.php
@@ -0,0 +1,22 @@
+<?php
+ include ('../settings.php');
+ include ('../function.php');
+
+ $len = 200;
+ $charset = "3g98h%$&/()=+*?-_.:0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+
+ $moja = "";
+
+ for ($a=0; $a<200; $a++) {
+ $moja .= $charset[rand(0, strlen($charset))];
+ }
+
+
+ $njegova = (str_replace ("'", "", base64_decode($_GET['s'])));
+
+ sisplet_query ("DELETE FROM aai_prenosi WHERE timestamp < (UNIX_TIMESTAMP() - 600);");
+ sisplet_query ("INSERT INTO aai_prenosi (timestamp, moja, njegova) VALUES (UNIX_TIMESTAMP(), '" .$moja ."', '" .$njegova ."')");
+
+ die ($moja);
+
+