-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcli.php
More file actions
25 lines (19 loc) · 784 Bytes
/
cli.php
File metadata and controls
25 lines (19 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace NonCDN;
defined('NONCDN') or die();
// Load the Joomla! Platform
define('JPATH_PLATFORM', __DIR__ . '/libraries/joomla-platform/libraries');
define('JPATH_ROOT', __DIR__);
define('JPATH_BASE', __DIR__);
define('DS', DIRECTORY_SEPARATOR);
// Load and setup the Joomla! class loader plus backports and eBay content branch
require __DIR__ . '/libraries/import.php';
// Load the PSR-0 Class Loader and setup NonCDN namespace
require __DIR__.'/libraries/psrloader.php';
$loader = new \SplClassLoader;
$loader->add('PEAR', __DIR__.'/libraries');
$loader->register();
// Load the NonCDN class loader, a derivative of PSR-0
require __DIR__.'/libraries/noncdnloader.php';
$noncdnloader = new \NonCDNClassLoader('NonCDN', __DIR__.'/libraries');
$noncdnloader->register();