public function successfullyinstalled()
    {
        // Return 410 Gone if this site is not actually a fresh installation
        if (!file_exists(PUBLIC_PATH . '/install.php')) {
            $this->httpError(410);
        }

        // TODO Allow this to work when allow_url_fopen=0
        if (isset($_SESSION['StatsID']) && $_SESSION['StatsID']) {
            $url = 'http://ss2stat.silverstripe.com/Installation/installed?ID=' . $_SESSION['StatsID'];
            @file_get_contents($url);
        }

        global $project;
        $data = new ArrayData([
            'Project' => Convert::raw2xml($project),
            'Username' => Convert::raw2xml($this->getRequest()->getSession()->get('username')),
            'Password' => Convert::raw2xml($this->getRequest()->getSession()->get('password')),
        ]);

        return [
            "Title" =>  _t(__CLASS__ . ".INSTALL_SUCCESS", "Installation Successful!"),
            "Content" => $data->renderWith([
                'type' => 'Includes',
                'Install_successfullyinstalled',
            ]),
        ];
    }
public function successfullyinstalled()
    {
        // Return 410 Gone if this site is not actually a fresh installation
        if (!file_exists(PUBLIC_PATH . '/install.php')) {
            $this->httpError(410);
        }

        // TODO Allow this to work when allow_url_fopen=0
        if (isset($_SESSION['StatsID']) && $_SESSION['StatsID']) {
            $url = 'http://ss2stat.silverstripe.com/Installation/installed?ID=' . $_SESSION['StatsID'];
            @file_get_contents($url);
        }

        global $project;
        $data = new ArrayData([
            'Project' => Convert::raw2xml($project),
            'Username' => Convert::raw2xml($this->getRequest()->getSession()->get('username')),
            'Password' => Convert::raw2xml($this->getRequest()->getSession()->get('password')),
        ]);

        return [
            "Title" =>  _t(__CLASS__ . ".INSTALL_SUCCESS", "Installation Successful!"),
            "Content" => $data->renderWith([
                'type' => 'Includes',
                'Install_successfullyinstalled',
            ]),
        ];
    }
public function successfullyinstalled ( ) { // Return 410 Gone if this site is not actually a fresh installation if ( ! file_exists ( PUBLIC_PATH . '/install.php' ) ) { $ this -> httpError ( 410 ) ; } // TODO Allow this to work when allow_url_fopen=0 if ( isset ( $ _SESSION [ 'StatsID' ] ) && $ _SESSION [ 'StatsID' ] ) { $ url = 'http://ss2stat.silverstripe.com/Installation/installed?ID=' . $ _SESSION [ 'StatsID' ] ; @ file_get_contents ( $ url ) ; } global $ project ; $ data = new ArrayData ( [ 'Project' => Convert :: raw2xml ( $ project ) , 'Username' => Convert :: raw2xml ( $ this -> getRequest ( ) -> getSession ( ) -> get ( 'username' ) ) , 'Password' => Convert :: raw2xml ( $ this -> getRequest ( ) -> getSession ( ) -> get ( 'password' ) ) , ] ) ; return [ "Title" => _t ( __CLASS__ . ".INSTALL_SUCCESS" , "Installation Successful!" ) , "Content" => $ data -> renderWith ( [ 'type' => 'Includes' , 'Install_successfullyinstalled' , ] ) , ] ; }
This action is called by the installation system
This action is called by the installation system