| Revision 7467,
889 bytes
checked in by kakinaka, 20 years ago
(diff) |
|
blank
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved. |
|---|
| 4 | * |
|---|
| 5 | * http://www.lockon.co.jp/ |
|---|
| 6 | */ |
|---|
| 7 | require_once("../require.php"); |
|---|
| 8 | require_once(DATA_PATH . "module/Request.php"); |
|---|
| 9 | |
|---|
| 10 | // ǧ¾Ú³Îǧ |
|---|
| 11 | $objSess = new SC_Session(); |
|---|
| 12 | sfIsSuccess($objSess); |
|---|
| 13 | |
|---|
| 14 | if(is_numeric($_GET['module_id'])) { |
|---|
| 15 | $objQuery = new SC_Query(); |
|---|
| 16 | $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($_GET['module_id'])); |
|---|
| 17 | $path = MODULE_PATH . $arrRet[0]['main_php']; |
|---|
| 18 | if(file_exists($path)) { |
|---|
| 19 | |
|---|
| 20 | if($_GET['mode'] == "module_del"){ |
|---|
| 21 | // ¥â¥¸¥å¡¼¥ë¦¤Ëºï½ü¾ðÊó¤òÁ÷¿®¤¹¤ë |
|---|
| 22 | $req = new HTTP_Request($path); |
|---|
| 23 | $req->setMethod(HTTP_REQUEST_METHOD_POST); |
|---|
| 24 | $req->addPostData("mode", "module_del"); |
|---|
| 25 | $req->sendRequest(); |
|---|
| 26 | |
|---|
| 27 | sfprintr($req); |
|---|
| 28 | $req->clearPostData(); |
|---|
| 29 | |
|---|
| 30 | }else{ |
|---|
| 31 | require_once($path); |
|---|
| 32 | } |
|---|
| 33 | exit; |
|---|
| 34 | } else { |
|---|
| 35 | print("¥â¥¸¥å¡¼¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:".$path); |
|---|
| 36 | } |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.