com web/news: Remove functions no longer in use: common.php
| From: | Ben Ramsey | Date: | Sat, 23 Jan 2016 05:39:22 +0000 |
| Subject: | com web/news: Remove functions no longer in use: common.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-24511@lists.php.net to get a copy of this message | ||
Commit: 281559d86c1f69b6aae6bf8a7288c69a9380303c
Author: Ben Ramsey <ben@benramsey.com> 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";