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:
parent
63a5456111
commit
9871867104
|
@ -102,7 +102,7 @@ function nntp_open($nserver = 0, $nport = 0)
|
|||
function nntp2_open($nserver = 0, $nport = 0)
|
||||
{
|
||||
global $text_error, $CONFIG;
|
||||
// echo "<br>NNTP OPEN<br>";
|
||||
|
||||
$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);
|
||||
|
|
|
@ -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 '<p>** <i>Moderated Newsgroup **</p>';
|
||||
echo '<p>** <i>Message Queued for Moderation **</p>';
|
||||
} else {
|
||||
|
@ -489,7 +489,10 @@ function quoten() {
|
|||
|
||||
<?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 ' ';
|
||||
echo '<input type="file" name="photo" id="fileSelect" value="fileSelect" accept="image/*,audio/*,text/*,application/pdf">';
|
||||
echo '</td></tr>';
|
||||
|
|
Loading…
Reference in New Issue