Changeset 5213 for trunk/install.php


Ignore:
Timestamp:
Mar 21, 2010, 1:32:49 PM (14 years ago)
Author:
nikrou
Message:

Feature 1522 : move database config file to local directory
(include/config_database.inc.php becomes local/config/database.inc.php)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r5207 r5213  
    123123$errors = array();
    124124
    125 // database config file migration : mysql.inc.php et config_database.inc.php
     125// database config file migration : mysql.inc.php et database.inc.php
    126126$old_config_file = PHPWG_ROOT_PATH . 'include/mysql.inc.php';
    127 $config_file = PHPWG_ROOT_PATH . 'include/config_database.inc.php';
     127$config_file = PHPWG_ROOT_PATH . 'local/config/database.inc.php';
    128128if (!file_exists($config_file) && file_exists($old_config_file))
    129129{
     
    305305      $html_content = htmlentities( $file_content, ENT_QUOTES );
    306306      $html_content = nl2br( $html_content );
    307       $error_copy = l10n('Copy the text in pink between hyphens and paste it into the file "include/config_database.inc.php"(Warning : config_database.inc.php must only contain what is in pink, no line return or space character)');
     307      $error_copy = l10n('Copy the text in pink between hyphens and paste it into the file "local/config/database.inc.php"(Warning : database.inc.php must only contain what is in pink, no line return or space character)');
    308308      $error_copy .= '<br>--------------------------------------------------------------------<br>';
    309309      $error_copy .= '<span class="sql_content">' . $html_content . '</span>';
     
    392392    $html_content = htmlentities( $file_content, ENT_QUOTES );
    393393    $html_content = nl2br( $html_content );
    394     $error_copy = l10n('Copy the text in pink between hyphens and paste it into the file "include/config_database.inc.php"(Warning : config_database.inc.php must only contain what is in pink, no line return or space character)');
     394    $error_copy = l10n('Copy the text in pink between hyphens and paste it into the file "local/config/database.inc.php"(Warning : database.inc.php must only contain what is in pink, no line return or space character)');
    395395    $error_copy .= '<br>--------------------------------------------------------------------<br>';
    396396    $error_copy .= '<span class="sql_content">' . $html_content . '</span>';
Note: See TracChangeset for help on using the changeset viewer.