Commit: 281559d86c1f69b6aae6bf8a7288c69a9380303c Author: Ben Ramsey <[email protected]> Sat, 23 Jan 2016 00:39:22 -0500 Parents: 3579c9d6ae4200abfc712a99a69b6c562f72a72a Branches: master
Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=281559d86c1f69b6aae6bf8a7288c69a9380303c Log: Remove functions no longer in use Changed paths: M common.php Diff: diff --git a/common.php b/common.php index 9dc422a..2e112a8 100644 --- a/common.php +++ b/common.php @@ -10,28 +10,6 @@ if (getenv('NNTP_HOST')) { define('NNTP_HOST', $NNTP_HOST); -function nntp_connect($server, $port = 119) { - $s = @fsockopen($server, $port, $errno, $errstr, 30); - if (!$s) { - return false; - } - $hello = fgets($s, 1024); - if (substr($hello,0,4) != "200 ") { - return false; - } - return $s; -} - -function nntp_cmd($conn, $command, $expected) { - if (strlen($command) > 510) { - die("command too long: $command"); - } - fputs($conn, "$command\r\n"); - $res = fgets($conn, 1024); - list($code, $extra) = explode(" ", $res, 2); - return ($code == $expected) ? $extra : false; -} - function error($str) { head("PHP news : error"); echo "<blockquote><strong>Error:</strong> $str</blockquote>\n"; -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
