/** * Enable app * now plugin only */ function api_app_enable_function() { $id = API::$IO->id; if ($id == "") { API::$IO->end(3); } API::$IO->app = EnablePlugin($id); }
die; } UninstallPlugin(GetVars('name', 'GET')); DisablePlugin(GetVars('name', 'GET')); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=PluginMng'); break; case 'PluginEnb': if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } $install = '&install='; $install .= EnablePlugin(GetVars('name', 'GET')); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=PluginMng' . $install); break; case 'ThemeMng': if (GetVars('install', 'GET')) { InstallPlugin(GetVars('install', 'GET')); } Redirect('admin/?' . GetVars('QUERY_STRING', 'SERVER')); break; case 'ThemeSet': $install = '&install='; $install .= SetTheme(GetVars('theme', 'POST'), GetVars('style', 'POST')); $zbp->BuildModule();