diff options
author | M.Gergo | 2019-07-15 12:16:55 +0200 |
---|---|---|
committer | M.Gergo | 2019-07-15 12:16:55 +0200 |
commit | 389e70b9aff181663269ab3e7ca3c16ab58f3e0f (patch) | |
tree | 2886248de98edd44a0d1d73e1c6244b7f69c5104 /mayor-orig/mayor-felveteli | |
parent | b91cdd7ba1a9e9c8c605640cc3c910acd25bf767 (diff) | |
download | mayor-389e70b9aff181663269ab3e7ca3c16ab58f3e0f.tar.gz mayor-389e70b9aff181663269ab3e7ca3c16ab58f3e0f.zip |
Rev: 4519rev4519
Diffstat (limited to 'mayor-orig/mayor-felveteli')
5 files changed, 23 insertions, 6 deletions
diff --git a/mayor-orig/mayor-felveteli/log/mayor-felveteli.rev b/mayor-orig/mayor-felveteli/log/mayor-felveteli.rev index 391392cb..d006b5a6 100644 --- a/mayor-orig/mayor-felveteli/log/mayor-felveteli.rev +++ b/mayor-orig/mayor-felveteli/log/mayor-felveteli.rev @@ -1 +1 @@ -4509 +4519 diff --git a/mayor-orig/mayor-felveteli/www/include/menu/private/hu_HU/module-felveteli.php b/mayor-orig/mayor-felveteli/www/include/menu/private/hu_HU/module-felveteli.php index 5fa2d29d..a952965b 100644 --- a/mayor-orig/mayor-felveteli/www/include/menu/private/hu_HU/module-felveteli.php +++ b/mayor-orig/mayor-felveteli/www/include/menu/private/hu_HU/module-felveteli.php @@ -10,6 +10,7 @@ if (__FELVETELIADMIN===true) { $MENU['modules']['felveteli'] = array( 'szobeli' => array(array('txt' => 'Eredmények')), + 'kozponti' => array(array('txt' => 'Végeredmény')), // 'import' => array(array('txt' => 'Import')), 'level' => array(array('txt' => 'Levelek generálása')), 'levelIgazgato' => array(array('txt' => 'Levelek (igazgató)')), diff --git a/mayor-orig/mayor-felveteli/www/include/menu/public/hu_HU/module-felveteli.php b/mayor-orig/mayor-felveteli/www/include/menu/public/hu_HU/module-felveteli.php index c7534d0c..621ce7df 100644 --- a/mayor-orig/mayor-felveteli/www/include/menu/public/hu_HU/module-felveteli.php +++ b/mayor-orig/mayor-felveteli/www/include/menu/public/hu_HU/module-felveteli.php @@ -24,9 +24,9 @@ 'human' => array(array('txt' => 'Humán','icon'=>'icon-hand-right')), 'informatika' => array(array('txt' => 'Informatika','icon'=>'icon-hand-right')), 'matematika' => array(array('txt' => 'Matematika','icon'=>'icon-hand-right')), -// 'kozponti' => array(array('txt' => 'Központi eredmények', 'url' => 'index.php?page=felveteli&sub=&f=kozponti')), + 'kozponti' => array(array('txt' => 'Központi eredmények', 'url' => 'index.php?page=felveteli&sub=&f=kozponti')), 'pontszamito' => array(array('txt' => 'Pontszámító segéd', 'url' => 'index.php?page=felveteli&sub=&f=pontszamito')), - 'szobeli' => array(array('txt' => 'Eredmények', 'url' => 'index.php?page=felveteli&sub=&f=szobeli')), +// 'szobeli' => array(array('txt' => 'Eredmények', 'url' => 'index.php?page=felveteli&sub=&f=szobeli')), // 'nyiltlevel2016' => array(array('txt' => 'Nyílt levél 2016', 'url' => 'index.php?page=felveteli&sub=&f=nyiltlevel2014')), 'kos' => array(array('txt'=>'Felvételi (általános iskola)', 'url'=>'index.php?page=felveteli&sub=kos')), ); 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'"; diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli.php index 0441e4ca..fa5c070b 100644 --- a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli.php +++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli.php @@ -14,11 +14,12 @@ if (_LEKERDEZHETO) { //if ($ADATOK['evfolyam']!='hat') // putJelentkezes($JEL,$ADATOK); // putSzobeliEredmeny($SZOBELI,$ADATOK); - putIdeiglenesEredmeny($EREDMENY,$ADATOK,$JEL); +// putIdeiglenesEredmeny($EREDMENY,$ADATOK,$JEL); $stamp = time(); if ( - strtotime(_VEGEREDMENY_PUBLIKALAS_DT)<=$stamp - && strtotime(_VEGEREDMENY_PUBLIKALAS_ENDDT)>$stamp + __FELVETELIADMIN===true || + (strtotime(_VEGEREDMENY_PUBLIKALAS_DT)<=$stamp + && strtotime(_VEGEREDMENY_PUBLIKALAS_ENDDT)>$stamp) ) { putVegeredmeny($ADATOK); } |