Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
easymod_install.php
#
#-----[ FIND ]------------------------------------------
#
if ( file_exists(@phpbb_realpath($phpbb_root_path . $script_path . 'language/lang_easymod_' . preg_replace("/language\/lang_(.*)\//", "\\1", $lang_files[$i]['path']) . '.' .$phpEx)) )
#
#-----[ REPLACE WITH ]----------------------------------
#
if ( file_exists(@phpbb_realpath($phpbb_root_path . $script_path . 'languages/lang_easymod_' . preg_replace("/language\/lang_(.*)\//", "\\1", $lang_files[$i]['path']) . '.' .$phpEx)) )
#
#-----[ FIND ]------------------------------------------
#
$command_file->afile[] = "copy language/lang_easymod_" . preg_replace("/language\/lang_(.*)\//", "\\1", $lang_files[$i]['path']) . ".$phpEx ../../../" . $lang_files[$i]['path'] . 'lang_easymod.' . $phpEx ;
#
#-----[ REPLACE WITH ]----------------------------------
#
$command_file->afile[] = "copy languages/lang_easymod_" . preg_replace("/language\/lang_(.*)\//", "\\1", $lang_files[$i]['path']) . ".$phpEx ../../../" . $lang_files[$i]['path'] . 'lang_easymod.' . $phpEx ;
#
#-----[ FIND ]------------------------------------------
#
$command_file->afile[] = "copy language/lang_easymod_english.$phpEx ../../../" . $lang_files[$i]['path'] . 'lang_easymod.' . $phpEx ;
#
#-----[ REPLACE WITH ]----------------------------------
#
$command_file->afile[] = "copy languages/lang_easymod_english.$phpEx ../../../" . $lang_files[$i]['path'] . 'lang_easymod.' . $phpEx ;
#
#-----[ OPEN ]------------------------------------------
#
easymod_display_functions.php
#
#-----[ FIND ]------------------------------------------
#
if (test_ftp( $ftp_user, $ftp_pass, $ftp_dir, $ftp_host, true, $ftp_type, $ftp_cache))
#
#-----[ REPLACE WITH ]----------------------------------
#
if (test_ftp( $ftp_user, $ftp_pass, $ftp_dir, $ftp_host, $ftp_port, true, $ftp_type, $ftp_cache))
#
#-----[ OPEN ]------------------------------------------
#
em_includes/em_functions.php
#
#-----[ FIND ]------------------------------------------
#
if ( copy( 'language/lang_easymod_'.$language.'.' . $phpEx, $phpbb_root_path . 'EM_test.txt'))
#
#-----[ REPLACE WITH ]----------------------------------
#
if ( copy( 'languages/lang_easymod_'.$language.'.' . $phpEx, $phpbb_root_path . 'EM_test.txt'))
A new version of EasyMOD incorporating these changes (and a few more) should be out soon, but in the interim, if ya'll could test 'em out, that'd be great. Thanks