Ignore:
Timestamp:
2009/08/16 22:55:45 (15 years ago)
Author:
kishida
Message:

#348:インストール前に /admin/ にアクセスすると /admin/install/ にリダイレクトされるの改修

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/class/util/SC_Utils.php

    r18110 r18268  
    7474    } 
    7575 
    76     // インストール初期処理 
    77     function sfInitInstall() { 
    78         // インストール済みが定義されていない。 
    79         if(!defined('ECCUBE_INSTALL')) { 
    80             if(!ereg("/install/", $_SERVER['PHP_SELF'])) { 
    81                 header("Location: ./install/"); // TODO 絶対URL にする 
     76    /** 
     77     * インストール初期処理 
     78     */ 
     79    function sfInitInstall() 
     80    { 
     81        // インストールが完了していない時 
     82        if( !defined('ECCUBE_INSTALL') ) { 
     83            if( !ereg('/install/', $_SERVER['PHP_SELF']) ) { 
     84                // インストールページに遷移させる 
     85                header('Location: /install/'); 
     86                exit; 
    8287            } 
    8388        } else { 
Note: See TracChangeset for help on using the changeset viewer.