Fix bug related to missing overrides.inc.php and also fix display of stream info on post page when using ssl.

This commit is contained in:
Retro_Guy 2024-04-18 03:33:36 -07:00
parent 63a5456111
commit 9871867104
2 changed files with 12 additions and 9 deletions

View File

@ -102,7 +102,7 @@ function nntp_open($nserver = 0, $nport = 0)
function nntp2_open($nserver = 0, $nport = 0) function nntp2_open($nserver = 0, $nport = 0)
{ {
global $text_error, $CONFIG; global $text_error, $CONFIG;
// echo "<br>NNTP OPEN<br>";
$authorize = ((isset($CONFIG['remote_auth_user'])) && (isset($CONFIG['remote_auth_pass'])) && ($CONFIG['remote_auth_user'] != "")); $authorize = ((isset($CONFIG['remote_auth_user'])) && (isset($CONFIG['remote_auth_pass'])) && ($CONFIG['remote_auth_user'] != ""));
if ($nserver == 0) if ($nserver == 0)
$nserver = $CONFIG['remote_server']; $nserver = $CONFIG['remote_server'];
@ -112,10 +112,10 @@ function nntp2_open($nserver = 0, $nport = 0)
if ($nport == $CONFIG['remote_port']) { if ($nport == $CONFIG['remote_port']) {
$nport = $CONFIG['remote_ssl']; $nport = $CONFIG['remote_ssl'];
} }
var_dump($ns = fsockopen("ssl://" . $nserver, $nport, $error, $errorString, 30)); $ns = fsockopen("ssl://" . $nserver, $nport, $error, $errorString, 30);
var_dump($errorString); if(!$ns) {
var_dump($error); return false;
// $ns=@fsockopen('ssl://'.$nserver.":".$nport); }
} else { } else {
if (isset($CONFIG['socks_host']) && $CONFIG['socks_host'] !== '') { if (isset($CONFIG['socks_host']) && $CONFIG['socks_host'] !== '') {
$ns = fsocks4asockopen($CONFIG['socks_host'], $CONFIG['socks_port'], $nserver, $nport); $ns = fsocks4asockopen($CONFIG['socks_host'], $CONFIG['socks_port'], $nserver, $nport);

View File

@ -57,8 +57,8 @@ if ($OVERRIDES['enable_post_log'] > 0) {
} }
@$fieldnamedecrypt = $_REQUEST['fielddecrypt']; @$fieldnamedecrypt = $_REQUEST['fielddecrypt'];
// @$newsgroups=$_REQUEST["newsgroups"]; @$newsgroups = $_REQUEST["newsgroups"];
// @$group=$_REQUEST["group"]; @$group = $_REQUEST["group"];
@$type = $_REQUEST["type"]; @$type = $_REQUEST["type"];
@$subject = stripslashes($_POST[md5($fieldnamedecrypt . "subject")]); @$subject = stripslashes($_POST[md5($fieldnamedecrypt . "subject")]);
@$name = $_POST[md5($fieldnamedecrypt . "name")]; @$name = $_POST[md5($fieldnamedecrypt . "name")];
@ -261,7 +261,7 @@ if ($type == "post") {
// Article sent without errors, or duplicate? // Article sent without errors, or duplicate?
if ((substr($message, 0, 3) == "240") || (substr($message, 0, 7) == "441 435")) { if ((substr($message, 0, 3) == "240") || (substr($message, 0, 7) == "441 435")) {
// Is there a moderated group in Newsgroups: ? // Is there a moderated group in Newsgroups: ?
if(is_moderated($newsgroups)) { if (is_moderated($newsgroups)) {
echo '<p>** <i>Moderated Newsgroup **</p>'; echo '<p>** <i>Moderated Newsgroup **</p>';
echo '<p>** <i>Message Queued for Moderation **</p>'; echo '<p>** <i>Message Queued for Moderation **</p>';
} else { } else {
@ -489,7 +489,10 @@ function quoten() {
<?php <?php
} }
if (! in_array($config_name, $OVERRIDES['disable_attach'], true)) { if (! isset($OVERRIDES['disable_attach'])) {
$OVERRIDES['disable_attach'] = array();
}
if (! in_array($config_name, $OVERRIDES['disable_attach'])) {
echo '&nbsp;'; echo '&nbsp;';
echo '<input type="file" name="photo" id="fileSelect" value="fileSelect" accept="image/*,audio/*,text/*,application/pdf">'; echo '<input type="file" name="photo" id="fileSelect" value="fileSelect" accept="image/*,audio/*,text/*,application/pdf">';
echo '</td></tr>'; echo '</td></tr>';