public function index()
 {
     $sc = new SystemConfig();
     $hostTypes = (new HostType())->permissionList();
     ksort($hostTypes, SORT_STRING);
     $success = Session::get('SCS', false);
     $user = GithubLogin::getLoginUser();
     $watchSites = Watch::allSiteWatched($user->login);
     foreach ($this->validSites as $key => $value) {
         if (in_array($value['siteId'], $watchSites)) {
             $this->validSites[$key]['watch'] = true;
         }
     }
     return View::make('index', array('listSites' => $this->validSites, 'hostTypes' => $hostTypes, 'success' => $success, 'workRoot' => $sc->get(SystemConfig::WORK_ROOT_FIELD)));
 }