Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 3 | 0.972 | statement_sequence[15] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 44 | libraries/joomla/filesystem/helper.php |
2 | 22 | 80 | libraries/joomla/filesystem/helper.php |
| ||||
$server= parse_url($url, PHP_URL_HOST); $port= parse_url($url, PHP_URL_PORT); $path= parse_url($url, PHP_URL_PATH); $user= parse_url($url, PHP_URL_USER); $pass= parse_url($url, PHP_URL_PASS); if ((!$server) || (!$path)) { return FALSE; } if (!$port) { $port= 21; } if (!$user) { $user= "anonymous"; } if (!$pass) { $pass= ""; } switch ($sch) { case "ftp": $ftpid= ftp_connect($server, $port); break; case "ftps": $ftpid= ftp_ssl_connect($server, $port); break; } if (!$ftpid) { return FALSE; } $login= ftp_login($ftpid, $user, $pass); if (!$login) { return FALSE; } $ftpsize= ftp_size($ftpid, $path); ftp_close($ftpid); |
| ||||
$server= parse_url($url, PHP_URL_HOST); $port= parse_url($url, PHP_URL_PORT); $path= parse_url($url, PHP_URL_PATH); $user= parse_url($url, PHP_URL_USER); $pass= parse_url($url, PHP_URL_PASS); if ((!$server) || (!$path)) { return FALSE; } if (!$port) { $port= 21; } if (!$user) { $user= "anonymous"; } if (!$pass) { $pass= ""; } switch ($sch) { case "ftp": $ftpid= ftp_connect($server, $port); break; case "ftps": $ftpid= ftp_ssl_connect($server, $port); break; } if (!$ftpid) { return FALSE; } $login= ftp_login($ftpid, $user, $pass); if (!$login) { return FALSE; } $res= ftp_chmod($ftpid, $mode, $path); ftp_close($ftpid); |
| |||
$server=parse_url($url,PHP_URL_HOST); $port=parse_url($url,PHP_URL_PORT); $path=parse_url($url,PHP_URL_PATH); $user=parse_url($url,PHP_URL_USER); $pass=parse_url($url,PHP_URL_PASS); if ((!$server) || (!$path)) { return FALSE; } if (!$port) { $port=21; } if (!$user) { $user="anonymous"; } if (!$pass) { $pass=""; } switch ($sch) { case "ftp": $ftpid=ftp_connect($server,$port); break; case "ftps": $ftpid=ftp_ssl_connect($server,$port); break; } if (!$ftpid) { return FALSE; } $login=ftp_login($ftpid,$user,$pass); if (!$login) { return FALSE; } [[#variable225b26e0]]= [[#variable57f73920]]( [[#variable24bd4780]],$path); ftp_close($ftpid); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#225b26e0]] | $res |
1 | 2 | [[#225b26e0]] | $ftpsize |
2 | 1 | [[#57f73920]] | ftp_chmod |
2 | 2 | [[#57f73920]] | ftp_size |
3 | 1 | [[#24bd4780]] | $ftpid,$mode |
3 | 2 | [[#24bd4780]] | $ftpid |