Changeset 17147


Ignore:
Timestamp:
2008/03/13 12:03:10 (16 years ago)
Author:
adachi
Message:

再インストール時のエラーを修正

Location:
branches/version-2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/include/module.inc

    r17138 r17147  
    2222 */ 
    2323 
    24 if (!defined('ECCUBE_INSTALL')) { 
     24if (!defined('ECCUBE_INSTALL') 
     25 || preg_match('|install/index.php|', $_SERVER['PHP_SELF'])) { 
     26 
    2527    return; 
    2628} 
  • branches/version-2/html/install/index.php

    r16809 r17147  
    2828ini_set("max_execution_time", 300); 
    2929 
    30 class LC_Page { 
    31     function LC_Page() { 
    32         $this->arrDB_TYPE = array( 
    33             'pgsql' => 'PostgreSQL', 
    34             'mysql' => 'MySQL' 
    35         ); 
    36         $this->arrDB_PORT = array( 
    37             'pgsql' => '', 
    38             'mysql' => '' 
    39         ); 
    40     } 
    41 } 
    42  
    43 $objPage = new LC_Page(); 
     30$objPage = new StdClass; 
     31$objPage->arrDB_TYPE = array( 
     32    'pgsql' => 'PostgreSQL', 
     33    'mysql' => 'MySQL' 
     34); 
     35$objPage->arrDB_PORT = array( 
     36    'pgsql' => '', 
     37    'mysql' => '' 
     38); 
     39 
    4440$objDb = new SC_Helper_DB_Ex(); 
    4541 
     
    845841        $data_path = $data_path . "/"; 
    846842    } 
    847      
     843 
    848844    $filepath = $data_path . "install.php"; 
    849845 
Note: See TracChangeset for help on using the changeset viewer.