Changeset 12109


Ignore:
Timestamp:
2007/04/04 23:45:48 (17 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

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

    r12108 r12109  
    2323switch($_POST['mode']) { 
    2424case 'edit': 
     25    $inst_inc = DATA_PATH . 'install.inc'; 
    2526    // install.inc¤Î±£Êà
    2627    $hidden_inc = MODULE_PATH . 'security/install_inc.php'; 
    27      
    28      
    29      
     28    if(sfIsNormalInstallInc()) { 
     29        copy($inst_inc, $hidden_inc); 
     30         
     31        $require = "<?php 
     32                        require_once($hidden_inc); 
     33                    ?>"; 
     34        if($fp = fopen($inst_inc,"w")) { 
     35            fwrite($fp, $require); 
     36            fclose($fp); 
     37        } 
     38    } 
    3039    break; 
    3140default: 
     
    109118// install.inc¤Î¥Õ¥¡¥¤¥ë¤ò¥Á¥§¥Ã¥¯¤¹¤ë 
    110119function sfCheckInstallInc() { 
     120    // install.inc¤¬±£Êøå¤Î¤â¤Î¤«È½Äꤹ¤ë 
    111121    if(sfIsNormalInstallInc()) { 
    112122        $arrResult['result'] = "¡ß"; 
Note: See TracChangeset for help on using the changeset viewer.