execute('UPDATE `admin_menu` SET `show` = 2 WHERE `show` = 0;'); $this->execute('UPDATE `admin_menu` SET `show` = 0 WHERE `show` = 1;'); $this->execute('UPDATE `admin_menu` SET `show` = 1 WHERE `show` = 2;'); $this->execute('UPDATE `admin_menu` SET `level` = 1 WHERE `fid` = 0;'); $this->execute('UPDATE `admin_menu` SET `level` = 3 WHERE `url` != "";'); $this->execute('UPDATE `admin_menu` SET `level` = 2 WHERE `level` = 0;'); $this->execute('UPDATE `admin_menu` SET `auth` = 1 WHERE `url` != "admin/Login/index";'); $this->execute('UPDATE `admin_menu` SET `permission` = 0 WHERE `url` = "admin/Login/index" OR `url` = "admin/Login/logout";'); } }