diff options
Diffstat (limited to 'utils/genSTR.php')
-rw-r--r-- | utils/genSTR.php | 22 |
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);
+
+
|