aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-felveteli/www/include
diff options
context:
space:
mode:
authorM.Gergo2019-07-15 12:16:55 +0200
committerM.Gergo2019-07-15 12:16:55 +0200
commit389e70b9aff181663269ab3e7ca3c16ab58f3e0f (patch)
tree2886248de98edd44a0d1d73e1c6244b7f69c5104 /mayor-orig/mayor-felveteli/www/include
parentb91cdd7ba1a9e9c8c605640cc3c910acd25bf767 (diff)
downloadmayor-rev4519.tar.gz
mayor-rev4519.zip
Rev: 4519rev4519
Diffstat (limited to 'mayor-orig/mayor-felveteli/www/include')
-rw-r--r--mayor-orig/mayor-felveteli/www/include/menu/private/hu_HU/module-felveteli.php1
-rw-r--r--mayor-orig/mayor-felveteli/www/include/menu/public/hu_HU/module-felveteli.php4
-rw-r--r--mayor-orig/mayor-felveteli/www/include/modules/felveteli/szobeli.php15
3 files changed, 18 insertions, 2 deletions
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'";