include newsportal.php in cron.php. Check before closing in newsportal.php.
This commit is contained in:
parent
4fc6bd5090
commit
b745359929
|
@ -121,7 +121,9 @@ function nntp2_open($nserver=0,$nport=0) {
|
||||||
$weg=line_read($ns); // kill the first line
|
$weg=line_read($ns); // kill the first line
|
||||||
if (substr($weg,0,2) != "20") {
|
if (substr($weg,0,2) != "20") {
|
||||||
echo "<p>".$text_error["error:"].$weg."</p>";
|
echo "<p>".$text_error["error:"].$weg."</p>";
|
||||||
|
if($ns) {
|
||||||
fclose($ns);
|
fclose($ns);
|
||||||
|
}
|
||||||
$ns=false;
|
$ns=false;
|
||||||
} else {
|
} else {
|
||||||
if ($ns != false) {
|
if ($ns != false) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// This file runs maintenance scripts and should be executed by cron regularly
|
// This file runs maintenance scripts and should be executed by cron regularly
|
||||||
include "config.inc.php";
|
include "config.inc.php";
|
||||||
|
include "newsportal.php";
|
||||||
include $config_dir."/scripts/rslight-lib.php";
|
include $config_dir."/scripts/rslight-lib.php";
|
||||||
|
|
||||||
$menulist = file($config_dir."menu.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
$menulist = file($config_dir."menu.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
||||||
|
|
Loading…
Reference in New Issue