Ignore:
Timestamp:
2007/04/04 00:16:03 (19 years ago)
Author:
naka
Message:
 
File:
1 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} 
Note: See TracChangeset for help on using the changeset viewer.