aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/private/naplo/naplo-pre.php
blob: 85dfa076568bbd7ed5e1c490fc136f1bb4e4739d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

    if (_RIGHTS_OK !== true) die();

    require_once('include/modules/naplo/share/intezmenyek.php');

    $intezmeny = readVariable($_POST['intezmeny'], 'strictstring', defined('__INTEZMENY') ? __INTEZMENY : null);
    if ($action == 'intezmenyValasztas') {
        if (isset($intezmeny) && $intezmeny !== __INTEZMENY) {
                if (updateSessionIntezmeny($intezmeny)) {
                        header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
                }
        }
    }

    /* TOOL */
    $TOOL['intezmenySelect'] = array('tipus' => 'sor', 'post' => array(), 'action' => 'intezmenyValasztas');

    getToolParameters();
    if (__TANAR) $beirasiAdatok['beiratlan'] = getBeirasiAdatok();

?>