- Timestamp:
- Jan 24, 2004, 11:55:02 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/install.php
r274 r317 74 74 array_push( $errors, $lang['step1_err_server'] ); 75 75 } 76 76 77 $config_file = '../include/mysql.inc.php'; 78 77 79 if ( count( $errors ) == 0 ) 78 80 { … … 85 87 $file_content.= "\n?>"; 86 88 // writting the configuration file 87 if ( $fp = @fopen( '../include/mysql.inc.php', 'a+' ) )89 if ( $fp = @fopen( $config_file, 'a+' ) ) 88 90 { 89 91 fwrite( $fp, $file_content ); … … 94 96 $cfgPassword = ''; 95 97 $cfgBase = ''; 96 i nclude( '../include/mysql.inc.php');98 if ( is_file( $config_file ) ) include( $config_file ); 97 99 $file_OK = false; 98 100 if ( @mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) ) … … 240 242 // webmaster admin user 241 243 $query = 'INSERT INTO '.$prefixeTable.'users'; 242 $query.= ' (id,username,password,status,language ) VALUES ';244 $query.= ' (id,username,password,status,language,mail_address) VALUES '; 243 245 $query.= "(1,'".$webmaster."','".md5( $_POST['pwdWebmaster'] )."'"; 244 $query.= ",'admin','".$_GET['language']."')"; 246 $query.= ",'admin','".$_GET['language']."'"; 247 $query.= ",'".$_POST['mail_webmaster']."')"; 245 248 $query.= ';'; 246 249 mysql_query($query);
Note: See TracChangeset
for help on using the changeset viewer.