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

Revision 266, 719 bytes checked in by kakinaka, 14 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
16gfprintlog("mode -------------------------------> ".$_POST["mode"]);
17
18if(is_numeric($module_id)) {
19    $objQuery = new SC_Query();
20    $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($module_id));
21    $path = MODULE_PATH . $arrRet[0]['main_php'];
22    if(file_exists($path)) {
23        require_once($path);
24        exit;
25    } else {
26        print("¥â¥¸¥å¡¼¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:".$path);
27    }
28}
29
30?>
Note: See TracBrowser for help on using the repository browser.