Changeset 7472 for temp/trunk/html/admin


Ignore:
Timestamp:
2006/11/06 14:44:04 (20 years ago)
Author:
kakinaka
Message:

* empty log message *

Location:
temp/trunk/html/admin/system
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/system/load_module.php

    r7469 r7472  
    1212sfIsSuccess($objSess); 
    1313 
    14 if(is_numeric($_GET['module_id'])) { 
     14if($_GET['module_id'] != ""){ 
     15    $module_id = $_GET['module_id']; 
     16}elseif($_POST['module_id'] != ""){ 
     17    $module_id = $_POST['module_id']; 
     18} 
     19 
     20if(is_numeric($module_id)) { 
    1521    $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)); 
    1723    $path = MODULE_PATH . $arrRet[0]['main_php']; 
    1824    if(file_exists($path)) { 
    19          
    20         if($_GET['mode'] == "module_del"){ 
    21             $_POST["mode"] = $_GET['mode']; 
    22         } 
    23              
    2425        require_once($path); 
    2526        exit; 
  • temp/trunk/html/admin/system/module.php

    r7471 r7472  
    279279    // ¥â¥¸¥å¡¼¥ë¦¤Ëºï½ü¾ðÊó¤òÁ÷¿®¤¹¤ë 
    280280    $req = new HTTP_Request("http://test.ec-cube.net/ec-cube/admin/system/load_module.php"); 
    281     $req->setMethod(HTTP_REQUEST_METHOD_GET); 
    282281    $req->addPostData("module_id", $arrRet[0]['module_id']); 
    283282    $req->addPostData("mode", "module_del"); 
     283     
     284    $req->setMethod(HTTP_REQUEST_METHOD_GET); 
     285    $req->clearPostData(); 
    284286    //$req->setURL("http://test.ec-cube.net/ec-cube/admin/system/load_module.php?module_id=" .  $arrRet[0]['module_id'] . "&mode=module_del"); 
    285287    $req->setURL("http://test.ec-cube.net/ec-cube/admin/system/load_module.php"); 
    286288    $req->sendRequest(); 
    287 //  $req->clearPostData(); 
    288289    exit(); 
    289290 
Note: See TracChangeset for help on using the changeset viewer.