Temp fix in cron.php for new installs and cleanup in post.php

This commit is contained in:
Retro_Guy 2022-05-16 07:01:53 +01:00
parent 296c095ddd
commit 21a98d9724
2 changed files with 7 additions and 1 deletions

View File

@ -170,7 +170,7 @@ if ($type=="new") {
if ($type=="post") {
$show=0;
if (!$CONFIG['synchronet']) {
if (check_bbs_auth(trim($name), $userpass)==FALSE) {
if (check_bbs_auth(trim($name), $userpass) == FALSE) {
$type="retry";
$error=$text_error["auth_error"];
}

View File

@ -40,6 +40,12 @@
@chown($webtmp, $CONFIG['webserver_user']);
@chgrp($webtmp, $CONFIG['webserver_user']);
# Fix this. It shouldn't be necessary
$overview = $spooldir.'/articles-overview.db3';
touch($overview);
@chown($overview, $CONFIG['webserver_user']);
@chgrp($overview, $CONFIG['webserver_user']);
/* Change to non root user */
$uinfo=posix_getpwnam($CONFIG['webserver_user']);
change_identity($uinfo["uid"],$uinfo["gid"]);