Changeset 317


Ignore:
Timestamp:
Jan 24, 2004, 11:55:02 PM (20 years ago)
Author:
z0rglub
Message:
  • Php Warnings correction (file not found)
  • feature 5 : using same mail address for webmaster and initial admin
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/admin/install.php

    r274 r317  
    7474      array_push( $errors, $lang['step1_err_server'] );
    7575    }
    76                        
     76
     77    $config_file = '../include/mysql.inc.php';
     78   
    7779    if ( count( $errors ) == 0 )
    7880    {
     
    8587      $file_content.= "\n?>";
    8688      // writting the configuration file
    87       if ( $fp = @fopen( '../include/mysql.inc.php', 'a+' ) )
     89      if ( $fp = @fopen( $config_file, 'a+' ) )
    8890      {
    8991        fwrite( $fp, $file_content );
     
    9496      $cfgPassword = '';
    9597      $cfgBase     = '';
    96       include( '../include/mysql.inc.php' );
     98      if ( is_file( $config_file ) ) include( $config_file );
    9799      $file_OK = false;
    98100      if ( @mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) )
     
    240242      // webmaster admin user
    241243      $query = 'INSERT INTO '.$prefixeTable.'users';
    242       $query.= ' (id,username,password,status,language) VALUES ';
     244      $query.= ' (id,username,password,status,language,mail_address) VALUES ';
    243245      $query.= "(1,'".$webmaster."','".md5( $_POST['pwdWebmaster'] )."'";
    244       $query.= ",'admin','".$_GET['language']."')";
     246      $query.= ",'admin','".$_GET['language']."'";
     247      $query.= ",'".$_POST['mail_webmaster']."')";
    245248      $query.= ';';
    246249      mysql_query($query);
Note: See TracChangeset for help on using the changeset viewer.