fix deletion of htpasswd/diroption files if no more htpasswds/diroptions are in the database
This commit is contained in:
@@ -1125,6 +1125,11 @@ class apache
|
|||||||
$this->wipeOutOldDiroptionConfigs();
|
$this->wipeOutOldDiroptionConfigs();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// no more diroptions, but there might be some file-corpses which have to be removed
|
||||||
|
$this->wipeOutOldDiroptionConfigs();
|
||||||
|
}
|
||||||
|
|
||||||
// Write htpasswds
|
// Write htpasswds
|
||||||
|
|
||||||
@@ -1160,6 +1165,11 @@ class apache
|
|||||||
$this->logger->logAction(CRON_ACTION, LOG_WARNING, 'WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!');
|
$this->logger->logAction(CRON_ACTION, LOG_WARNING, 'WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// no more htpasswds, but there might be some file-corpses which have to be removed
|
||||||
|
$this->wipeOutOldHtpasswdConfigs();
|
||||||
|
}
|
||||||
|
|
||||||
// Write virtualhosts
|
// Write virtualhosts
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ while($row = $db->fetch_array($result_tasks))
|
|||||||
{
|
{
|
||||||
$awstatsclean['dir'] = dir($awstatsclean['path']);
|
$awstatsclean['dir'] = dir($awstatsclean['path']);
|
||||||
while($awstatsclean['entry'] = $awstatsclean['dir']->read()) {
|
while($awstatsclean['entry'] = $awstatsclean['dir']->read()) {
|
||||||
$awstatsclean['fullentry'] = $awstatsclean['path'].'/'.$awstatsclean['entry'];
|
$awstatsclean['fullentry'] = makeCorrectFile($awstatsclean['path'].'/'.$awstatsclean['entry']);
|
||||||
/**
|
/**
|
||||||
* dont do anything if the file does not exist
|
* dont do anything if the file does not exist
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user