예제 #1
0
 function createShowAlist(&$alist, $subaction = null)
 {
     global $gbl, $sgbl, $login, $ghtml;
     return $alist;
     if (checkIfLatest() && !if_demo()) {
         return null;
     }
 }
예제 #2
0
파일: lib.php 프로젝트: lonelywoolf/hypervm
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);
        }
    }
}