Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4255/functions
Modified Files:
admin_functions.php
Log Message:
SF Patch #1177367
Trivial option to support non-standard FTP ports.
Index: admin_functions.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/admin_functions.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** admin_functions.php 2 Oct 2004 01:23:53 -0000 1.6
--- admin_functions.php 6 May 2005 21:25:02 -0000 1.7
***************
*** 48,55 ****
// returns boolean was login successful
function login_ftp ($username, $password) {
! global $ftp_server;
// set up basic connection
! $conn_id = @ftp_connect($ftp_server);
if (!$conn_id) exit(error('Cannot connect to FTP server', $filename));
// login with username and password
--- 48,55 ----
// returns boolean was login successful
function login_ftp ($username, $password) {
! global $ftp_server, $ftp_port;
// set up basic connection
! $conn_id = @ftp_connect($ftp_server, $ftp_port);
if (!$conn_id) exit(error('Cannot connect to FTP server', $filename));
// login with username and password
|