forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
^ [joomla#30085] Refactor installation to use new application and MVC
classes. Thanks Michael
- Loading branch information
1 parent
ee5d639
commit a321bba
Showing
115 changed files
with
3,749 additions
and
3,261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Installation | ||
* @subpackage Application | ||
* | ||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
// Define the base path and require the other defines | ||
define('JPATH_BASE', dirname(__DIR__)); | ||
require_once __DIR__ . '/defines.php'; | ||
|
||
// Launch the application | ||
require_once __DIR__ . '/framework.php'; | ||
|
||
// Register the Installation application | ||
JLoader::registerPrefix('Installation', JPATH_INSTALLATION); | ||
|
||
// Register the application's router due to non-standard include | ||
JLoader::register('JRouterInstallation', __DIR__ . '/router.php'); |
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,30 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Installation | ||
* @subpackage Application | ||
* | ||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
/* | ||
* Joomla! Installation Application Defines | ||
*/ | ||
|
||
// Global definitions | ||
$parts = explode(DIRECTORY_SEPARATOR, JPATH_BASE); | ||
array_pop($parts); | ||
|
||
// Defines | ||
define('JPATH_ROOT', implode(DIRECTORY_SEPARATOR, $parts)); | ||
define('JPATH_SITE', JPATH_ROOT); | ||
define('JPATH_CONFIGURATION', JPATH_ROOT); | ||
define('JPATH_ADMINISTRATOR', JPATH_ROOT . '/administrator'); | ||
define('JPATH_LIBRARIES', JPATH_ROOT . '/libraries'); | ||
define('JPATH_PLUGINS', JPATH_ROOT . '/plugins' ); | ||
define('JPATH_INSTALLATION', JPATH_ROOT . '/installation'); | ||
define('JPATH_THEMES', JPATH_BASE); | ||
define('JPATH_CACHE', JPATH_BASE . '/cache'); | ||
define('JPATH_MANIFESTS', JPATH_ADMINISTRATOR . '/manifests'); |
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,39 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Installation | ||
* @subpackage Application | ||
* | ||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
/* | ||
* Joomla system checks. | ||
*/ | ||
|
||
error_reporting(E_ALL); | ||
ini_set('display_errors', true); | ||
const JDEBUG = false; | ||
@ini_set('magic_quotes_runtime', 0); | ||
|
||
/* | ||
* Check if a configuration file already exists. | ||
*/ | ||
|
||
if (file_exists(JPATH_CONFIGURATION . '/configuration.php') && (filesize(JPATH_CONFIGURATION . '/configuration.php') > 10) && !file_exists(JPATH_INSTALLATION . '/index.php')) | ||
{ | ||
header('Location: ../index.php'); | ||
exit(); | ||
} | ||
|
||
/* | ||
* Joomla system startup. | ||
*/ | ||
|
||
// Import the Joomla Platform. | ||
require_once JPATH_LIBRARIES . '/import.php'; | ||
|
||
// Bootstrap the CMS libraries. | ||
require_once JPATH_LIBRARIES . '/cms.php'; |
File renamed without changes.
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
Oops, something went wrong.