action_front.php
2.14 KB
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
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/php/LoginUtil.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBase.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiUser.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiProcess.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBoard.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminBase.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/Admin.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminVehicle.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminCompany.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminBoard.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminPush.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminEtc.php" ; ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/php/AnyGo.php" ;?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiStatic.php" ;?>
<?
$cmd = $_REQUEST[cmd] ;
// Ajax , ToO , ToS , ToPbyRef , ToOandClose , ReOandClose , ReOandToS ,
// Close , ToP , RePa , None
// $url = pack("H*",$_REQUEST[rurl]);
// echo $url ;
// echo $cmd . " ////////////// ";
$nextDisable = false ; // 디버깅용
$arr = explode(".", $cmd) ;
if( sizeof($arr) != 2 )
echo "[ControlException ] Cmd 형식이 맞지 않습니다." ;
else
{
$clsNm = $arr[0] ;
$mtdNm = $arr[1] ;
//var_dump();
$obj = new ReflectionClass($clsNm) ;
$obj= $obj->newInstance($_REQUEST) ;
$method = new ReflectionMethod($clsNm,$mtdNm) ;
$flow = $_REQUEST[flow] ;
if( $flow == "Ajax" || $flow == "" ) // JSON 이나 AJAX 일경우
echo $method->invoke($obj) ;
else
{
$method->invoke($obj) ;
if( $nextDisable == false )
{
$rurl = $_REQUEST[rurl] ;
$msg = $_REQUEST[msg] ;
$flow = $_REQUEST[flow] ;
if( $flow == "" )
echo "[ControlException ] flow 형식이 맞지 않습니다." ;
else
{
go("NORMAL",$flow,$msg,$rurl) ;
}
}
}
}
?>