checkCloudStatus(); } catch (Cloud_Service_AppException $e) { } if ($cloudStatus == 'cloud') { $menu['cloud'] = array( array('menu_cloud_applist', 'cloud_applist'), array('menu_cloud_siteinfo', 'cloud_siteinfo'), array('menu_cloud_doctor', 'cloud_doctor') ); $apps = $appService->getCloudApps(); if(is_array($apps) && $apps) { foreach($apps as $app) { if($app['status'] != 'close') { array_push($menu['cloud'], array("menu_cloud_{$app['name']}", "cloud_{$app['name']}")); } } } } else { if ($cloudStatus == 'upgrade') { $menuitem = 'menu_cloud_upgrade'; } else { $menuitem = 'menu_cloud_open'; } $menu['cloud'] = array( array($menuitem, 'cloud_open'), array('menu_cloud_doctor', 'cloud_doctor') ); }