Ignore:
Timestamp:
2011/01/17 03:28:37 (13 years ago)
Author:
Seasoft
Message:

#903(install.php の取り扱い事故を防ぐ)
#628(未使用処理・定義などの削除)
#627(ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis.php

    r19875 r19937  
    222222    } 
    223223     
    224     //管理機能ディレクトリのリネームとinstall.phpの変更 
     224    //管理機能ディレクトリのリネームと CONFIG_REALFILE の変更 
    225225    function lfUpdateAdminData($array){ 
    226226        $admin_dir = trim($array['admin_dir'])."/"; 
     
    240240        $admin_allow_hosts = serialize($admin_allow_hosts); 
    241241 
    242         //権限チェック  
    243         if(!is_writable(DATA_REALDIR . "install.php")){ 
    244             $this->arrErr["admin_force_ssl"] = DATA_REALDIR . "install.phpを変更する権限がありません。"; 
     242        // 権限チェック  
     243        if(!is_writable(CONFIG_REALFILE)){ 
     244            $this->arrErr["admin_force_ssl"] = CONFIG_REALFILE . ' を変更する権限がありません。'; 
    245245            return false; 
    246246        } 
    247247 
    248         //install.phpの書き換え 
    249         $installData = file(DATA_REALDIR."install.php",FILE_IGNORE_NEW_LINES); 
     248        // CONFIG_REALFILE の書き換え 
     249        $installData = file(CONFIG_REALFILE, FILE_IGNORE_NEW_LINES); 
    250250        $diff = 0; 
    251251        foreach($installData as $key=>$line){ 
Note: See TracChangeset for help on using the changeset viewer.