fix some more checkstyle issues
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -386,8 +386,8 @@ class Apache extends HttpConfigBase
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
}
|
||||
} // end of ssl-redirect check
|
||||
else {
|
||||
// end of ssl-redirect check
|
||||
} else {
|
||||
// fallback of froxlor domain-data for processSpecialConfigTemplate()
|
||||
$domain = array(
|
||||
'domain' => Settings::Get('system.hostname'),
|
||||
@@ -597,7 +597,9 @@ class Apache extends HttpConfigBase
|
||||
}
|
||||
|
||||
public function createOwnVhostStarter()
|
||||
{}
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* We collect all servernames and Aliases
|
||||
@@ -698,11 +700,11 @@ class Apache extends HttpConfigBase
|
||||
} else {
|
||||
$stats_text .= ' Alias /webalizer "' . \Froxlor\FileDir::makeCorrectFile($domain['customerroot'] . '/webalizer') . '"' . "\n";
|
||||
}
|
||||
} // if the docroots are equal, we still have to set an alias for awstats
|
||||
// because the stats are in /awstats/[domain], not just /awstats/
|
||||
// also, the awstats-icons are someplace else too!
|
||||
// -> webalizer does not need this!
|
||||
elseif (Settings::Get('system.awstats_enabled') == '1') {
|
||||
} elseif (Settings::Get('system.awstats_enabled') == '1') {
|
||||
// if the docroots are equal, we still have to set an alias for awstats
|
||||
// because the stats are in /awstats/[domain], not just /awstats/
|
||||
// also, the awstats-icons are someplace else too!
|
||||
// -> webalizer does not need this!
|
||||
$stats_text .= ' Alias /awstats "' . \Froxlor\FileDir::makeCorrectFile($domain['documentroot'] . '/awstats/' . $domain['domain']) . '"' . "\n";
|
||||
$stats_text .= ' Alias /awstats-icon "' . \Froxlor\FileDir::makeCorrectDir(Settings::Get('system.awstats_icons')) . '"' . "\n";
|
||||
}
|
||||
|
||||
@@ -374,16 +374,24 @@ class Lighttpd extends HttpConfigBase
|
||||
}
|
||||
|
||||
public function createVirtualHosts()
|
||||
{}
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public function createFileDirOptions()
|
||||
{}
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
protected function composePhpOptions($domain)
|
||||
{}
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public function createOwnVhostStarter()
|
||||
{}
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
protected function createLighttpdHosts($ipid, $ssl, $vhost_filename)
|
||||
{
|
||||
@@ -441,7 +449,7 @@ class Lighttpd extends HttpConfigBase
|
||||
return $included_vhosts;
|
||||
}
|
||||
|
||||
protected function getVhostContent($domain, $ssl_vhost = false, $ipid)
|
||||
protected function getVhostContent($domain, $ssl_vhost = false, $ipid = 0)
|
||||
{
|
||||
if ($ssl_vhost === true && $domain['ssl'] != '1' && $domain['ssl_redirect'] != '1') {
|
||||
return '';
|
||||
@@ -924,11 +932,11 @@ class Lighttpd extends HttpConfigBase
|
||||
} else {
|
||||
$stats_text .= ' alias.url = ( "/webalizer/" => "' . \Froxlor\FileDir::makeCorrectFile($domain['customerroot'] . '/webalizer/') . '" )' . "\n";
|
||||
}
|
||||
} // if the docroots are equal, we still have to set an alias for awstats
|
||||
// because the stats are in /awstats/[domain], not just /awstats/
|
||||
// also, the awstats-icons are someplace else too!
|
||||
// -> webalizer does not need this!
|
||||
elseif (Settings::Get('system.awstats_enabled') == '1') {
|
||||
} elseif (Settings::Get('system.awstats_enabled') == '1') {
|
||||
// if the docroots are equal, we still have to set an alias for awstats
|
||||
// because the stats are in /awstats/[domain], not just /awstats/
|
||||
// also, the awstats-icons are someplace else too!
|
||||
// -> webalizer does not need this!
|
||||
$stats_text .= ' alias.url = ( "/awstats/" => "' . \Froxlor\FileDir::makeCorrectFile($domain['documentroot'] . '/awstats/' . $domain['domain']) . '" )' . "\n";
|
||||
$stats_text .= ' alias.url += ( "/awstats-icon" => "' . \Froxlor\FileDir::makeCorrectDir(Settings::Get('system.awstats_icons')) . '" )' . "\n";
|
||||
}
|
||||
|
||||
@@ -74,8 +74,7 @@ class MasterCron extends \Froxlor\Cron\FroxlorCron
|
||||
define('CRON_DEBUG_FLAG', 1);
|
||||
} elseif (strtolower($argv[$x]) == '--no-fork') {
|
||||
define('CRON_NOFORK_FLAG', 1);
|
||||
}
|
||||
elseif (substr(strtolower($argv[$x]), 0, 2) == '--') {
|
||||
} elseif (substr(strtolower($argv[$x]), 0, 2) == '--') {
|
||||
// --[cronname]
|
||||
if (strlen($argv[$x]) > 3) {
|
||||
$cronname = substr(strtolower($argv[$x]), 2);
|
||||
@@ -157,4 +156,4 @@ class MasterCron extends \Froxlor\Cron\FroxlorCron
|
||||
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(CRON_ACTION, LOG_ERROR, "Requested cronjob '" . $cronname . "' could not be found.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user