3 class mw_upgrade_index extends mw_controller{
5 public function index(){
8 $env->set_out("data_version", $data->version("mtweb"));
9 $env->set_out("env_version", $env->version("mtweb"));
10 $env->set_out("data_upgrades", $env->data_upgrades());
13 public function confirm_upgrade(){
15 if(!($user = $env->user())){
16 $env->redirect($env->url("upgrade"), "", 0);
19 if(($res = $env->do_data_upgrade()) !== true){
20 $env->erreur("Erreur durant l'upgrade: ".$res);
25 "La base a été mise à jour"