source: branches/dev/data/downloads/module/security/security.php @ 12082

Revision 12082, 1.4 KB checked in by naka, 19 years ago (diff)
Line 
1<?php
2/**
3 *
4 * @copyright   2000-2006 LOCKON CO.,LTD. All Rights Reserved.
5 * @version CVS: $Id: ebis_tag.php,v 1.0 2006/10/26 04:02:40 naka Exp $
6 * @link        http://www.lockon.co.jp/
7 *
8 */
9 
10//¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹
11class LC_Page {
12    //¥³¥ó¥¹¥È¥é¥¯¥¿
13    function LC_Page() {
14        //¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È¤Î»ØÄê
15        $this->tpl_mainpage = MODULE_PATH . 'security/security.tpl';
16        $this->tpl_subtitle = '¥»¥­¥å¥ê¥Æ¥£¥Á¥§¥Ã¥¯';
17    }
18}
19
20$objPage = new LC_Page();
21$objView = new SC_AdminView();
22$objQuery = new SC_Query();
23
24$arrList[] = sfCheckDataPath();
25
26$objPage->arrList = $arrList;
27
28$objView->assignobj($objPage);                  //ÊÑ¿ô¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥¢¥µ¥¤¥ó¤¹¤ë
29$objView->display($objPage->tpl_mainpage);      //¥Æ¥ó¥×¥ì¡¼¥È¤Î½ÐÎÏ
30//-------------------------------------------------------------------------------------------------------
31// ÀßÄê¥Õ¥¡¥¤¥ë(data)¤Î¥Ñ¥¹¤¬¸ø³«¥Ñ¥¹¤Ç¤Ê¤¤¤«³Îǧ¤¹¤ë
32function sfCheckOpenData() {
33    // ¥É¥­¥å¥á¥ó¥È¥ë¡¼¥È¤Î¥Ñ¥¹¤ò¿ä¬¤¹¤ë¡£
34    $doc_root = ereg_replace(URL_DIR . "$","/",HTML_PATH);
35    $data_path = realpath(DATA_PATH);
36   
37    if(ereg("^".$doc_root, $data_path)) {
38        $arrResult['result'] = "¡ß";
39        $arrResult['detail'] = "¸ø³«";
40    } else {
41        $arrResult['result'] = "¡û";
42        $arrResult['detail'] = "¸ø³«¤µ¤ì¤Æ¤¤¤ë²ÄǽÀ­¤ÏÄ㤤¤Ç¤¹¡£";       
43    }
44       
45    $arrResult['title'] = "ÀßÄê¥Õ¥¡¥¤¥ë¤ÎÊݸ¥Ñ¥¹";
46    return $arrResult;
47}
48
49?>
Note: See TracBrowser for help on using the repository browser.