source: branches/feature-module-update/html/load_module.php @ 15532

Revision 15532, 792 bytes checked in by nanasess, 15 years ago (diff)

svn:mime-type 修正

  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
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.