Changeset 7460 for temp/trunk/html/admin


Ignore:
Timestamp:
2006/11/06 14:08:38 (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

    r6622 r7460  
    1616    $path = MODULE_PATH . $arrRet[0]['main_php']; 
    1717    if(file_exists($path)) { 
    18         require_once($path); 
     18         
     19        if($_GET['mode'] == "module_del"){ 
     20            // ¥â¥¸¥å¡¼¥ë¦¤Ëºï½ü¾ðÊó¤òÁ÷¿®¤¹¤ë 
     21            $req = new HTTP_Request($path); 
     22            $req->setMethod(HTTP_REQUEST_METHOD_POST); 
     23            $req->addPostData("mode", "module_del"); 
     24            $req->sendRequest(); 
     25            $req->clearPostData(); 
     26        }else{ 
     27            require_once($path); 
     28        } 
    1929        exit; 
    2030    } else { 
  • temp/trunk/html/admin/system/module.php

    r7459 r7460  
    278278     
    279279    // ¥â¥¸¥å¡¼¥ë¦¤Ëºï½ü¾ðÊó¤òÁ÷¿®¤¹¤ë 
    280     $req = new HTTP_Request("http://test.ec-cube.net/ec-cube/admin/system/load_module.php?module_id=" . $_POST['module_id']); 
    281     $req->setMethod(HTTP_REQUEST_METHOD_POST); 
    282     $req->addPostData("mode", "mdl_del"); 
     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    $req->addPostData("module_id", $arrRet[0]['module_id']); 
     283    $req->addPostData("mode", "module_del"); 
    283284    $req->clearPostData(); 
    284     if (!PEAR::isError($req->sendRequest())) { 
    285     } 
    286     exit(); 
     285    exit 
    287286 
    288287    /* 
Note: See TracChangeset for help on using the changeset viewer.