Changeset 2201 for trunk/install.php
- Timestamp:
- Jan 30, 2008, 11:07:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.php
r2189 r2201 236 236 if ( @mysql_select_db($_POST['dbname'] ) ) 237 237 { 238 array_push( $infos, $lang['step1_confirmation']);238 array_push( $infos, l10n('step1_confirmation') ); 239 239 } 240 240 else 241 241 { 242 array_push( $errors, $lang['step1_err_db']);242 array_push( $errors, l10n('step1_err_db') ); 243 243 } 244 244 if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') ) … … 261 261 else 262 262 { 263 array_push( $errors, $lang['step1_err_server']);263 array_push( $errors, l10n('step1_err_server') ); 264 264 } 265 265 266 266 $webmaster = trim(preg_replace( '/\s{2,}/', ' ', $admin_name )); 267 267 if ( empty($webmaster)) 268 array_push( $errors, $lang['step2_err_login1']);268 array_push( $errors, l10n('step2_err_login1') ); 269 269 else if ( preg_match( '/[\'"]/', $webmaster ) ) 270 array_push( $errors, $lang['step2_err_login3']);270 array_push( $errors, l10n('step2_err_login3') ); 271 271 if ( $admin_pass1 != $admin_pass2 || empty($admin_pass1) ) 272 array_push( $errors, $lang['step2_err_pass']);272 array_push( $errors, l10n('step2_err_pass') ); 273 273 if ( empty($admin_mail)) 274 array_push( $errors, $lang['reg_err_mail_address']);274 array_push( $errors, l10n('reg_err_mail_address') ); 275 275 else 276 276 { … … 385 385 'RELEASE'=>PHPWG_VERSION, 386 386 387 'L_BASE_TITLE'=> $lang['Initial_config'],388 'L_LANG_TITLE'=> $lang['Default_lang'],389 'L_DB_TITLE'=> $lang['step1_title'],390 'L_DB_HOST'=> $lang['step1_host'],391 'L_DB_HOST_INFO'=> $lang['step1_host_info'],392 'L_DB_USER'=> $lang['step1_user'],393 'L_DB_USER_INFO'=> $lang['step1_user_info'],394 'L_DB_PASS'=> $lang['step1_pass'],395 'L_DB_PASS_INFO'=> $lang['step1_pass_info'],396 'L_DB_NAME'=> $lang['step1_database'],397 'L_DB_NAME_INFO'=> $lang['step1_database_info'],398 'L_DB_PREFIX'=> $lang['step1_prefix'],399 'L_DB_PREFIX_INFO'=> $lang['step1_prefix_info'],400 'L_ADMIN_TITLE'=> $lang['step2_title'],401 'L_ADMIN'=> $lang['install_webmaster'],402 'L_ADMIN_INFO'=> $lang['install_webmaster_info'],403 'L_ADMIN_PASSWORD'=> $lang['step2_pwd'],404 'L_ADMIN_PASSWORD_INFO'=> $lang['step2_pwd_info'],405 'L_ADMIN_CONFIRM_PASSWORD'=> $lang['step2_pwd_conf'],406 'L_ADMIN_CONFIRM_PASSWORD_INFO'=> $lang['step2_pwd_conf_info'],407 'L_ADMIN_EMAIL'=> $lang['conf_mail_webmaster'],408 'L_ADMIN_EMAIL_INFO'=> $lang['conf_mail_webmaster_info'],409 'L_SUBMIT'=> $lang['Start_Install'],410 'L_INSTALL_HELP'=>sprintf( $lang['install_help'], 'http://forum.'.PHPWG_DOMAIN.'/'),411 'L_ERR_COPY'=> $lang['step1_err_copy'],412 'L_END_TITLE'=> $lang['install_end_title'],413 'L_END_MESSAGE'=> $lang['install_end_message'],387 'L_BASE_TITLE'=>l10n('Initial_config'), 388 'L_LANG_TITLE'=>l10n('Default_lang'), 389 'L_DB_TITLE'=>l10n('step1_title'), 390 'L_DB_HOST'=>l10n('step1_host'), 391 'L_DB_HOST_INFO'=>l10n('step1_host_info'), 392 'L_DB_USER'=>l10n('step1_user'), 393 'L_DB_USER_INFO'=>l10n('step1_user_info'), 394 'L_DB_PASS'=>l10n('step1_pass'), 395 'L_DB_PASS_INFO'=>l10n('step1_pass_info'), 396 'L_DB_NAME'=>l10n('step1_database'), 397 'L_DB_NAME_INFO'=>l10n('step1_database_info'), 398 'L_DB_PREFIX'=>l10n('step1_prefix'), 399 'L_DB_PREFIX_INFO'=>l10n('step1_prefix_info'), 400 'L_ADMIN_TITLE'=>l10n('step2_title'), 401 'L_ADMIN'=>l10n('install_webmaster'), 402 'L_ADMIN_INFO'=>l10n('install_webmaster_info'), 403 'L_ADMIN_PASSWORD'=>l10n('step2_pwd'), 404 'L_ADMIN_PASSWORD_INFO'=>l10n('step2_pwd_info'), 405 'L_ADMIN_CONFIRM_PASSWORD'=>l10n('step2_pwd_conf'), 406 'L_ADMIN_CONFIRM_PASSWORD_INFO'=>l10n('step2_pwd_conf_info'), 407 'L_ADMIN_EMAIL'=>l10n('conf_mail_webmaster'), 408 'L_ADMIN_EMAIL_INFO'=>l10n('conf_mail_webmaster_info'), 409 'L_SUBMIT'=>l10n('Start_Install'), 410 'L_INSTALL_HELP'=>sprintf(l10n('install_help'), 'http://forum.'.PHPWG_DOMAIN.'/'), 411 'L_ERR_COPY'=>l10n('step1_err_copy'), 412 'L_END_TITLE'=>l10n('install_end_title'), 413 'L_END_MESSAGE'=>l10n('install_end_message'), 414 414 415 415 'F_ACTION'=>'install.php',
Note: See TracChangeset
for help on using the changeset viewer.