-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathinitialize.php
31 lines (27 loc) · 994 Bytes
/
initialize.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
<?php
define('APP_ROOT',realpath(dirname(__FILE__)));
require_once APP_ROOT.'/mfw/mfwServerEnv.php';
require_once APP_ROOT.'/mfw/mfwRequest.php';
require_once APP_ROOT.'/mfw/mfwModules.php';
require_once APP_ROOT.'/mfw/mfwActions.php';
require_once APP_ROOT.'/mfw/mfwTemplate.php';
require_once APP_ROOT.'/mfw/mfwSession.php';
require_once APP_ROOT.'/mfw/mfwMemcache.php';
require_once APP_ROOT.'/mfw/mfwApc.php';
require_once APP_ROOT.'/mfw/mfwDBConnection.php';
require_once APP_ROOT.'/mfw/mfwDBIBase.php';
require_once APP_ROOT.'/mfw/mfwObject.php';
require_once APP_ROOT.'/mfw/mfwObjectSet.php';
require_once APP_ROOT.'/mfw/mfwObjectDb.php';
require_once APP_ROOT.'/mfw/mfwHttp.php';
//require_once APP_ROOT.'/mfw/mfwOAuth.php';
require_once APP_ROOT."/vendor/autoload.php";
function apache_log($key,$value)
{
static $log = array();
if(function_exists('apache_setenv')){
$log['env'] = mfwServerEnv::getEnv();
$log[$key] = $value;
apache_setenv('LOGMSG',json_encode($log));
}
}