diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index 1549b40..ce98d1c 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -102,7 +102,7 @@ function nntp_open($nserver = 0, $nport = 0) function nntp2_open($nserver = 0, $nport = 0) { global $text_error, $CONFIG; - // echo "
NNTP OPEN
"; + $authorize = ((isset($CONFIG['remote_auth_user'])) && (isset($CONFIG['remote_auth_pass'])) && ($CONFIG['remote_auth_user'] != "")); if ($nserver == 0) $nserver = $CONFIG['remote_server']; @@ -112,10 +112,10 @@ function nntp2_open($nserver = 0, $nport = 0) if ($nport == $CONFIG['remote_port']) { $nport = $CONFIG['remote_ssl']; } - var_dump($ns = fsockopen("ssl://" . $nserver, $nport, $error, $errorString, 30)); - var_dump($errorString); - var_dump($error); - // $ns=@fsockopen('ssl://'.$nserver.":".$nport); + $ns = fsockopen("ssl://" . $nserver, $nport, $error, $errorString, 30); + if(!$ns) { + return false; + } } else { if (isset($CONFIG['socks_host']) && $CONFIG['socks_host'] !== '') { $ns = fsocks4asockopen($CONFIG['socks_host'], $CONFIG['socks_port'], $nserver, $nport); diff --git a/Rocksolid_Light/rocksolid/post.php b/Rocksolid_Light/rocksolid/post.php index 09935ba..35dd8f3 100644 --- a/Rocksolid_Light/rocksolid/post.php +++ b/Rocksolid_Light/rocksolid/post.php @@ -57,8 +57,8 @@ if ($OVERRIDES['enable_post_log'] > 0) { } @$fieldnamedecrypt = $_REQUEST['fielddecrypt']; -// @$newsgroups=$_REQUEST["newsgroups"]; -// @$group=$_REQUEST["group"]; +@$newsgroups = $_REQUEST["newsgroups"]; +@$group = $_REQUEST["group"]; @$type = $_REQUEST["type"]; @$subject = stripslashes($_POST[md5($fieldnamedecrypt . "subject")]); @$name = $_POST[md5($fieldnamedecrypt . "name")]; @@ -261,7 +261,7 @@ if ($type == "post") { // Article sent without errors, or duplicate? if ((substr($message, 0, 3) == "240") || (substr($message, 0, 7) == "441 435")) { // Is there a moderated group in Newsgroups: ? - if(is_moderated($newsgroups)) { + if (is_moderated($newsgroups)) { echo '

** Moderated Newsgroup **

'; echo '

** Message Queued for Moderation **

'; } else { @@ -489,7 +489,10 @@ function quoten() { '; echo '';