source: branches/dev/html/admin/system/load_module.php @ 257

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