source: branches/comu/html/admin/system/load_module.php @ 2

Revision 2, 715 bytes checked in by root, 17 years ago (diff)

new import

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");
8require_once(DATA_PATH . "module/Request.php");
9
10// ǧ¾Ú³Îǧ
11$objSess = new SC_Session();
12sfIsSuccess($objSess);
13
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)) {
21    $objQuery = new SC_Query();
22    $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($module_id));
23    $path = MODULE_PATH . $arrRet[0]['main_php'];
24    if(file_exists($path)) {
25        require_once($path);
26        exit;
27    } else {
28        print("¥â¥¸¥å¡¼¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:".$path);
29    }
30}
31
32?>
Note: See TracBrowser for help on using the repository browser.