Reverts most of 8231373c80
until I can fix that issue properly.
This commit is contained in:
parent
8231373c80
commit
18e7e5eb66
|
@ -301,18 +301,7 @@ function thread_load_newsserver(&$ns, $groupname, $poll)
|
||||||
$logfile = $logdir . '/newsportal.log';
|
$logfile = $logdir . '/newsportal.log';
|
||||||
$maxfetch = 0;
|
$maxfetch = 0;
|
||||||
$idstring = "0.36," . $server . "," . $compress_spoolfiles . "," . $maxarticles . "," . $maxarticles_extra . "," . $maxfetch . "," . $initialfetch . "," . $www_charset . ',' . $iconv_enable . ',' . $thread_show["replies"];
|
$idstring = "0.36," . $server . "," . $compress_spoolfiles . "," . $maxarticles . "," . $maxarticles_extra . "," . $maxfetch . "," . $initialfetch . "," . $www_charset . ',' . $iconv_enable . ',' . $thread_show["replies"];
|
||||||
if ($CONFIG['enable_nntp'] == '1') {
|
$overviewformat = thread_overview_read($ns);
|
||||||
$overviewfmt = array(
|
|
||||||
"Subject:",
|
|
||||||
"From:",
|
|
||||||
"Date:",
|
|
||||||
"Message-ID:",
|
|
||||||
"References:",
|
|
||||||
"Bytes:"
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
$overviewformat = thread_overview_read($ns);
|
|
||||||
}
|
|
||||||
$spoolfilename = $spooldir . '/' . $groupname . '-data.db3';
|
$spoolfilename = $spooldir . '/' . $groupname . '-data.db3';
|
||||||
fputs($ns, "GROUP $groupname\r\n"); // select a group
|
fputs($ns, "GROUP $groupname\r\n"); // select a group
|
||||||
$groupinfo = explode(" ", line_read($ns));
|
$groupinfo = explode(" ", line_read($ns));
|
||||||
|
|
|
@ -24,10 +24,6 @@ include "config.inc.php";
|
||||||
include ("$file_newsportal");
|
include ("$file_newsportal");
|
||||||
include $config_dir . '/gpg.conf';
|
include $config_dir . '/gpg.conf';
|
||||||
|
|
||||||
set_error_handler(function (int $number, string $message) {
|
|
||||||
echo "Handler captured error $number: '$message'" . PHP_EOL;
|
|
||||||
});
|
|
||||||
|
|
||||||
if ($CONFIG['remote_server'] != '') {
|
if ($CONFIG['remote_server'] != '') {
|
||||||
$remote_groupfile = $spooldir . "/" . $config_name . "/" . $CONFIG['remote_server'] . ":" . $CONFIG['remote_port'] . ".txt";
|
$remote_groupfile = $spooldir . "/" . $config_name . "/" . $CONFIG['remote_server'] . ":" . $CONFIG['remote_port'] . ".txt";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue