# #-----[ FIND ]------------------------------------------ # Net/SSH2.php # #-----[ FIND ]------------------------------------------ # if (!$this->fsock) { user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE); return; } # #-----[ REPLACE WITH ]---------------------------------- # if (!$this->fsock) { exit('THIS FAR x1'); user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE); return; } # #-----[ FIND ]------------------------------------------ # if ($timeout - $elapsed <= 0) { user_error(rtrim("Cannot connect to $host. Timeout error"), E_USER_NOTICE); return; } # #-----[ REPLACE WITH ]---------------------------------- # if ($timeout - $elapsed <= 0) { exit('THIS FAR x2'); user_error(rtrim("Cannot connect to $host. Timeout error"), E_USER_NOTICE); return; } # #-----[ FIND ]------------------------------------------ # if (!@stream_select($read, $write, $except, $timeout - $elapsed)) { user_error(rtrim("Cannot connect to $host. Banner timeout"), E_USER_NOTICE); return; } # #-----[ REPLACE WITH ]---------------------------------- # if (!@stream_select($read, $write, $except, $timeout - $elapsed)) { exit('THIS FAR x3'); user_error(rtrim("Cannot connect to $host. Banner timeout"), E_USER_NOTICE); return; } # #-----[ FIND ]------------------------------------------ # if (feof($this->fsock)) { user_error('Connection closed by server', E_USER_NOTICE); return false; } # #-----[ REPLACE WITH ]---------------------------------- # if (feof($this->fsock)) { exit('THIS FAR x4'); user_error('Connection closed by server', E_USER_NOTICE); return false; } # #-----[ FIND ]------------------------------------------ # if (defined('NET_SSH2_LOGGING')) { $this->message_number_log[] = '<-'; $this->message_number_log[] = '->'; if (NET_SSH2_LOGGING == NET_SSH2_LOG_COMPLEX) { $this->message_log[] = $temp; $this->message_log[] = $this->identifier . "\r\n"; } } # #-----[ REPLACE WITH ]---------------------------------- # if (defined('NET_SSH2_LOGGING')) { echo "LOGGING x1\r\n"; $this->message_number_log[] = '<-'; $this->message_number_log[] = '->'; if (NET_SSH2_LOGGING == NET_SSH2_LOG_COMPLEX) { echo "LOGGING x2\r\n"; $this->message_log[] = $temp; $this->message_log[] = $this->identifier . "\r\n"; } }