forked from arastta/arastta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
39 lines (28 loc) · 847 Bytes
/
index.php
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
<?php
/**
* @package Arastta eCommerce
* @copyright Copyright (C) 2015 Arastta Association. All rights reserved. (arastta.org)
* @credits See CREDITS.txt for credits and other copyright notices.
* @license GNU General Public License version 3; see LICENSE.txt
*/
if (version_compare(PHP_VERSION, '5.3.10', '<')) {
die('Your host needs to use PHP 5.3.10 or higher to run Arastta.');
}
define('AREXE', 1);
require_once('define.php');
// Startup
require_once(DIR_SYSTEM . 'library/client.php');
Client::setName('catalog');
require_once(DIR_SYSTEM . 'startup.php');
// App
$app = new Catalog();
// Initialise main classes
$app->initialise();
// Load eCommerce classes
$app->ecommerce();
// Route the app
$app->route();
// Dispatch the app
$app->dispatch();
// Render the output
$app->render();