aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 21:20:34 +0100
committerM.Gergo2019-03-08 21:20:34 +0100
commitf51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch)
treee13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php
parentc76a004b0135786f2742283f8d5f917106f58bd8 (diff)
downloadmayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz
mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip
további rendrakás
Diffstat (limited to 'mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php')
-rw-r--r--mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php b/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php
deleted file mode 100644
index 90fa6df3..00000000
--- a/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
- if (_RIGHTS_OK !== true) die();
- require_once('include/modules/naplo/share/szulo.php');
-
- $diakId = readVariable($_POST['diakId'],'id',null);
- $SZULODIAKJAI = getSzuloDiakjai();
-
- if (!is_array($SZULODIAKJAI) || count($SZULODIAKJAI)==0) {
- $_SESSION['alert'][] = ':!E12:nincs_egy_diakja_se:'._USERACCOUNT.':'._POLICY;
- }
- if ($action == 'valaszt') {
- for ($i=0; $i<count($SZULODIAKJAI); $i++) {
- if ($SZULODIAKJAI[$i]['diakId']==$diakId) {
- updateSessionParentDiakId($diakId) ;
-// setcookie(_SESSIONID.'-diakIdOk', true, 0, '/');
- $_SESSION['szuloDiakIdOk']=true;
- if ($DEFAULT_PSF['parent']['f'] != 'diakValaszto' || $DEFAULT_PSF['parent']['page'] != 'naplo')
- header('Location: '.location('index.php?page='.$DEFAULT_PSF['parent']['page'].'&sub='.$DEFAULT_PSF['parent']['sub'].'&f='.$DEFAULT_PSF['parent']['f']));
- elseif ($DEFAULT_PSF['parent']['f'] == 'diakValaszto')
- header('Refresh:0'); // a konstans előbb definiálódik
- break;
- }
- }
- //----
- } elseif (count($SZULODIAKJAI)==1) {
- updateSessionParentDiakId($SZULODIAKJAI[0]['diakId']) ;
-// setcookie(_SESSIONID.'-diakIdOk', true, 0, '/');
- $_SESSION['szuloDiakIdOk']=true;
- if ($DEFAULT_PSF['parent']['f'] != 'diakValaszto' || $DEFAULT_PSF['parent']['page'] != 'naplo')
- header('Location: '.location('index.php?page='.$DEFAULT_PSF['parent']['page'].'&sub='.$DEFAULT_PSF['parent']['sub'].'&f='.$DEFAULT_PSF['parent']['f']));
- }
-
-?>