/home/desid573/book.familycab.com.au
NameSizeModeActions
.well-known/-0755rm
assets/-0755rm
cgi-bin/-0755rm
eway-rapid-php-master/-0755rm
invoice/-0755rm
ltjvghp/-0755rm
pdd/-0755rm
pwcsebh/-0755rm
swtrvog/-0755rm
w1mcglu/-0755rm
.htaccess2810644editdlrm
10.php19410644editdlrm
11.php11760644editdlrm
22.php91060644editdlrm
array.php21410644editdlrm
a_name_address.php9590644editdlrm
brisbaneInvoice.php118450644editdlrm
class.phpmailer.php800460644editdlrm
class.pop3.php103850644editdlrm
class.smtp.php245860644editdlrm
dispatch.php8770644editdlrm
driverInvoice.php127080644editdlrm
driverlocation.php145850644editdlrm
eCrypt.js684240644editdlrm
edit.php7800644editdlrm
eway-rapid-php-master.zip572700644editdlrm
eWay.php426970644editdlrm
family-cab_small.jpg988530644editdlrm
favicon.ico11500644editdlrm
index.php1983580644editdlrm
index1apr2019.php928440644editdlrm
index3.php606770644editdlrm
index4.php915000644editdlrm
index15thMay.php926400644editdlrm
indexJune10.php930530644editdlrm
indextest.php913910644editdlrm
indexTraffic.php860400644editdlrm
index_preSydney.php603500644editdlrm
index_sydney.php741260644editdlrm
melbAuditReport.php341760644editdlrm
melbreport.php77580644editdlrm
monthly.php120460644editdlrm
perthAuditReport.php349180644editdlrm
perthReport.php75870644editdlrm
pre-sydneyquote.php391580644editdlrm
promo.php7650644editdlrm
qldreport.php75440644editdlrm
quote.php523580644editdlrm
quote2.php388310644editdlrm
quote_sydney.php519120644editdlrm
report.php104470644editdlrm
search.php8540644editdlrm
serialize.php1320644editdlrm
style.json10140644editdlrm
sydneydispatch.php121770644editdlrm
sydneyreport.php77580644editdlrm
test.php38510644editdlrm
thankyou.php320030644editdlrm
wp-cron-cwhi.php16590644editdlrm
Edit: /home/desid573/book.familycab.com.au/class.pop3.php (10385B)
pop_conn = 0; $this->connected = false; $this->error = null; } /** * Combination of public events - connect, login, disconnect * @access public * @param string $host * @param integer $port * @param integer $tval * @param string $username * @param string $password */ public function Authorise ($host, $port = false, $tval = false, $username, $password, $debug_level = 0) { $this->host = $host; // If no port value is passed, retrieve it if ($port == false) { $this->port = $this->POP3_PORT; } else { $this->port = $port; } // If no port value is passed, retrieve it if ($tval == false) { $this->tval = $this->POP3_TIMEOUT; } else { $this->tval = $tval; } $this->do_debug = $debug_level; $this->username = $username; $this->password = $password; // Refresh the error log $this->error = null; // Connect $result = $this->Connect($this->host, $this->port, $this->tval); if ($result) { $login_result = $this->Login($this->username, $this->password); if ($login_result) { $this->Disconnect(); return true; } } // We need to disconnect regardless if the login succeeded $this->Disconnect(); return false; } /** * Connect to the POP3 server * @access public * @param string $host * @param integer $port * @param integer $tval * @return boolean */ public function Connect ($host, $port = false, $tval = 30) { // Are we already connected? if ($this->connected) { return true; } /* On Windows this will raise a PHP Warning error if the hostname doesn't exist. Rather than supress it with @fsockopen, let's capture it cleanly instead */ set_error_handler(array(&$this, 'catchWarning')); // Connect to the POP3 server $this->pop_conn = fsockopen($host, // POP3 Host $port, // Port # $errno, // Error Number $errstr, // Error Message $tval); // Timeout (seconds) // Restore the error handler restore_error_handler(); // Does the Error Log now contain anything? if ($this->error && $this->do_debug >= 1) { $this->displayErrors(); } // Did we connect? if ($this->pop_conn == false) { // It would appear not... $this->error = array( 'error' => "Failed to connect to server $host on port $port", 'errno' => $errno, 'errstr' => $errstr ); if ($this->do_debug >= 1) { $this->displayErrors(); } return false; } // Increase the stream time-out // Check for PHP 4.3.0 or later if (version_compare(phpversion(), '5.0.0', 'ge')) { stream_set_timeout($this->pop_conn, $tval, 0); } else { // Does not work on Windows if (substr(PHP_OS, 0, 3) !== 'WIN') { socket_set_timeout($this->pop_conn, $tval, 0); } } // Get the POP3 server response $pop3_response = $this->getResponse(); // Check for the +OK if ($this->checkResponse($pop3_response)) { // The connection is established and the POP3 server is talking $this->connected = true; return true; } } /** * Login to the POP3 server (does not support APOP yet) * @access public * @param string $username * @param string $password * @return boolean */ public function Login ($username = '', $password = '') { if ($this->connected == false) { $this->error = 'Not connected to POP3 server'; if ($this->do_debug >= 1) { $this->displayErrors(); } } if (empty($username)) { $username = $this->username; } if (empty($password)) { $password = $this->password; } $pop_username = "USER $username" . $this->CRLF; $pop_password = "PASS $password" . $this->CRLF; // Send the Username $this->sendString($pop_username); $pop3_response = $this->getResponse(); if ($this->checkResponse($pop3_response)) { // Send the Password $this->sendString($pop_password); $pop3_response = $this->getResponse(); if ($this->checkResponse($pop3_response)) { return true; } else { return false; } } else { return false; } } /** * Disconnect from the POP3 server * @access public */ public function Disconnect () { $this->sendString('QUIT'); fclose($this->pop_conn); } ///////////////////////////////////////////////// // Private Methods ///////////////////////////////////////////////// /** * Get the socket response back. * $size is the maximum number of bytes to retrieve * @access private * @param integer $size * @return string */ private function getResponse ($size = 128) { $pop3_response = fgets($this->pop_conn, $size); return $pop3_response; } /** * Send a string down the open socket connection to the POP3 server * @access private * @param string $string * @return integer */ private function sendString ($string) { $bytes_sent = fwrite($this->pop_conn, $string, strlen($string)); return $bytes_sent; } /** * Checks the POP3 server response for +OK or -ERR * @access private * @param string $string * @return boolean */ private function checkResponse ($string) { if (substr($string, 0, 3) !== '+OK') { $this->error = array( 'error' => "Server reported an error: $string", 'errno' => 0, 'errstr' => '' ); if ($this->do_debug >= 1) { $this->displayErrors(); } return false; } else { return true; } } /** * If debug is enabled, display the error message array * @access private */ private function displayErrors () { echo '
';

    foreach ($this->error as $single_error) {
      print_r($single_error);
    }

    echo '
'; } /** * Takes over from PHP for the socket warning handler * @access private * @param integer $errno * @param string $errstr * @param string $errfile * @param integer $errline */ private function catchWarning ($errno, $errstr, $errfile, $errline) { $this->error[] = array( 'error' => "Connecting to the POP3 server raised a PHP warning: ", 'errno' => $errno, 'errstr' => $errstr ); } // End of class } ?>