aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-felveteli/www/policy/private
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 23:32:47 +0100
committerM.Gergo2019-03-08 23:32:47 +0100
commitc0f79397dd75e03a7a40303f82926e8187697d07 (patch)
treee945a10ef6479e0f8720ad9cd4947b6a85b78d6e /mayor-orig/mayor-felveteli/www/policy/private
parentf51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (diff)
downloadmayor-c0f79397dd75e03a7a40303f82926e8187697d07.tar.gz
mayor-c0f79397dd75e03a7a40303f82926e8187697d07.zip
Rev: 4455
Diffstat (limited to 'mayor-orig/mayor-felveteli/www/policy/private')
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritek-pre.php23
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritek.php0
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritekIgazgato-pre.php25
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritekIgazgato.php0
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/kozponti-pre.php68
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/kozponti.php47
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/level-pre.php57
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/level.php0
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/levelIgazgato-pre.php59
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/levelIgazgato.php28
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli-pre.php38
-rw-r--r--mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli.php36
12 files changed, 381 insertions, 0 deletions
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritek-pre.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritek-pre.php
new file mode 100644
index 00000000..809705d7
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritek-pre.php
@@ -0,0 +1,23 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (
+ _USERACCOUNT != 'mayoradmin' && __FELVETELIADMIN !== true
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+
+ $q = "SELECT * FROM adatok_"._EV." ORDER BY evfolyam,nev";
+ $r = db_query($q, array('modul'=>'felveteli','result'=>'indexed'));
+ $ADAT = $r;
+
+ $file = 'boritekok';
+ if (pdfBoritek($file, $ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=felveteli/boritek&file='.$file.'.pdf'));
+ else
+ $_SESSION['alert'][] = 'nem sikerült';
+ }
+?>
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritek.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritek.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritek.php
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritekIgazgato-pre.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritekIgazgato-pre.php
new file mode 100644
index 00000000..45a1dcc2
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritekIgazgato-pre.php
@@ -0,0 +1,25 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (
+ _USERACCOUNT != 'mayoradmin' && __FELVETELIADMIN !== true
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+
+ $q = "select distinct omkod, nev, megye, telepules, cim, irsz
+ from iskolak where omkod in (select distinct OM from adatok_"._EV." where level2 != 'nem kell értesíteni')
+ order by omkod";
+ $r = db_query($q, array('modul'=>'felveteli','result'=>'indexed'));
+ $ADAT = $r;
+
+ $file = 'boritekokIgazgato';
+ if (pdfBoritek($file, $ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=felveteli/boritekIgazgato&file='.$file.'.pdf'));
+ else
+ $_SESSION['alert'][] = 'nem sikerült';
+ }
+?>
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritekIgazgato.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritekIgazgato.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/boritekIgazgato.php
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/kozponti-pre.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/kozponti-pre.php
new file mode 100644
index 00000000..58fcf086
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/kozponti-pre.php
@@ -0,0 +1,68 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ $action = readVariable($_POST['action'],'strictstring',array('lekerdezes'));
+ $stamp = mktime();
+
+ if (strtotime(_IRASBELI_PUBLIKALAS_DT)<=$stamp && strtotime(_IRASBELI_PUBLIKALAS_ENDDT)>$stamp)
+ define('_IDOSZAK','irasbeli');
+ elseif (strtotime(_IDEIGLENES_PUBLIKALAS_DT)<=$stamp && strtotime(_IDEIGLENES_PUBLIKALAS_ENDDT)>$stamp)
+ define('_IDOSZAK','ideiglenes');
+ elseif (strtotime(_VEGEREDMENY_PUBLIKALAS_DT)<=$stamp && strtotime(_VEGEREDMENY_PUBLIKALAS_ENDDT)>$stamp)
+ define('_IDOSZAK','vegeredmeny');
+ elseif (strtotime(_SZOBELI_PUBLIKALAS_DT)<=$stamp && strtotime(_SZOBELI_PUBLIKALAS_ENDDT)>$stamp)
+ define('_IDOSZAK','szobeliEredmeny');
+ else
+ define('_IDOSZAK',false);
+
+ if ( _CATEGORY == 'admin' || __FELVETELIADMIN===true ||
+ (strtotime(_IRASBELI_PUBLIKALAS_DT)<=$stamp
+ &&
+ strtotime(_IRASBELI_PUBLIKALAS_ENDDT)>$stamp
+ ) ||
+ (strtotime(_SZOBELI_PUBLIKALAS_DT)<=$stamp
+ &&
+ strtotime(_SZOBELI_PUBLIKALAS_ENDDT)>$stamp
+ ) ||
+ (strtotime(_VEGEREDMENY_PUBLIKALAS_DT)<=$stamp
+ &&
+ strtotime(_VEGEREDMENY_PUBLIKALAS_ENDDT)>$stamp
+ ) ||
+ (strtotime(_IDEIGLENES_PUBLIKALAS_DT)<=$stamp
+ &&
+ strtotime(_IDEIGLENES_PUBLIKALAS_ENDDT)>$stamp
+ )
+ ) {
+ define('_LEKERDEZHETO',true);
+ } else {
+ define('_LEKERDEZHETO',false);
+ }
+
+ if ($action=='lekerdezes' && _LEKERDEZHETO === true) {
+ $nev = readVariable($_POST['nev'],'sql');
+ $oktid = readVariable($_POST['oktid'],'strictstring');
+ $an = readVariable($_POST['an'],'sql');
+ $szuldt = readVariable($_POST['szuldt'], 'date');
+ if (
+ __FELVETELIADMIN==true
+ || ($nev != ''
+ && ($oktid !='' || ($szuldt != '' && $an != ''))
+ )
+ ) {
+ if (_IDOSZAK!='irasbeli') $ADATOK = getFelvetelizoAdatok($nev,$oktid); // ez név nélkül nem ad vissza eredményt - adminnak sem...
+ if (is_array($ADATOK)) {
+ if (_IDOSZAK==='szobeliBeosztas') $SZOBELI = getSzobeli(intval($ADATOK['id']));
+ if (_IDOSZAK==='ideiglenes') $EREDMENY = getIdeiglenesRangsor(intval($ADATOK['oktid']));
+ }
+//2012// if (_IDOSZAK==='szobeliEredmeny') $EREDMENY = getSzobeliEredmeny($ADATOK['id']);
+ if (_IDOSZAK==='szobeliEredmeny') $SZOBELI = getSzobeli($ADATOK['id']);
+ if (_IDOSZAK==='irasbeli') $EREDMENY = getIrasbeliEredmeny($nev,$oktid, $an, $szuldt); // ha nincs oktid, akkor a másik kettő...
+ if (_IDOSZAK==='vegeredmeny' && $ADATOK['oktid']!='') {
+ // token generálás
+ $ADATOK['token'] = updateLevelToken($ADATOK['oktid']);
+ }
+ }
+ }
+
+?>
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/kozponti.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/kozponti.php
new file mode 100644
index 00000000..5133429e
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/kozponti.php
@@ -0,0 +1,47 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $EREDMENY,$ADATOK,$SZOBELI,$nev,$oktid;
+
+ putEredmenyKereso($nev,$diak,$oktid);
+
+if (_LEKERDEZHETO) {
+ if (_IDOSZAK==='irasbeli' && is_array($EREDMENY[0])) putIrasbeliEredmeny($EREDMENY[0]);
+ elseif(_IDOSZAK==='ideiglenes' && is_array($ADATOK)) {
+ putFelvetelizoAdatok($ADATOK);
+ putIdeiglenesEredmeny($EREDMENY,$ADATOK);
+ }
+ elseif(_IDOSZAK==='vegeredmeny' && is_array($ADATOK)) {
+ putFelvetelizoAdatok($ADATOK);
+ putVegeredmeny($ADATOK);
+ }
+ elseif (_IDOSZAK==='szobeliEredmeny' && is_array($ADATOK)) {
+ putFelvetelizoAdatok($ADATOK);
+ putSzobeliEredmeny($SZOBELI,$ADATOK);
+ }
+
+/*
+ if (is_array($ADATOK)) {
+ putFelvetelizoAdatok($ADATOK);
+ //if ($ADATOK['evfolyam']!='hat')
+ if (_IDOSZAK==='szobeliEredmeny') putSzobeliEredmeny($SZOBELI,$ADATOK);
+ $stamp = time();
+ if ( _IDOSZAK==='vegeredmeny') {
+ putVegeredmeny($ADATOK);
+ } elseif (_IDOSZAK==='ideiglenesEredmeny') {
+
+ }
+ } elseif ($nev!='') {
+ //if (count($EREDMENY)==1 && $nev!='' && (_CATEGORY=='admin' || $oktid!='') ) {
+ // putIrasbeliEredmeny($EREDMENY[0]);
+ //putFelvetelizoAdatok($ADATOK);
+ //putSzobeliEredmeny($EREDMENY,$ADATOK);
+ //} elseif ($nev!='') {
+ // putFelveteliError();
+ //}
+ }
+*/
+
+}
+?>
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/level-pre.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/level-pre.php
new file mode 100644
index 00000000..abebfde8
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/level-pre.php
@@ -0,0 +1,57 @@
+<?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==''
+ ) {
+ $q = "SELECT * FROM adatok_"._EV." ORDER BY evfolyam,nev";
+ $r = db_query($q, array('modul'=>'felveteli','result'=>'indexed'));
+ $ADAT['level'] = $r;
+ $file = 'VarosmajoriGimnazium_'._EV.'_teljes';
+ if (pdfLevel($file, $ADAT)) {
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=felveteli/level&file='.$file.'.pdf'));
+ } else {
+ $_SESSION['alert'][] = 'info::Hiba a file-generáláskor!';
+ }
+
+ } else {
+
+ if (strlen($token)==40) {
+
+ $q = "SELECT oktid FROM levelLog_"._EV." WHERE token='%s' AND generalasDt>= NOW() - interval 10 MINUTE";
+ $v = array($token);
+ $oktid = db_query($q, array('modul'=>'felveteli','result'=>'value','values'=>$v,'debug'=>false));
+
+ if ($oktid=='') {
+ $_SESSION['alert'][] = 'info::Ez a token már nem érvényes!';
+ } else {
+ //$q = "SELECT * FROM adatok_"._EV." ORDER BY evfolyam,nev";
+ $q = "SELECT * FROM adatok_"._EV." WHERE oktid='%s'";
+ $v = array($oktid);
+ $r = db_query($q, array('modul'=>'felveteli','result'=>'indexed','values'=>$v));
+ $ADAT['level'] = $r;
+
+ $file = "VarosmajoriGimnazium"._EV.'_'.$oktid.$token;
+ if (pdfLevel($file, $ADAT)) {
+ $q = "UPDATE levelLog_"._EV." SET letoltesDt=NOW() WHERE token='%s'";
+ $v = array($token);
+ db_query($q, array('modul'=>'felveteli','values'=>$v,'debug'=>false));
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=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-felveteli/www/policy/private/felveteli/level.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/level.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/level.php
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/levelIgazgato-pre.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/levelIgazgato-pre.php
new file mode 100644
index 00000000..f157dead
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/levelIgazgato-pre.php
@@ -0,0 +1,59 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (
+ _USERACCOUNT != 'mayoradmin' && __FELVETELIADMIN !== true
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/share/net/class.smtp.php');
+ require_once('include/share/net/phpmailer.php');
+
+ $ADAT['generatePDF'] = readVariable($_POST['generatePDF'],'id',null);
+ $ADAT['sendMAIL'] = readVariable($_POST['sendMAIL'],'strictstring',null);
+
+ $q = "SELECT * FROM iskolak";
+ $ADAT['iskola'] = db_query($q, array('modul'=>'felveteli','result'=>'assoc','keyfield'=>'omkod'));
+
+ $q = "SELECT distinct OM FROM adatok_"._EV." WHERE level2 != 'nem kell értesíteni' AND OM != '' ORDER BY OM ";
+ $ADAT['OM'] = $R = db_query($q, array('modul'=>'felveteli','result'=>'idonly'));
+ for ($i=0; $i<count($R); $i++) {
+ $ADAT['diak'] = array();
+ $_om = $R[$i]; // iskola OM kódja
+ $q = "SELECT * FROM adatok_"._EV." WHERE level2 != 'nem kell értesíteni' AND OM='%s' ORDER BY OM,nev";
+ $ADAT['diak'] = db_query($q, array('modul'=>'felveteli','result'=>'indexed','values'=>array($_om)));
+ $file = _EV.'_'.$_om;
+ if ($ADAT['generatePDF']==true) pdfLevel($file, $ADAT);
+ if (is_array($ADAT['sendMAIL']) && in_array($_om,$ADAT['sendMAIL'])) {
+ //echo $ADAT['iskola'][$_om]['email'];
+ $mail = new PHPMailer;
+// $mail->isSMTP();
+// $mail->Host = 'smtp.gmail.com';
+// $mail->Port = 587;
+// $mail->SMTPSecure = 'tls';
+// $mail->SMTPAuth = true;
+// $mail->Username = _FELVETELI_SMTP_USERNAME;
+// $mail->Password = _FELVETELI_SMTP_PASSWORD;
+ $mail->setFrom(_FELVETELI_SMTP_USERNAME, 'Városmajori Gimnázium');
+ $mail->addReplyTo('support@vmg.sulinet.hu', 'Városmajori Gimnázium IT Support');
+ $mail->addAddress($ADAT['iskola'][$_om]['email'], 'Igazgató');
+// $mail->addAddress('konczy@gmail.com', 'Igazgató'); //echo $ADAT['iskola'][$_om]['email'];
+ $mail->Subject = 'Értesítés felvételi eredményekről - 2018/2019-es beiskolázás';
+ $mail->msgHTML("A levelet a MaYoR elektronikus napló generálta PDF csatolmány tartalmazza.");
+ $mail->AltBody="A levelet a MaYoR elektronikus napló generálta PDF csatolmány tartalmazza.";
+ $mail->addAttachment(_DOWNLOADDIR."/private/felveteli/levelIgazgato/".$file.'.pdf');
+ if (!$mail->send()) {
+ echo "Mailer Error: " . $mail->ErrorInfo;
+ } else {
+ echo "Message sent! " . $ADAT['iskola'][$_om]['email'];
+ $qr = "UPDATE adatok_"._EV." SET level2='értesítve' WHERE OM='%s'";
+ db_query($qr, array('modul'=>'felveteli','values'=>array($_om)));
+ }
+ }
+ // header('Location: '.location('index.php?page=session&f=download&download=true&dir=felveteli/levelIgazgato&file='.$file.'.pdf'));
+ }
+ }
+?>
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/levelIgazgato.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/levelIgazgato.php
new file mode 100644
index 00000000..4af4893d
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/levelIgazgato.php
@@ -0,0 +1,28 @@
+<?php
+ global $ADAT;
+
+ putLevelIgazgato($ADAT);
+
+ // phtml
+ function putLevelIgazgato($ADAT) {
+ formBegin();
+ echo '<h1>PDF generálás?</h1>Generáljunk pdf-eket? (Lassan fut!)<input type="checkbox" name="generatePDF" value="1" /><br/>';
+ echo '<h1>Email küldés</h1>';
+ echo '<input type="submit" />';
+ for ($i=0; $i<count($ADAT['OM']); $i++) {
+ $_om = $ADAT['OM'][$i];
+// echo '<input type="checkbox" name="sendMAIL[]" value="'.$_om.'" checked="checked" />';
+ echo $i.". ";
+ echo '<input type="checkbox" name="sendMAIL[]" value="'.$_om.'" />';
+ echo $_om;
+ var_dump($ADAT['iskola'][$_om]['email']);
+ $file= $file = _EV.'_'.$_om;
+ echo '<a href="'.href('index.php?page=session&f=download&download=true&dir=felveteli/levelIgazgato&file='.$file.'.pdf').'">PDF</a>';
+ echo '<br/>';
+ if ($i%5==0) echo '<hr/>';
+ }
+ echo '<input type="submit" />';
+ formEnd();
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli-pre.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli-pre.php
new file mode 100644
index 00000000..c8325078
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli-pre.php
@@ -0,0 +1,38 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ $action = readVariable($_POST['action'],'strictstring',array('lekerdezes'));
+ $stamp = mktime();
+ if ( _CATEGORY == 'admin' || __FELVETELIADMIN===true ||
+ (strtotime(_SZOBELI_PUBLIKALAS_DT)<=$stamp
+ &&
+ strtotime(_SZOBELI_PUBLIKALAS_ENDDT)>$stamp
+ )
+||
+ (strtotime(_IDEIGLENES_PUBLIKALAS_DT)<=$stamp
+ &&
+ strtotime(_IDEIGLENES_PUBLIKALAS_ENDDT)>$stamp
+ )
+ ) {
+ define('_LEKERDEZHETO',true);
+ } else {
+ define('_LEKERDEZHETO',false);
+ }
+
+ if ($action=='lekerdezes' && _LEKERDEZHETO === true) {
+ $nev = readVariable($_POST['nev'],'sql');
+ $oktid = readVariable($_POST['oktid'],'strictstring');
+ if (__FELVETELIADMIN==true || $oktid !='') {
+ $ADATOK = getFelvetelizoAdatok($nev,$oktid);
+ if (is_array($ADATOK)) {
+ $SZOBELI = getSzobeliByOktid(intval($ADATOK['oktid']));
+ $EREDMENY = getIdeiglenesRangsor(intval($ADATOK['oktid']));
+ //$JEL = getJelentkezes(intval($ADATOK['id']));
+ }
+ //$EREDMENY = getSzobeliEredmeny($ADATOK['id']);
+ //$EREDMENY = getIrasbeliEredmeny($nev,$oktid);
+ }
+ }
+
+?>
diff --git a/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli.php b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli.php
new file mode 100644
index 00000000..49ea8a96
--- /dev/null
+++ b/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli.php
@@ -0,0 +1,36 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $EREDMENY,$ADATOK,$SZOBELI,$nev,$oktid, $JEL;
+
+
+ putEredmenyKereso($nev,$diak,$oktid);
+
+if (_LEKERDEZHETO) {
+// if (is_array($EREDMENY[0])) putIrasbeliEredmeny($EREDMENY[0]);
+ if (is_array($ADATOK) && (__FELVETELIADMIN===true || $nev!='')) {
+ putFelvetelizoAdatok($ADATOK);
+ //if ($ADATOK['evfolyam']!='hat')
+// putJelentkezes($JEL,$ADATOK);
+// putSzobeliEredmeny($SZOBELI,$ADATOK);
+ putIdeiglenesEredmeny($EREDMENY,$ADATOK,$JEL);
+ $stamp = time();
+ if (
+ strtotime(_VEGEREDMENY_PUBLIKALAS_DT)<=$stamp
+ && strtotime(_VEGEREDMENY_PUBLIKALAS_ENDDT)>$stamp
+ ) {
+ putVegeredmeny($ADATOK);
+ }
+ } elseif ($nev!='') {
+ //if (count($EREDMENY)==1 && $nev!='' && (_CATEGORY=='admin' || $oktid!='') ) {
+ // putIrasbeliEredmeny($EREDMENY[0]);
+ //putFelvetelizoAdatok($ADATOK);
+ //putSzobeliEredmeny($EREDMENY,$ADATOK);
+ //} elseif ($nev!='') {
+ putFelveteliError();
+ //}
+ }
+
+}
+?>