source: temp/trunk/html/admin/system/load_module.php @ 7460

Revision 7460, 814 bytes checked in by kakinaka, 20 years ago (diff)

* empty log message *

  • 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 */
7require_once("../require.php");
8
9// ǧ¾Ú³Îǧ
10$objSess = new SC_Session();
11sfIsSuccess($objSess);
12
13if(is_numeric($_GET['module_id'])) {
14    $objQuery = new SC_Query();
15    $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($_GET['module_id']));
16    $path = MODULE_PATH . $arrRet[0]['main_php'];
17    if(file_exists($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        }
29        exit;
30    } else {
31        print("¥â¥¸¥å¡¼¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:".$path);
32    }   
33}
34
35?>
Note: See TracBrowser for help on using the repository browser.