mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#209: Create FTP class > lend.php
This commit is contained in:
parent
7b4f703c49
commit
d97306d54c
11
web/lend.php
11
web/lend.php
@ -780,17 +780,10 @@ if (!isset($template_file) and ((!isset($servertype) and isset($page_include) an
|
||||
|
||||
$ftpipport = preg_split('/:/', $ftpipport, -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
$ftp_connect = (isset($ftpipport[1])) ? @ftp_connect($ftpipport[0], $ftpipport[1], 5) : @ftp_connect($ftpipport[0], 21, 5);
|
||||
|
||||
if ($ftp_connect) {
|
||||
$ftp_login= @ftp_login($ftp_connect, $ftpuser, $ftppass);
|
||||
|
||||
if ($ftp_login) {
|
||||
$ftpuploadpath = $postedftpuploadpath;
|
||||
}
|
||||
if (checkFtpData($ftpipport[1], (isset($ftpipport[1])) ? isset($ftpipport[1]) : 21, $ftpuser, $ftppass) === true) {
|
||||
$ftpuploadpath = $postedftpuploadpath;
|
||||
}
|
||||
|
||||
ftp_close($ftp_connect);
|
||||
}
|
||||
|
||||
$free = $gscounts[$game] - $gsused[$game];
|
||||
|
Loading…
x
Reference in New Issue
Block a user