CMS: Unknown
Server IP: 162.214.74.50
Root:
/home/iideug/public_html/harshils.iideug.com
Directory:
home
/
iideug
/
public_html
/
mithil.iideug.com
/
wp-admin
/
includes
File: /home/iideug/public_html/mithil.iideug.com/wp-admin/includes/class-ftp-pure.php
<?php /** * PemFTP - An Ftp implementation in pure PHP * * @package PemFTP * @since 2.5.0 * * @version 1.0 * @copyright Alexey Dotsenko * @author Alexey Dotsenko * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html * @license LGPL https://opensource.org/licenses/lgpl-license.html */ /** * FTP implementation using fsockopen to connect. * * @package PemFTP * @subpackage Pure * @since 2.5.0 * * @version 1.0 * @copyright Alexey Dotsenko * @author Alexey Dotsenko * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html * @license LGPL https://opensource.org/licenses/lgpl-license.html */ class ftp_pure extends ftp_base { function __construct($verb=FALSE, $le=FALSE) { parent::__construct(false, $verb, $le); } // <!-- --------------------------------------------------------------------------------------- --> // <!-- Private functions --> // <!-- --------------------------------------------------------------------------------------- --> function _settimeout($sock) { if(!@stream_set_timeout($sock, $this->_timeout)) { $this->PushError('_settimeout','socket set send timeout'); $this->_quit(); return FALSE; } return TRUE; } function _connect($host, $port) { $this->SendMSG("Creating socket"); $sock = @fsockopen($host, $port, $errno, $errstr, $this->_timeout); if (!$sock) { $this->PushError('_connect','socket connect failed', $errstr." (".$errno.")"); return FALSE; } $this->_connected=true; return $sock; } function _readmsg($fnction="_readmsg"){ if(!$this->_connected) { $this->PushError($fnction, 'Connect first'); return FALSE; } $result=true; $this->_message=""; $this->_code=0; $go=true; do { $tmp=@fgets($this->_ftp_control_sock, 512); if($tmp===false) { $go=$result=false; $this->PushError($fnction,'Read failed'); } else { $this->_message.=$tmp; if(preg_match("/^([0-9]{3})(-(.*[".CRLF."]{1,2})+\\1)? [^".CRLF."]+[".CRLF."]{1,2}$/", $this->_message, $regs)) $go=false; } } while($go); if($this->LocalEcho) echo "GET < ".rtrim($this->_message, CRLF).CRLF; $this->_code=(int)$regs[1]; return $result; } function _exec($cmd, $fnction="_exec") { if(!$this->_ready) { $this->PushError($fnction,'Connect first'); return FALSE; } if($this->LocalEcho) echo "PUT > ",$cmd,CRLF; $status=@fputs($this->_ftp_control_sock, $cmd.CRLF); if($status===false) { $this->PushError($fnction,'socket write failed'); return FALSE; } $this->_lastaction=time(); if(!$this->_readmsg($fnction)) return FALSE; return TRUE; } function _data_prepare($mode=FTP_ASCII) { if(!$this->_settype($mode)) return FALSE; if($this->_passive) { if(!$this->_exec("PASV", "pasv")) { $this->_data_close(); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); return FALSE; } $ip_port = explode(",", preg_replace("/^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*$/s", "\\1", $this->_message)); $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3]; $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]); $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); $this->_ftp_data_sock=@fsockopen($this->_datahost, $this->_dataport, $errno, $errstr, $this->_timeout); if(!$this->_ftp_data_sock) { $this->PushError("_data_prepare","fsockopen fails", $errstr." (".$errno.")"); $this->_data_close(); return FALSE; } else $this->_ftp_data_sock; } else { $this->SendMSG("Only passive connections available!"); return FALSE; } return TRUE; } function _data_read($mode=FTP_ASCII, $fp=NULL) { if(is_resource($fp)) $out=0; else $out=""; if(!$this->_passive) { $this->SendMSG("Only passive connections available!"); return FALSE; } while (!feof($this->_ftp_data_sock)) { $block=fread($this->_ftp_data_sock, $this->_ftp_buff_size); if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_local], $block); if(is_resource($fp)) $out+=fwrite($fp, $block, strlen($block)); else $out.=$block; } return $out; } function _data_write($mode=FTP_ASCII, $fp=NULL) { if(is_resource($fp)) $out=0; else $out=""; if(!$this->_passive) { $this->SendMSG("Only passive connections available!"); return FALSE; } if(is_resource($fp)) { while(!feof($fp)) { $block=fread($fp, $this->_ftp_buff_size); if(!$this->_data_write_block($mode, $block)) return false; } } elseif(!$this->_data_write_block($mode, $fp)) return false; return TRUE; } function _data_write_block($mode, $block) { if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block); do { if(($t=@fwrite($this->_ftp_data_sock, $block))===FALSE) { $this->PushError("_data_write","Can't write to socket"); return FALSE; } $block=substr($block, $t); } while(!empty($block)); return true; } function _data_close() { @fclose($this->_ftp_data_sock); $this->SendMSG("Disconnected data from remote host"); return TRUE; } function _quit($force=FALSE) { if($this->_connected or $force) { @fclose($this->_ftp_control_sock); $this->_connected=false; $this->SendMSG("Socket closed"); } } } ?>
Name
Size
Modify
Permissions
Actions
admin-filters.php
7.8 kb
2025-10-21 13:46:24
644
U
E
O
D
ajax-actions.php
148.3 kb
2025-08-15 11:01:30
644
U
E
O
D
class-automatic-upgrader-skin.php
3.6 kb
2023-06-22 14:36:26
644
U
E
O
D
class-bulk-plugin-upgrader-skin.php
2.5 kb
2024-05-02 17:20:10
644
U
E
O
D
class-bulk-theme-upgrader-skin.php
2.6 kb
2024-05-02 17:20:10
644
U
E
O
D
class-bulk-upgrader-skin.php
6.6 kb
2024-05-02 17:20:10
644
U
E
O
D
class-file-upload-upgrader.php
4.1 kb
2024-03-07 05:58:16
644
U
E
O
D
class-ftp-pure.php
5.3 kb
2019-11-01 14:57:02
644
U
E
O
D
class-language-pack-upgrader-skin.php
2.8 kb
2024-05-02 17:20:10
644
U
E
O
D
class-plugin-upgrader-skin.php
3.2 kb
2023-06-14 06:34:28
644
U
E
O
D
class-theme-installer-skin.php
12.8 kb
2025-11-10 21:08:06
644
U
E
O
D
class-theme-upgrader-skin.php
4.1 kb
2024-02-26 20:35:08
644
U
E
O
D
class-walker-category-checklist.php
5 kb
2024-08-13 23:37:16
644
U
E
O
D
class-walker-nav-menu-checklist.php
5.6 kb
2026-03-10 14:01:32
644
U
E
O
D
class-wp-ajax-upgrader-skin.php
4.1 kb
2023-06-22 14:36:26
644
U
E
O
D
class-wp-application-passwords-list-table.php
6.8 kb
2024-02-16 21:47:12
644
U
E
O
D
class-wp-comments-list-table.php
32.4 kb
2026-01-27 02:19:34
644
U
E
O
D
class-wp-community-events.php
18.2 kb
2025-06-02 15:00:28
644
U
E
O
D
class-wp-links-list-table.php
9 kb
2024-07-17 15:43:16
644
U
E
O
D
class-wp-list-table-compat.php
1.5 kb
2020-11-14 16:54:08
644
U
E
O
D
class-wp-media-list-table.php
25.3 kb
2025-03-17 18:54:28
644
U
E
O
D
class-wp-ms-sites-list-table.php
21.6 kb
2025-06-27 15:09:32
644
U
E
O
D
class-wp-ms-themes-list-table-schema.php
358 b
2024-05-02 17:20:10
644
U
E
O
D
class-wp-ms-themes-list-table.php
27.8 kb
2025-03-10 18:16:28
644
U
E
O
D
class-wp-ms-users-list-table.php
15.4 kb
2025-02-27 00:09:24
644
U
E
O
D
class-wp-plugin-install-list-table.php
24.5 kb
2025-07-31 22:49:34
644
U
E
O
D
class-wp-plugins-list-table.php
56.4 kb
2025-09-08 20:58:38
644
U
E
O
D
class-wp-post-comments-list-table.php
1.4 kb
2022-10-04 03:47:16
644
U
E
O
D
class-wp-posts-list-table.php
63.7 kb
2025-07-25 15:17:22
644
U
E
O
D
class-wp-privacy-data-export-requests-list-table.php
5.4 kb
2022-03-10 19:22:02
644
U
E
O
D
class-wp-privacy-data-removal-requests-list-table.php
5.6 kb
2023-09-08 09:32:24
644
U
E
O
D
class-wp-privacy-policy-content.php
31.9 kb
2025-08-27 10:34:28
644
U
E
O
D
class-wp-site-health-auto-updates.php
14 kb
2024-11-04 15:25:18
644
U
E
O
D
class-wp-site-health.php
121.9 kb
2025-11-04 08:50:36
644
U
E
O
D
class-wp-site-icon.php
6.3 kb
2024-03-02 20:15:14
644
U
E
O
D
class-wp-terms-list-table.php
20.7 kb
2025-07-23 17:00:42
644
U
E
O
D
class-wp-theme-install-list-table.php
15.2 kb
2025-01-21 21:49:22
644
U
E
O
D
class-wp-themes-list-table.php
10.1 kb
2025-08-27 10:34:28
644
U
E
O
D
class-wp-upgrader-skin.php
6.9 kb
2024-05-02 17:20:10
644
U
E
O
D
class-wp-upgrader-skins.php
1.4 kb
2019-10-08 17:19:04
644
U
E
O
D
class-wp-users-list-table.php
18.6 kb
2024-01-10 11:57:16
644
U
E
O
D
continents-cities.php
20.1 kb
2022-09-19 23:24:12
644
U
E
O
D
credits.php
5.7 kb
2024-12-19 03:44:24
644
U
E
O
D
edit-tag-messages.php
1.4 kb
2021-12-07 12:20:02
644
U
E
O
D
media.php
116.3 kb
2025-12-01 14:26:32
644
U
E
O
D
ms-admin-filters.php
1.3 kb
2022-09-20 02:51:10
644
U
E
O
D
noop.php
1.1 kb
2023-09-21 01:27:26
644
U
E
O
D
taxonomy.php
8.2 kb
2025-06-03 16:51:34
644
U
E
O
D
translation-install.php
10.8 kb
2024-09-11 12:08:20
644
U
E
O
D
upgrade.php
113.3 kb
2025-10-21 04:33:30
644
U
E
O
D