File: authenticate.php

package info (click to toggle)
php-net-nntp 1.5.0~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 348 kB
  • sloc: php: 2,432; xml: 844; makefile: 5
file content (10 lines) | stat: -rw-r--r-- 183 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
$authenticated = $nntp->authenticate('somebody', 'secret');
if (PEAR::isError($authenticated)) {
    // handle error
}

if ($authenticated) {
    // success
} else {
    // failure
}