aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/include/modules/naplo/naplo.php
blob: e7923a72f3f69622f09d285c2b074fab47f2fe64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php

//    require_once('include/share/net/ertesites.php');

    function getBeirasiAdatok() {
	if (defined('__USERTANARID') && is_numeric(__USERTANARID)) {
	    $q = "SELECT COUNT(*) FROM ora WHERE ki=".__USERTANARID." AND dt <= CURDATE() AND (leiras IS NULL OR leiras='')";
	    return db_query($q, array('fv' => 'getBeirasiAdatok', 'modul' => 'naplo', 'result' => 'value'));
	} else return 0;
    }

?>