source: branches/dev/html/load_module.php @ 17

Revision 17, 649 bytes checked in by uehara, 17 years ago (diff)
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 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
10if($_GET['module_id'] != ""){
11    $module_id = $_GET['module_id'];
12}elseif($_POST['module_id'] != ""){
13    $module_id = $_POST['module_id'];
14}
15
16if(is_numeric($module_id)) {
17    $objQuery = new SC_Query();
18    $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($module_id));
19    $path = MODULE_PATH . $arrRet[0]['main_php'];
20    if(file_exists($path)) {
21        require_once($path);
22        exit;
23    } else {
24        print("¥â¥¸¥å¡¼¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:".$path);
25    }
26}
27
28?>
Note: See TracBrowser for help on using the repository browser.