forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45a8af0
commit 2a41250
Showing
180 changed files
with
494 additions
and
29,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Installation | ||
* @subpackage Controller | ||
* | ||
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
/** | ||
* Controller class to set the site data for the Joomla Installer. | ||
* | ||
* @since 3.1 | ||
*/ | ||
class InstallationControllerInstallDbcheck extends JControllerBase | ||
{ | ||
/** | ||
* Execute the controller. | ||
* | ||
* @return void | ||
* | ||
* @since 3.1 | ||
*/ | ||
public function execute() | ||
{ | ||
// Get the application | ||
/* @var InstallationApplicationWeb $app */ | ||
$app = $this->getApplication(); | ||
|
||
// Check for request forgeries. | ||
JSession::checkToken() or $app->sendJsonResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); | ||
|
||
// Redirect to the page. | ||
$r = new stdClass; | ||
$r->crap = 'setup'; | ||
|
||
// Check the form | ||
if ((new InstallationModelSetup)->checkForm('setup') === false || (new InstallationModelSetup)->initialise('setup') === false) | ||
{ | ||
$r->messages = 'Check your DB credentials, db type, db name or hostname'; | ||
$r->crap = 'setup'; | ||
} | ||
|
||
$app->sendJsonResponse($r); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.