source: temp/trunk/html/load_module.php @ 8546

Revision 8546, 650 bytes checked in by kakinaka, 20 years ago (diff)

blank

  • 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");
8require_once(DATA_PATH . "module/Request.php");
9
10
11if($_GET['module_id'] != ""){
12    $module_id = $_GET['module_id'];
13}elseif($_POST['module_id'] != ""){
14    $module_id = $_POST['module_id'];
15}
16
17if(is_numeric($module_id)) {
18    $objQuery = new SC_Query();
19    $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($module_id));
20    $path = MODULE_PATH . $arrRet[0]['main_php'];
21    if(file_exists($path)) {
22        require_once($path);
23        exit;
24    } else {
25        print("¥â¥¸¥å¡¼¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:".$path);
26    }
27}
28
29?>
Note: See TracBrowser for help on using the repository browser.