예제 #1
0
     $am->access(PERMS_ADMIN);
     $result = $adm->clearContests();
     break;
 case "upgrade":
     $am->access(PERMS_ADMIN);
     $result = $adm->checkForUpgrades();
     break;
 case "reginfo":
     $result = $am->getRegistrationInfo();
     if ($result == null) {
         $adm->errormsg = "Cannot retrieve license information";
     }
     break;
 case "register":
     $am->access(PERMS_ADMIN);
     $result = $am->registerApp();
     if ($result == null) {
         $adm->errormsg = "Cannot import license data";
     }
     break;
 case "loadConfig":
     // send configuration to browser
     $config = Config::getInstance();
     $result = $config->loadConfig();
     break;
 case "backupConfig":
     // generate and download a "config.ini" file
     $config = Config::getInstance();
     $result = $config->backupConfig();
     break;
 case "restoreConfig":