POP3::login()publicWP 1.0

Метод класса: POP3{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$POP3 = new POP3();
$POP3->login ( $login, $pass );
$login **
-
По умолчанию: ""
$pass **
-
По умолчанию: ""

Код POP3::login() WP 6.6.2

function login ($login = "", $pass = "") {
    // Sends both user and pass. Returns # of msgs in mailbox or
    // false on failure (or -1, if the error occurs while getting
    // the number of messages.)

    if( !isset($this->FP) ) {
        $this->ERROR = "POP3 login: " . _("No connection to server");
        return false;
    } else {
        $fp = $this->FP;
        if( !$this->user( $login ) ) {
            //  Preserve the error generated by user()
            return false;
        } else {
            $count = $this->pass($pass);
            if( (!$count) || ($count == -1) ) {
                //  Preserve the error generated by last() and pass()
                return false;
            } else
                return $count;
        }
    }
}