-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.php
More file actions
47 lines (44 loc) · 1.17 KB
/
bootstrap.php
File metadata and controls
47 lines (44 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* JoomlaCliTools
*
* @version $Id$
* @package MatWare
* @subpackage JoomlaCliTools
* @copyright Copyright 2004 - 2013 Matias Aguirre. All rights reserved.
* @license GNU General Public License version 2 or later.
* @author Matias Aguirre <maguirre@matware.com.ar>
* @link http://www.matware.com.ar
*/
// Look for the Joomla! root path.
$ROOT = dirname(dirname(dirname(__FILE__))).'/www/joomla-cms';
// Ensure that required path constants are defined.
if (!defined('JPATH_LIBRARIES'))
{
define('JPATH_LIBRARIES', $ROOT.'/libraries');
}
// Fire up the Platform importer.
if (file_exists(JPATH_LIBRARIES . '/import.php'))
{
require JPATH_LIBRARIES . '/import.php';
}
// Import the Joomla! CMS
if (file_exists(JPATH_LIBRARIES.'/cms.php')) {
require_once JPATH_LIBRARIES.'/cms.php';
}
// Ensure that required path constants are defined.
if (!defined('JPATH_SITE'))
{
define('JPATH_SITE', $ROOT);
}
// Define cache path
if (!defined('JPATH_CACHE'))
{
define('JPATH_CACHE', $ROOT.'/cache');
}
// Import the database libraries
jimport('joomla.database.database');
// Import the file libraries
jimport('joomla.filesystem.file');
// Import the html libraries
jimport('cms.html.html');