-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmobiquo.php
42 lines (38 loc) · 1.21 KB
/
mobiquo.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
if (isset($_GET['welcome'])) {
if (!empty($_GET['referer']) && !empty($_REQUEST['SERVER_NAME'])) {
$redirectURL = trim($_GET['referer']);
if(!empty($redirectURL) && (strpos($redirectURL, $_REQUEST['SERVER_NAME']) !== false && strpos($redirectURL, $_REQUEST['SERVER_NAME']) !== false) || strpos($redirectURL, '/') === 0) {
@header('Location: ' . $redirectURL);
exit;
}
}
else if (!empty($_GET['board_url'])) {
$boardURL = trim($_GET['board_url']);
if (!empty($boardURL)) {
@header('Location: ' . $boardURL);
exit;
}
}
}
if(!defined('MBQ_PROTOCOL'))
{
define('MBQ_PROTOCOL','xmlrpc');
}
define('IN_MOBIQUO', true);
define('TT_ROOT', getcwd() . DIRECTORY_SEPARATOR);
require_once('mobiquoCommon.php');
require_once(MBQ_PATH . '/logger.php');
TT_InitAccessLog();
MbqMain::init(); // frame init
MbqMain::input(); // handle input data
require_once(MBQ_PATH.'IncludeBeforeMbqAppEnv.php');
MbqMain::initAppEnv(); // application environment init
if(method_exists($request,'enable_super_globals')){
$request->enable_super_globals();
}
@ ob_start();
TT_InitErrorLog();
MbqMain::action(); // main program handle
MbqMain::beforeOutput(); // do something before output
MbqMain::output(); // handle output data