original_string: public function index()
      {
          Piwik::checkUserHasViewAccess($this->idSite);
  
          $template = '@Overlay/index';
          if (Config::getInstance()->General['overlay_disable_framed_mode']) {
              $template = '@Overlay/index_noframe';
          }
  
          $view = new View($template);
  
          $this->setGeneralVariablesView($view);
          $view->segment = Request::getRawSegmentFromRequest();
  
          $view->ssl = ProxyHttp::isHttps();
          $view->siteUrls = SitesManager\API::getInstance()->getSiteUrlsFromId($this->site->getId());
  
          $this->outputCORSHeaders();
          return $view->render();
      }
code: public function index()
      {
          Piwik::checkUserHasViewAccess($this->idSite);
  
          $template = '@Overlay/index';
          if (Config::getInstance()->General['overlay_disable_framed_mode']) {
              $template = '@Overlay/index_noframe';
          }
  
          $view = new View($template);
  
          $this->setGeneralVariablesView($view);
          $view->segment = Request::getRawSegmentFromRequest();
  
          $view->ssl = ProxyHttp::isHttps();
          $view->siteUrls = SitesManager\API::getInstance()->getSiteUrlsFromId($this->site->getId());
  
          $this->outputCORSHeaders();
          return $view->render();
      }
code_tokens: public function index ( ) { Piwik :: checkUserHasViewAccess ( $ this -> idSite ) ; $ template = '@Overlay/index' ; if ( Config :: getInstance ( ) -> General [ 'overlay_disable_framed_mode' ] ) { $ template = '@Overlay/index_noframe' ; } $ view = new View ( $ template ) ; $ this -> setGeneralVariablesView ( $ view ) ; $ view -> segment = Request :: getRawSegmentFromRequest ( ) ; $ view -> ssl = ProxyHttp :: isHttps ( ) ; $ view -> siteUrls = SitesManager \ API :: getInstance ( ) -> getSiteUrlsFromId ( $ this -> site -> getId ( ) ) ; $ this -> outputCORSHeaders ( ) ; return $ view -> render ( ) ; }
docstring: The index of the plugin
docstring_tokens: The index of the plugin