aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-felveteli/www/policy/private/felveteli/szobeli-pre.php
blob: 48d4a29327507a2efd4d6ff13c2f9f9685d447a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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']));
		//$EREDMENY = getSzobeliEredmeny($ADATOK['id']);
		//$JEL = getJelentkezes(intval($ADATOK['id']));
	    }
	    //$EREDMENY = getIrasbeliEredmeny($nev,$oktid);
	}
    }

?>