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

Revision 15050, 769 bytes checked in by adati, 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
10// ǧ¾Ú²ÄÈݤÎȽÄê
11sfIsSuccess(new SC_Session());
12
13if($_GET['module_id'] != ""){
14    $module_id = $_GET['module_id'];
15}elseif($_POST['module_id'] != ""){
16    $module_id = $_POST['module_id'];
17}
18
19gfprintlog("mode -------------------------------> ".$_POST["mode"]);
20
21if(is_numeric($module_id)) {
22    $objQuery = new SC_Query();
23    $arrRet = $objQuery->select("main_php", "dtb_module", "module_id = ?", array($module_id));
24    $path = MODULE_PATH . $arrRet[0]['main_php'];
25    if(file_exists($path)) {
26        require_once($path);
27        exit;
28    } else {
29        print("¥â¥¸¥å¡¼¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:".$path);
30    }
31}
32
33?>
Note: See TracBrowser for help on using the repository browser.