diff options
Diffstat (limited to 'mayor-orig/www/include/modules/naplo/naplo.php')
-rw-r--r-- | mayor-orig/www/include/modules/naplo/naplo.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mayor-orig/www/include/modules/naplo/naplo.php b/mayor-orig/www/include/modules/naplo/naplo.php new file mode 100644 index 00000000..e7923a72 --- /dev/null +++ b/mayor-orig/www/include/modules/naplo/naplo.php @@ -0,0 +1,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; + } + +?> |