forked from weyrick/roadsend-siteManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsiteManager.inc
90 lines (69 loc) · 2.76 KB
/
siteManager.inc
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/*********************************************************************
* Roadsend SiteManager
* Copyright (c) 2001-2009 Roadsend, Inc.(http://www.roadsend.com)
**********************************************************************
*
* This source file is subject to version 1.0 of the Roadsend Public
* License, that is bundled with this package in the file
* LICENSE, and is available through the world wide web at
* http://www.roadsend.com/license/rpl1.txt
*
**********************************************************************
* Author(s): Shannon Weyrick ([email protected])
*
*/
// -----------------------------------------------------------------------------
// if SiteManager is being used on a system where you
// are unable to place the main SiteManager root directory
// into the php.ini include_path, set the following variable
// to the main root siteManager directory
// for example:
// $SM_rootDir = '/var/www/user/siteManager/';
$SM_rootDir = ''; // when set, make sure it ends with a slash!
// -----------------------------------------------------------------------------
// don't touch below here
// -----------------------------------------------------------------------------
// Version
$SM_versionTag = "6.0.1";
define('SM_VERSION', '6.0.1');
// main global config file
define('SM_GLOBAL_CONFIG_FILE','config/globalConfig.xsm');
define('SM_SMCONFIG_READER_FILE','lib/configReaders/SMCONFIG_reader.inc');
// turn on all warnings and notices
error_reporting(E_ALL);
// start out with debugLevel on high, it will be altered by GCS
// this will catch errors on startup
$SM_develState = true;
$SM_debugLevel = 10;
// catch all output
ob_start();
// script start time
$microtime = explode(' ', microtime());
$SM_scriptStartTime = $microtime[1].substr( $microtime[0], 1);
require($SM_rootDir."lib/smLoader.inc");
require($SM_rootDir."lib/smComponents.inc");
require($SM_rootDir."lib/smErrors.inc");
require($SM_rootDir."lib/smSupport.inc");
require($SM_rootDir."lib/smObject.inc");
require($SM_rootDir."lib/smErrorHandler.inc");
require($SM_rootDir."lib/smConfigReader.inc");
require($SM_rootDir."lib/smDbWrapper.inc");
require($SM_rootDir."lib/smConfig.inc");
require($SM_rootDir."lib/smSiteConfig.inc");
require($SM_rootDir."lib/smInVarManager.inc");
require($SM_rootDir."lib/smRoot.inc");
require($SM_rootDir."lib/smLayoutTemplate.inc");
require($SM_rootDir."lib/smModules.inc");
require($SM_rootDir."lib/smSessionContainer.inc");
require($SM_rootDir."lib/smSessions.inc");
require($SM_rootDir."lib/smCacheManager.inc");
require($SM_rootDir."lib/dataManip.inc");
require($SM_rootDir."lib/auth.inc");
// ROOT SITEMANAGER CLASS
$SM_siteManager = new SM_siteManagerRoot();
$SM_siteManager->boot();
if ($SM_develState) {
SM_debugLog("Initializing SiteManager...");
}
?>