aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/policy/public
diff options
context:
space:
mode:
authorM.Gergo2021-05-17 17:50:05 +0200
committerM.Gergo2021-05-17 17:50:05 +0200
commitef8b3fd973fa34b303370d5acc21744e57bca507 (patch)
tree67a42f55b0f36f024c33d8892c1112e8c5746556 /mayor-orig/mayor-naplo/www/policy/public
parentfb24a50c54d5776468e49def08aea44c4077eb47 (diff)
downloadmayor-ef8b3fd973fa34b303370d5acc21744e57bca507.tar.gz
mayor-ef8b3fd973fa34b303370d5acc21744e57bca507.zip
Rev: 4787rev4787
Diffstat (limited to 'mayor-orig/mayor-naplo/www/policy/public')
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/dokumentum/dokumentum-pre.php5
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/dokumentum/dokumentum.php4
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/level-pre.php48
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/level.php3
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/szobeli-pre.php46
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/szobeli.php33
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php55
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php7
8 files changed, 201 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/dokumentum/dokumentum-pre.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/dokumentum/dokumentum-pre.php
new file mode 100644
index 00000000..785e119a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/dokumentum/dokumentum-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ $ADAT = getDokumentumokAssoc();
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/dokumentum/dokumentum.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/dokumentum/dokumentum.php
new file mode 100644
index 00000000..031863f6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/dokumentum/dokumentum.php
@@ -0,0 +1,4 @@
+<?php
+ global $ADAT;
+ putDokumentumLista($ADAT);
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/level-pre.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/level-pre.php
new file mode 100644
index 00000000..f4fda5a4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/level-pre.php
@@ -0,0 +1,48 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+
+ $token = readVariable($_GET['token'],'strictstring');
+ if (
+ (_USERACCOUNT === 'mayoradmin' || __FELVETELIADMIN === true) && $token==''
+ ) {
+
+ } else {
+
+ if (strlen($token)==40) {
+
+ $q = "SELECT oId FROM felveteli_levelLog WHERE token='%s' AND generalasDt>= NOW() - interval 10 MINUTE";
+ $v = array($token);
+ $oId = db_query($q, array('modul'=>'naplo','result'=>'value','values'=>$v,'debug'=>false));
+
+ if ($oId=='') {
+ $_SESSION['alert'][] = 'info::Ez a token már nem érvényes!';
+ } else {
+ //$q = "SELECT * FROM adatok_"._EV." ORDER BY evfolyam,nev";
+ $q = "SELECT * FROM felveteli WHERE oId='%s'";
+ $v = array($oId);
+ $r = db_query($q, array('modul'=>'naplo','result'=>'indexed','values'=>$v));
+ $ADAT['level'] = $r;
+ $ADAT['iktsz'] = 'C8-62/2021';
+ $file = __INTEZMENY.'_'.date('Y').'_'.$oktid.$token;
+ if (pdfLevel($file, $ADAT)) {
+ $q = "UPDATE felveteli_levelLog SET letoltesDt=NOW() WHERE token='%s'";
+ $v = array($token);
+ db_query($q, array('modul'=>'naplo','values'=>$v,'debug'=>false));
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/felveteli/level&file='.$file.'.pdf'));
+ exit;
+ } else {
+ $_SESSION['alert'][] = 'info::Hiba a file-generáláskor!';
+ }
+ }
+ } else {
+ $_SESSION['alert'][] = 'info::Nem adtál meg érvényes kulcsot a letöltéshez!';
+ }
+ }
+ // ha eljutottunk idáig, visszairányíthatnánk a lekérdező oldalra
+ //header('Location: '.location('index.php?page=felveteli&f=kozponti'));
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/level.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/level.php
new file mode 100644
index 00000000..15c5adc7
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/level.php
@@ -0,0 +1,3 @@
+<?php
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/szobeli-pre.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/szobeli-pre.php
new file mode 100644
index 00000000..ad1ae31c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/szobeli-pre.php
@@ -0,0 +1,46 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/felveteli.php');
+
+ if (__FELVETELIADMIN===true) {
+ die(); // ilyen nem lehet!
+ }
+
+ $IDOSZAK = getIdoszakByTanev(array('tanev' => __TANEV, 'szemeszter' => 2, 'tipus' => array('felvételi szóbeli lekérdezés','felvételi ideiglenes rangsor lekérdezés','felvételi végeredmény lekérdezés'), 'tolDt'=>date('Y-m-d H:i:s'),'return' => '', 'arraymap'=>null));
+ $now = mktime();
+ for ($i=0; $i<count($IDOSZAK); $i++) {
+ $tolDt= $IDOSZAK[$i]['tolDt'];
+ $igDt= $IDOSZAK[$i]['igDt'];
+ if (strtotime($tolDt)<=$now && $now<strtotime($igDt)) {
+ $ok = true;
+ break;
+ }
+ }
+ if ($ok===true) {
+ define('_SZOBELI_LEKERDEZHETO', true);
+ } else {
+ define('_SZOBELI_LEKERDEZHETO', false);
+ if ($IDOSZAK[0]['tolDt']!='') $ADAT['szobeliPublikalasDt'] = $IDOSZAK[0]['tolDt'];
+ }
+
+ $action = readVariable($_POST['action'],'strictstring',null,array('lekerdezes','szobeliLekerdezes'));
+
+ if (in_array($action,array('szobeliLekerdezes')) && _SZOBELI_LEKERDEZHETO === true) {
+ $nev = readVariable($_POST['nev'],'sql');
+ $oId = readVariable($_POST['oId'],'strictstring');
+ if ($nev !='' || $oId !='') {
+ $ADAT = getFelvetelizoAdatok($nev,$oId);
+ if (is_array($ADAT)) {
+ $ADAT['szobeli'] = getSzobeliByoId(intval($ADAT['oId']));
+ $ADAT['jelentkezes'] = getJelentkezes(intval($ADAT['oId']));
+ if ($ADAT['oId']!='' && $ADAT['vegeredmeny']!='') {
+ $ADAT['token'] = updateLevelToken($ADAT['oId']);// token generálás
+ }
+ }
+ }
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/szobeli.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/szobeli.php
new file mode 100644
index 00000000..2106af02
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/felveteli/szobeli.php
@@ -0,0 +1,33 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT,$nev,$oId;
+
+ putEredmenyKereso($nev,'',$oId);
+
+if (_SZOBELI_LEKERDEZHETO === true) {
+ if (is_array($ADAT) && $nev!='' && $oId!='') {
+ putFelvetelizoAdatok($ADAT);
+// putJelentkezes($JEL,$ADAT);
+ putSzobeli($ADAT);
+// putIdeiglenesEredmeny($EREDMENY,$ADAT,$JEL);
+// $stamp = time();
+// if (
+// __FELVETELIADMIN===true ||
+// (strtotime(_VEGEREDMENY_PUBLIKALAS_DT)<=$stamp
+// && strtotime(_VEGEREDMENY_PUBLIKALAS_ENDDT)>$stamp)
+// ) {
+ putVegeredmeny($ADAT);
+// }
+ } elseif ($nev!='') {
+ //if (count($EREDMENY)==1 && $nev!='' && (_CATEGORY=='admin' || $oktid!='') ) {
+ //putIrasbeliEredmeny($EREDMENY[0]);
+ //putFelvetelizoAdatok($ADAT);
+ //putSzobeliEredmeny($EREDMENY,$ADAT);
+ //} elseif ($nev!='') {
+ putFelveteliError();
+ //}
+ }
+}
+?>
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php
new file mode 100644
index 00000000..010a7189
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php
@@ -0,0 +1,55 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/kepesites.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+
+ if (defined('__INTEZMENY') and __INTEZMENY != '') {
+ $Tanevek = getTanevek();
+ $Telephelyek = getTelephelyek();
+ $telephelyIds = array();
+ if (is_array($Telephelyek)) foreach ($Telephelyek as $index => $tAdat) $telephelyIds[] = $tAdat['telephelyId'];
+ $tanev = readVariable($_POST['tanev'], 'id', defined('__TANEV') ? __TANEV : null, $Tanevek);
+ $telephelyId = readVariable($_POST['telephelyId'], 'id', defined('__TELEPHELYID') ? __TELEPHELYID : null, $telephelyIds);
+/*
+ if ($action == 'tanevValasztas') {
+ if (isset($tanev) && $tanev !== __TANEV) {
+ if (updateSessionTanev($tanev)) {
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ } elseif ($action == 'telephelyValasztas') {
+ if (isset($telephelyId) && $telephelyId != __TELEPHELYID) {
+ if (updateSessionTelephelyId($telephelyId)) {
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ }
+*/
+ }
+ $ADAT['tanarok'] = getTanarok(array('extraAttrs'=>'titulus,statusz,besorolas,email,YEAR(beDt) AS belepesEve,IFNULL("",YEAR(kiDt)) AS kilepesEve, elerhetoseg'));
+ $ADAT['targyak'] = getTargyak(array('arraymap'=>array('targyId')));
+ $lr = db_connect('naplo_intezmeny');
+ for($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $_tanarId = $ADAT['tanarok'][$i]['tanarId'];
+ $ADAT[$_tanarId]['osztalyfonok'] = getOsztalyIdsByTanarId($_tanarId, array('tanev'=>__TANEV,'csakId'=>true),$lr);
+ $ADAT[$_tanarId]['mkVez'] = getVezetettMunkakozossegByTanarId($_tanarId,array('result'=>'assoc'),$lr);
+ $ADAT[$_tanarId]['munkakozosseg'] = getMunkakozossegByTanarId($_tanarId,array('result'=>'assoc'),$lr);
+ $ADAT[$_tanarId]['kepesites'] = getTanarKepesites($_tanarId);
+ }
+ $ADAT['osztalyok'] = getOsztalyok(__TANEV,array('result'=>'assoc'),$lr);
+ db_close($lr);
+
+// $TOOL['intezmenySelect'] = array('tipus'=>'cella', 'action' => 'intezmenyValasztas', 'post' => array());
+// $TOOL['telephelySelect'] = array('tipus'=>'cella', 'action' => 'telephelyValasztas', 'post' => array());
+// $TOOL['tanevSelect'] = array('tipus'=>'cella', 'action' => 'tanevValasztas', 'post' => array());
+
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php
new file mode 100644
index 00000000..3d15f4de
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php
@@ -0,0 +1,7 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ global $ADAT;
+ putTanarLista($ADAT);
+
+?>