-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.php
44 lines (29 loc) · 1.54 KB
/
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
40
41
42
<?php
/**
* thank you for purchases I am happy
* Documentation => http://oxa.ueuo.com/OXA/Documentation.html
* Explanatory Video => https://www.youtube.com/watch?v=83WSXCbQKIE
*/
require 'app/functions/functions.php'; // require functions app
require_once 'app/configure/config.php';// require files configure
$config_template = require CONFIG_PATH . '/template.php'; // Template array resourc
session_start(); // start session
header('Content-Type: text/html; charset=utf-8'); // set header type text/html utf-8
require_once CORE_PATH . '/autoload.php'; // require file autoload classes
\Store\core\Settings::load_config(); // load config
$Language = new \Store\Core\Languages(); // new object of class language
$Language->set(); // start or set or select language user
/** get Instance classes for set in registry */
$Session = \Store\Core\Sessions::getInstance() ; // class session
$Messenger = \Store\Core\Messenger::getInstance(); // class messanger
$Currency = \Store\Core\Currency::get_instance(); // class currency
$Currency->update_currency(); // currency update
$registry = \Store\Core\Registry::getInstance(); // ok this is a class registry
/** and I set classes of registry ok => */
$registry->Session = $Session;
$registry->Messenger = $Messenger;
$registry->Language = $Language;
$registry->Currency = $Currency;
$registry->config_template = $config_template;
$con = new \Store\Core\Controller($registry); // new class controller and set registry of construct this class
$con->_run(); // run the App