public function WAPageInstallUpdate($data) { Webadmin::disableDesign(); //We disable the design, because of AJAX Webadmin::disableCache(); if ($this->doUpdate($data['matches'][1])) { return 'success'; } else { return 'error:Version not found/Update already pending'; } }
/** Web admin page : Reloads the plugin list from the file. * This function reload the plugin list from the file set in the config file. * * \param $data The data from the browser * * \return The query result, i.e. an error message if an error occured or "ok" if the reload was successful. */ public function WAPageReload($data) { Webadmin::disableDesign(); //We disable the design, because of AJAX Webadmin::disableCache(); if ($this->loadBanlist()) { return "success:"; } else { return "error:" . Leelabot::lastError(); } }