Esempio n. 1
0
 function createShowAlist(&$alist, $subaction = null)
 {
     global $gbl, $sgbl, $login, $ghtml;
     return $alist;
     if (checkIfLatest() && !if_demo()) {
         return null;
     }
 }
Esempio n. 2
0
function auto_update()
{
    global $gbl, $sgbl, $login, $ghtml;
    $gen = $login->getObject('general');
    if ($gen->generalmisc_b->isOn('autoupdate')) {
        dprint("Auto Updating\n");
        if (!checkIfLatest()) {
            exec_with_all_closed("{$sgbl->__path_php_path} ../bin/update.php");
        }
    } else {
        if (date('d') == 10 && !checkIfLatest()) {
            $latest = getLatestVersion();
            $msg = "New Version {$latest} Available for {$sgbl->__var_program_name}";
            send_mail_to_admin($msg, $msg);
        }
    }
}