Source for file ftp.php

Documentation is available at ftp.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Installation
  4.  * @subpackage  Controller
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Controller class to set the FTP data for the Joomla Installer.
  14.  *
  15.  * @package     Joomla.Installation
  16.  * @subpackage  Controller
  17.  * @since       3.1
  18.  */
  19. {
  20.     /**
  21.      * Execute the controller.
  22.      *
  23.      * @return  void 
  24.      *
  25.      * @since   3.1
  26.      */
  27.     public function execute()
  28.     {
  29.         // Get the application
  30.         /* @var InstallationApplicationWeb $app */
  31.         $app $this->getApplication();
  32.  
  33.         // Check for request forgeries.
  34.         JSession::checkToken(or $app->sendJsonResponse(new Exception(JText::_('JINVALID_TOKEN')403));
  35.  
  36.         // Get the setup model.
  37.         $model new InstallationModelSetup;
  38.  
  39.         // Check the form
  40.         $model->checkForm('ftp');
  41.  
  42.         // Redirect to the page.
  43.         $r new stdClass;
  44.         $r->view 'summary';
  45.         $app->sendJsonResponse($r);
  46.     }
  47. }

Documentation generated on Tue, 19 Nov 2013 15:03:57 +0100 by phpDocumentor 1.4.3