aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-felveteli/www/include/modules
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-felveteli/www/include/modules')
-rw-r--r--mayor-orig/mayor-felveteli/www/include/modules/felveteli/szobeli.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/mayor-orig/mayor-felveteli/www/include/modules/felveteli/szobeli.php b/mayor-orig/mayor-felveteli/www/include/modules/felveteli/szobeli.php
index b108360a..6590e9ea 100644
--- a/mayor-orig/mayor-felveteli/www/include/modules/felveteli/szobeli.php
+++ b/mayor-orig/mayor-felveteli/www/include/modules/felveteli/szobeli.php
@@ -1,5 +1,20 @@
<?php
+ function updateLevelToken($oktid) {
+ if ($oktid=='') return false;
+ $token = bin2hex(openssl_random_pseudo_bytes(20));
+ $ip = _clientIp();
+ $q = "INSERT INTO levelLog_"._FELVETELI_EVE." (oktid,generalasDt,ip,token) VALUES ('%s',NOW(),'%s','%s')";
+ $v = array($oktid,$ip,$token);
+ db_Query($q,array('modul'=>'felveteli','values'=>$v,'debug'=>false),$lr);
+ return $token;
+ }
+
+ function checkLevelToken($token) {
+
+ }
+
+
function getIrasbeliEredmeny($nev,$oId) {
$lr = @db_connect('felveteli');
$q = "SELECT * FROM irasbeli_eredmenyek_"._EV." WHERE nev='%s' AND oId='%s'";