Changeset 12082


Ignore:
Timestamp:
2007/04/04 00:16:03 (17 years ago)
Author:
naka
Message:
 
Location:
branches/dev/data/downloads/module/security
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/downloads/module/security/security.php

    r12081 r12082  
    3030//------------------------------------------------------------------------------------------------------- 
    3131// ÀßÄê¥Õ¥¡¥¤¥ë(data)¤Î¥Ñ¥¹¤¬¸ø³«¥Ñ¥¹¤Ç¤Ê¤¤¤«³Îǧ¤¹¤ë 
    32 function sfCheckDataPath() { 
     32function sfCheckOpenData() { 
    3333    // ¥É¥­¥å¥á¥ó¥È¥ë¡¼¥È¤Î¥Ñ¥¹¤ò¿ä¬¤¹¤ë¡£ 
    3434    $doc_root = ereg_replace(URL_DIR . "$","/",HTML_PATH); 
    35     $arrResult['title'] = "ÀßÄê¥Õ¥¡¥¤¥ë¤ÎÊݸ¥Ñ¥¹"; 
    36      
    3735    $data_path = realpath(DATA_PATH); 
    3836     
    39     $arrResult['result'] = $data_path; 
    40      
    41      
     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'] = "ÀßÄê¥Õ¥¡¥¤¥ë¤ÎÊݸ¥Ñ¥¹"; 
    4246    return $arrResult; 
    4347} 
  • branches/dev/data/downloads/module/security/security.tpl

    r12077 r12082  
    7373                                    <table width="442" border="0" cellspacing="1" cellpadding="5" summary=" "> 
    7474                                        <tr bgcolor="#f2f1ec" align="center" class="fs12n"> 
    75                                             <td width="140">¥Á¥§¥Ã¥¯ÆâÍÆ</td> 
    76                                             <td width="300">·ë²Ì</td> 
     75                                            <td width="120">¥Á¥§¥Ã¥¯ÆâÍÆ</td> 
     76                                            <td width="20">·ë²Ì</td> 
     77                                            <td width="300">¾ÜºÙ</td> 
    7778                                        </tr> 
    7879                                        <!--{section name=i loop=$arrList}--> 
     
    8081                                            <td bgcolor="#ffffff"><!--{$arrList[i].title}--></td> 
    8182                                            <td bgcolor="#ffffff"><!--{$arrList[i].result}--></td> 
     83                                            <td bgcolor="#ffffff"><!--{$arrList[i].detail}--></td> 
    8284                                        </tr> 
    8385                                        <!--{/section}--> 
Note: See TracChangeset for help on using the changeset viewer.