Completed
Push — master ( 31bf8b...790ba1 )
by Auke
64:41 queued 64:34
created

baseObject

Complexity

Total Complexity 0

Size/Duplication

Total Lines 1
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 0
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
3
	global $auth_config,$store_config,$cache_config,$session_config,$AR,$ariadne,$ax_config,$ARCurrent,$ARConfig,$ARLoader,$ARnls;
4
5
	// declare default object,
6
	if (!class_exists('baseObject',false)) {
7
		class baseObject { }           // do not change
8
	}
9
10
	if(!defined('AriadneBasePath') ) {
11
		define('AriadneBasePath', $ariadne);
12
	}
13
14
	$loaderType = ($ARLoader)?$ARLoader:'web';
15
16
	require_once(AriadneBasePath."/../vendor/autoload.php");
17
	require_once(AriadneBasePath.'/configs/ariadne.phtml');
18
	require_once(AriadneBasePath.'/configs/ariadne-default.phtml');
19
	require_once(AriadneBasePath."/configs/sessions.phtml");
20
	require_once(AriadneBasePath."/configs/cache.phtml");
21
	require_once(AriadneBasePath."/configs/authentication.phtml");
22
	require_once(AriadneBasePath."/configs/store.phtml");
23
	require_once(AriadneBasePath."/ar.php");
24
	require_once(AriadneBasePath."/modules/mod_debug.php");
25
	require_once(AriadneBasePath."/modules/mod_cache.php");
26
27
	$AR->context = array();
28
29
	if ($workspace = getenv("ARIADNE_WORKSPACE")) {
30
		include_once($store_config['code']."modules/mod_workspace.php");
31
		$layer = workspace::getLayer($workspace);
32
		if (!$layer) {
33
			$layer = 1;
34
		}
35
36
		if ($wspaths = getenv("ARIADNE_WORKSPACE_PATHS")) {
37
			$wspaths = explode(";", $wspaths);
38
			foreach ($wspaths as $wspath) {
39
				if ($wspath != '') {
40
					$store_config['layer'][$wspath] = $layer;
41
				}
42
			}
43
		} else {
44
			$store_config['layer'] = array('/' => $layer );
45
		}
46
	}
47
48
	require_once(AriadneBasePath."/includes/loader.".$loaderType.".php");
49
	require_once(AriadneBasePath."/stores/".$store_config["dbms"]."store.phtml");
50
51
	require_once(AriadneBasePath."/modules/mod_session.phtml");
52
	require_once(AriadneBasePath."/modules/mod_auth/".$auth_config['method'].".php");
53
54
	$prevARnls = $ARnls;
55
56
57
	$ARnls = ar('nls')->dict($AR->nls->default,null,'ARnls',AriadneBasePath.'/nls/');
58
59
	if (is_array($prevARnls)) {
60
		foreach($prevARnls as $key => $value) {
61
			$ARnls[$key] = $value;
62
		}
63
	}
64