$posmgmt->ModuleLoadVars(); $func = $eve->VarCleanFromInput('func'); if ($func == 'install' || $func == 'uninstall') { $modname = $eve->VarCleanFromInput('modname'); if (file_exists('mods/' . $modname . '/install.php')) { include_once 'mods/' . $modname . '/install.php'; if (function_exists($modname . '_' . $func)) { $install = $modname . '_' . $func; $result = $install(); } else { $result = 0; } } else { $result = $func == 'install' ? 1 : 0; } $posmgmt->ChangeModState(array('modname' => $modname, 'modstate' => $result)); $eve->RedirectUrl('admin.php?op=modules'); } else { $modlist = $posmgmt->GetModList(); $eveRender->Assign('mods', $modlist); $eveRender->Display('admin_mods.tpl'); exit; } } $action = $eve->VarCleanFromInput('action'); $settings = $posmgmt->GetSettings(); if ($settings[2]['gsetting'] == 1) { $vcheck = isUpToDate(); $eveRender->Assign('vcheck', $vcheck); } if ($action == 'updatealliance') {