Update of /cvsroot/easymod/easymod2/mods/easymod/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27327/mods/easymod/includes
Modified Files:
admin_easymod.php.txt
Log Message:
Implemented the test_ftp function in the EM settings panel.
Index: admin_easymod.php.txt
===================================================================
RCS file: /cvsroot/easymod/easymod2/mods/easymod/includes/admin_easymod.php.txt,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** admin_easymod.php.txt 5 Nov 2005 00:30:52 -0000 1.36
--- admin_easymod.php.txt 5 Nov 2005 17:13:01 -0000 1.37
***************
*** 1005,1009 ****
em_db_update('EM_version', str_replace("'", "''", $em_version));
! message_die(GENERAL_MESSAGE, '<br />' . $lang['EM_settings_success'] . " $pass_msg<br /><br />");
}
--- 1005,1021 ----
em_db_update('EM_version', str_replace("'", "''", $em_version));
! // Test the FTP connection?
! if( $write == 'ftpb' || $move == 'ftpa' )
! {
! $command_file = get_em_settings('6E7574747A79.72756C657321', '', $password);
! $test_result = test_ftp($ftp_user, $ftp_pass, $ftp_dir, $ftp_host, $ftp_port, $ftp_debug, $ftp_type, $ftp_cache, $test_report);
! $test_report = '<table align="center"><tr><td align="left">' . implode("\n", $test_report) . '</td></tr></table>';
! }
! else
! {
! $test_report = '';
! }
!
! message_die(GENERAL_MESSAGE, '<br />' . $lang['EM_settings_success'] . " $pass_msg<br /><br />$test_report");
}
|