Esempio n. 1
0
<?php

/***************************************************************************
*                                                                          *
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev    *
*                                                                          *
* This  is  commercial  software,  only  users  who have purchased a valid *
* license  and  accept  to the terms of the  License Agreement can install *
* and use this program.                                                    *
*                                                                          *
****************************************************************************
* PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *
****************************************************************************/
if (!defined('BOOTSTRAP')) {
    die('Access denied');
}
if ($mode == 'login') {
    if (!empty(Tygh::$app['session']['auth']['user_id'])) {
        $u_data = db_get_row("SELECT birthday, status FROM ?:users WHERE user_id = ?i", Tygh::$app['session']['auth']['user_id']);
        fn_age_verification_check_age($u_data);
    }
}
Esempio n. 2
0
function fn_age_verification_update_profile(&$action, &$user_data)
{
    return fn_age_verification_check_age($user_data);
}