Changeset 7472 for temp/trunk/html/admin
- Timestamp:
- 2006/11/06 14:44:04 (20 years ago)
- Location:
- temp/trunk/html/admin/system
- Files:
-
- 2 edited
-
load_module.php (modified) (1 diff)
-
module.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/system/load_module.php
r7469 r7472 12 12 sfIsSuccess($objSess); 13 13 14 if(is_numeric($_GET['module_id'])) { 14 if($_GET['module_id'] != ""){ 15 $module_id = $_GET['module_id']; 16 }elseif($_POST['module_id'] != ""){ 17 $module_id = $_POST['module_id']; 18 } 19 20 if(is_numeric($module_id)) { 15 21 $objQuery = new SC_Query(); 16 $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($ _GET['module_id']));22 $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($module_id)); 17 23 $path = MODULE_PATH . $arrRet[0]['main_php']; 18 24 if(file_exists($path)) { 19 20 if($_GET['mode'] == "module_del"){21 $_POST["mode"] = $_GET['mode'];22 }23 24 25 require_once($path); 25 26 exit; -
temp/trunk/html/admin/system/module.php
r7471 r7472 279 279 // ¥â¥¸¥å¡¼¥ë¦¤Ëºï½ü¾ðÊó¤òÁ÷¿®¤¹¤ë 280 280 $req = new HTTP_Request("http://test.ec-cube.net/ec-cube/admin/system/load_module.php"); 281 $req->setMethod(HTTP_REQUEST_METHOD_GET);282 281 $req->addPostData("module_id", $arrRet[0]['module_id']); 283 282 $req->addPostData("mode", "module_del"); 283 284 $req->setMethod(HTTP_REQUEST_METHOD_GET); 285 $req->clearPostData(); 284 286 //$req->setURL("http://test.ec-cube.net/ec-cube/admin/system/load_module.php?module_id=" . $arrRet[0]['module_id'] . "&mode=module_del"); 285 287 $req->setURL("http://test.ec-cube.net/ec-cube/admin/system/load_module.php"); 286 288 $req->sendRequest(); 287 // $req->clearPostData();288 289 exit(); 289 290
Note: See TracChangeset
for help on using the changeset viewer.
