migrated the themes to use the nice Settings-class

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2013-12-16 10:25:25 +01:00
parent 14311eb8b0
commit cd3554eecf
30 changed files with 59 additions and 416 deletions

View File

@@ -1,357 +0,0 @@
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger = $logger;
jobs/cron_tasks.inc.dns.10.bind.php: $this->debugHandler = $debugHandler;
jobs/cron_tasks.inc.dns.10.bind.php: $this->nameservers[] = array(
jobs/cron_tasks.inc.dns.10.bind.php: $this->mxservers[] = $mxserver;
jobs/cron_tasks.inc.dns.10.bind.php: $this->axfrservers[] = trim($axfrserver);
jobs/cron_tasks.inc.dns.10.bind.php: fwrite($this->debugHandler, ' cron_tasks: Task4 started - Rebuilding froxlor_bind.conf' . "\n");
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Task4 started - Rebuilding froxlor_bind.conf');
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.bindconf_directory') . '/domains/')));
jobs/cron_tasks.inc.dns.10.bind.php: fwrite($this->debugHandler, ' cron_tasks: Task4 - Writing ' . $domain['id'] . '::' . $domain['domain'] . "\n");
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Writing ' . $domain['id'] . '::' . $domain['domain']);
jobs/cron_tasks.inc.dns.10.bind.php: $zonefile = $this->generateZone($domain);
jobs/cron_tasks.inc.dns.10.bind.php: fwrite($this->debugHandler, ' cron_tasks: Task4 - `' . $zonefile_name . '` zone written' . "\n");
jobs/cron_tasks.inc.dns.10.bind.php: if (count($this->nameservers) > 0
jobs/cron_tasks.inc.dns.10.bind.php: || count($this->axfrservers) > 0
jobs/cron_tasks.inc.dns.10.bind.php: if (count($this->nameservers) > 0) {
jobs/cron_tasks.inc.dns.10.bind.php: foreach ($this->nameservers as $ns) {
jobs/cron_tasks.inc.dns.10.bind.php: if (count($this->axfrservers) > 0) {
jobs/cron_tasks.inc.dns.10.bind.php: foreach ($this->axfrservers as $axfrserver) {
jobs/cron_tasks.inc.dns.10.bind.php: fwrite($this->debugHandler, ' cron_tasks: Task4 - froxlor_bind.conf written' . "\n");
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'froxlor_bind.conf written');
jobs/cron_tasks.inc.dns.10.bind.php: fwrite($this->debugHandler, ' cron_tasks: Task4 - Bind9 reloaded' . "\n");
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Bind9 reloaded');
jobs/cron_tasks.inc.dns.10.bind.php: fwrite($this->debugHandler, ' cron_tasks: Task4 - unlinking ' . $domain_filename . "\n");
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger->logAction(CRON_ACTION, LOG_WARNING, 'Deleting ' . $domain_filename);
jobs/cron_tasks.inc.dns.10.bind.php: if (count($this->nameservers) == 0) {
jobs/cron_tasks.inc.dns.10.bind.php: $zonefile.= '@ IN SOA ' . $this->nameservers[0]['hostname'] . ' ' . str_replace('@', '.', Settings::Get('panel.adminmail')) . '. (' . "\n";
jobs/cron_tasks.inc.dns.10.bind.php: if (count($this->nameservers) == 0) {
jobs/cron_tasks.inc.dns.10.bind.php: foreach ($this->nameservers as $nameserver) {
jobs/cron_tasks.inc.dns.10.bind.php: if (count($this->mxservers) == 0) {
jobs/cron_tasks.inc.dns.10.bind.php: foreach ($this->mxservers as $mxserver) {
jobs/cron_tasks.inc.dns.10.bind.php: $zonefile.= $this->generateDkim($domain);
jobs/cron_tasks.inc.dns.10.bind.php: if (count($this->nameservers) == 0) {
jobs/cron_tasks.inc.dns.10.bind.php: foreach ($this->nameservers as $nameserver) {
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir -p ' . escapeshellarg(makeCorrectDir(Settings::Get('dkim.dkim_prefix'))));
jobs/cron_tasks.inc.dns.10.bind.php: fwrite($this->debugHandler, ' cron_tasks: Task4 - Dkim-milter reloaded' . "\n");
jobs/cron_tasks.inc.dns.10.bind.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Dkim-milter reloaded');
jobs/cron_tasks.inc.http.10.apache.php: $this->logger = $logger;
jobs/cron_tasks.inc.http.10.apache.php: $this->debugHandler = $debugHandler;
jobs/cron_tasks.inc.http.10.apache.php: $this->idnaConvert = $idnaConvert;
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::reload: reloading php-fpm' . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading php-fpm');
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::reload: reloading apache' . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading apache');
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::_createStandardDirectoryEntry: unlinking ' . basename($vhosts_filename) . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . basename($vhosts_filename));
jobs/cron_tasks.inc.http.10.apache.php: if (!isset($this->virtualhosts_data[$vhosts_filename])) {
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] = '';
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' <Directory "' . makeCorrectDir(Settings::Get('system.documentroot_prefix')) . '">' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' Require all granted' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' Order allow,deny' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' allow from all' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' </Directory>' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: if (!isset($this->virtualhosts_data[$vhosts_filename])) {
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] = '';
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= 'ErrorDocument ' . $statusCode . ' ' . $defhandler . "\n";
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::createIpPort: creating ip/port settings for ' . $ipport . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating ip/port settings for ' . $ipport);
jobs/cron_tasks.inc.http.10.apache.php: if (!isset($this->virtualhosts_data[$vhosts_filename])) {
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] = '';
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= 'Listen ' . $ipport . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted listen-statement');
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_NOTICE, $ipport . ' :: namevirtualhost-statement no longer needed for apache-2.4');
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= 'NameVirtualHost ' . $ipport . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted namevirtualhost-statement');
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= '<VirtualHost ' . $ipport . '>' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= 'DocumentRoot "'.$mypath.'"'."\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' ServerName ' . Settings::Get('system.hostname') . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' FcgidIdleTimeout ' . Settings::Get('system.mod_fcgid_idle_timeout') . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SuexecUserGroup "' . Settings::Get('system.mod_fcgid_httpuser') . '" "' . Settings::Get('system.mod_fcgid_httpgroup') . '"' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' ScriptAlias /php/ ' . $configdir . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SuexecUserGroup "' . Settings::Get('system.mod_fcgid_httpuser') . '" "' . Settings::Get('system.mod_fcgid_httpgroup') . '"' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' <Directory "' . $mypath . '">' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' <FilesMatch "\.(' . implode('|', $file_extensions) . ')$">' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' SetHandler fcgid-script' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' FcgidWrapper ' . $starter_filename . ' .' . $file_extension . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' Options +ExecCGI' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' </FilesMatch>' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' Require all granted' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' Order allow,deny' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' allow from all' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' </Directory>' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' FastCgiExternalServer ' . $php->getInterface()->getAliasConfigDir() . $srvName .' -socket ' . $php->getInterface()->getSocketFile() . ' -idle-timeout ' . Settings::Get('phpfpm.idle_timeout') . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' <Directory "' . $mypath . '">' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' <FilesMatch "\.(' . implode('|', $file_extensions) . ')$">' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' AddHandler php5-fastcgi .php'. "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' Action php5-fastcgi /fastcgiphp' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' Options +ExecCGI' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= ' </FilesMatch>' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' Require all granted' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' Order allow,deny' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' allow from all' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' </Directory>' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' Alias /fastcgiphp ' . $php->getInterface()->getAliasConfigDir() . $srvName . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= "\t<Directory \"'.$mypath.'(images|packages|templates)\">\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= "\t\tAllow from all\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= "\t\tOptions -Indexes\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= "\t</Directory>\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= "\t<Directory \"'.$mypath.'*\">\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= "\t\tOrder Deny,Allow\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= "\t\tDeny from All\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= "\t</Directory>\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= $row_ipsandports['specialsettings'] . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SSLEngine On' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SSLHonorCipherOrder On' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SSLCipherSuite ' . Settings::Get('system.ssl_cipher_list') . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SSLVerifyDepth 10' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SSLCertificateFile ' . makeCorrectFile($row_ipsandports['ssl_cert_file']) . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SSLCertificateKeyFile ' . makeCorrectFile($row_ipsandports['ssl_key_file']) . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SSLCACertificateFile ' . makeCorrectFile($row_ipsandports['ssl_ca_file']) . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= ' SSLCertificateChainFile ' . makeCorrectFile($row_ipsandports['ssl_cert_chainfile']) . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= '</VirtualHost>' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted vhostcontainer');
jobs/cron_tasks.inc.http.10.apache.php: $this->_createStandardDirectoryEntry();
jobs/cron_tasks.inc.http.10.apache.php: $this->_createStandardErrorHandler();
jobs/cron_tasks.inc.http.10.apache.php: $this->_deactivated = true;
jobs/cron_tasks.inc.http.10.apache.php: $this->_deactivated = false;
jobs/cron_tasks.inc.http.10.apache.php: $vhost_content.= $this->getServerNames($domain);
jobs/cron_tasks.inc.http.10.apache.php: $corrected_docroot = $this->idnaConvert->encode($domain['documentroot']);
jobs/cron_tasks.inc.http.10.apache.php: $vhost_content .= ' Redirect '.$code.' / ' . $this->idnaConvert->encode($domain['documentroot']) . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $vhost_content .= $this->getWebroot($domain);
jobs/cron_tasks.inc.http.10.apache.php: if ($this->_deactivated == false) {
jobs/cron_tasks.inc.http.10.apache.php: $vhost_content .= $this->composePhpOptions($domain,$ssl_vhost);
jobs/cron_tasks.inc.http.10.apache.php: $vhost_content .= $this->getStats($domain);
jobs/cron_tasks.inc.http.10.apache.php: $vhost_content .= $this->getLogfiles($domain);
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::createVirtualHosts: creating vhost container for domain ' . $domain['id'] . ', customer ' . $domain['loginname'] . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating vhost container for domain ' . $domain['id'] . ', customer ' . $domain['loginname']);
jobs/cron_tasks.inc.http.10.apache.php: $vhosts_filename = $this->getVhostFilename($domain);
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] = '# Domain ID: ' . $domain['id'] . ' - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename].= $this->getVhostContent($domain, false);
jobs/cron_tasks.inc.http.10.apache.php: $vhosts_filename_ssl = $this->getVhostFilename($domain, true);
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename_ssl] = '# Domain ID: ' . $domain['id'] . ' (SSL) - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename_ssl] .= $this->getVhostContent($domain, true);
jobs/cron_tasks.inc.http.10.apache.php: $this->virtualhosts_data[$vhosts_filename] .= '# Customer deactivated and a docroot for deactivated users hasn\'t been set.' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: if (!isset($this->diroptions_data[$diroptions_filename])) {
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] = '';
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= '<Directory "' . $row_diroptions['path'] . '">' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' Options +Indexes';
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' ExecCGI -MultiViews +SymLinksIfOwnerMatch +FollowSymLinks'."\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= "\n";
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' cron_tasks: Task3 - Setting Options +Indexes' . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' Options -Indexes';
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' ExecCGI -MultiViews +SymLinksIfOwnerMatch +FollowSymLinks'."\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= "\n";
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' cron_tasks: Task3 - Setting Options -Indexes' . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename].= ' ErrorDocument ' . $statusCode . ' ' . $defhandler . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' AllowOverride None' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' AddHandler cgi-script .cgi .pl' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' Require all granted' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' Order allow,deny' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' Allow from all' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' cron_tasks: Task3 - Enabling perl execution' . "\n");
jobs/cron_tasks.inc.http.10.apache.php: if (!isset($this->htpasswds_data[$htpasswd_filename])) {
jobs/cron_tasks.inc.http.10.apache.php: $this->htpasswds_data[$htpasswd_filename] = '';
jobs/cron_tasks.inc.http.10.apache.php: $this->htpasswds_data[$htpasswd_filename] .= $row_htpasswd['username'] . ':' . $row_htpasswd['password'] . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' AuthType Basic' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' AuthName "'.$row_htpasswd['authname'].'"' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' AuthUserFile ' . $htpasswd_filename . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= ' require valid-user' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: $this->diroptions_data[$diroptions_filename] .= '</Directory>' . "\n";
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . Settings::Get('system.apacheconf_diroptions') . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . Settings::Get('system.apacheconf_diroptions'));
jobs/cron_tasks.inc.http.10.apache.php: if (count($this->diroptions_data) > 0) {
jobs/cron_tasks.inc.http.10.apache.php: foreach ($this->diroptions_data as $diroptions_filename => $diroptions_content) {
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.apacheconf_diroptions'))) . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.apacheconf_diroptions'))));
jobs/cron_tasks.inc.http.10.apache.php: foreach ($this->diroptions_data as $diroptions_filename => $diroptions_file) {
jobs/cron_tasks.inc.http.10.apache.php: $this->known_diroptionsfilenames[] = basename($diroptions_filename);
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . Settings::Get('system.apacheconf_htpasswddir') . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . Settings::Get('system.apacheconf_htpasswddir'));
jobs/cron_tasks.inc.http.10.apache.php: if (count($this->htpasswds_data) > 0) {
jobs/cron_tasks.inc.http.10.apache.php: foreach ($this->htpasswds_data as $htpasswd_filename => $htpasswd_file) {
jobs/cron_tasks.inc.http.10.apache.php: $this->known_htpasswdsfilenames[] = basename($htpasswd_filename);
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' cron_tasks: WARNING!!! ' . Settings::Get('system.apacheconf_htpasswddir') . ' is not a directory. htpasswd directory protection is disabled!!!' . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_WARNING, 'WARNING!!! ' . Settings::Get('system.apacheconf_htpasswddir') . ' is not a directory. htpasswd directory protection is disabled!!!');
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . Settings::Get('system.apacheconf_vhost') . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . Settings::Get('system.apacheconf_vhost'));
jobs/cron_tasks.inc.http.10.apache.php: if (count($this->virtualhosts_data) > 0) {
jobs/cron_tasks.inc.http.10.apache.php: ksort($this->virtualhosts_data);
jobs/cron_tasks.inc.http.10.apache.php: foreach ($this->virtualhosts_data as $vhosts_filename => $vhost_content) {
jobs/cron_tasks.inc.http.10.apache.php: fwrite($this->debugHandler, ' apache::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.apacheconf_vhost'))) . "\n");
jobs/cron_tasks.inc.http.10.apache.php: $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.apacheconf_vhost'))));
jobs/cron_tasks.inc.http.10.apache.php: foreach ($this->virtualhosts_data as $vhosts_filename => $vhosts_file) {
jobs/cron_tasks.inc.http.10.apache.php: $this->known_vhostfilenames[] = basename($vhosts_filename);
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->logger = $logger;
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->debugHandler = $debugHandler;
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->idnaConvert = $idnaConvert;
jobs/cron_tasks.inc.http.20.lighttpd.php: fwrite($this->debugHandler, ' lighttpd::reload: reloading php-fpm' . "\n");
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading php-fpm');
jobs/cron_tasks.inc.http.20.lighttpd.php: fwrite($this->debugHandler, ' lighttpd::reload: reloading lighttpd' . "\n");
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading lighttpd');
jobs/cron_tasks.inc.http.20.lighttpd.php: fwrite($this->debugHandler, ' lighttpd::createIpPort: creating ip/port settings for ' . $ip . ":" . $port . "\n");
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating ip/port settings for ' . $ip . ":" . $port);
jobs/cron_tasks.inc.http.20.lighttpd.php: if (!isset($this->lighttpd_data[$vhost_filename])) {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename] = '';
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= '$SERVER["socket"] == "' . $ip . ':' . $port . '" {' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= 'server.port = ' . $port . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= 'server.bind = "' . $ip . '"' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= $ipv6;
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= '# Froxlor default vhost' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= '$HTTP["host"] =~ "^(?:www\.|)' . $myhost . '$" {' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= ' server.document-root = "'.$mypath.'"'."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= ' $HTTP["url"] =~ "^/(.+)\/(.+)\.php" {' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= ' url.access-deny = ("")' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= ' }' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= ' fastcgi.server = ( '."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= "\t".'".php" => ('."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= "\t\t".'"localhost" => ('."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= "\t\t".'"socket" => "'.$php->getInterface()->getSocketFile().'",'."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= "\t\t".'"check-local" => "enable",'."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= "\t\t".'"disable-time" => 1'."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= "\t".')'."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= "\t".')'."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= ' )'."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= $row_ipsandports['specialsettings'] . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= '}' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= 'ssl.engine = "enable"' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= 'ssl.use-sslv2 = "disable"' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= 'ssl.cipher-list = "' . Settings::Get('system.ssl_cipher_list') . '"' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= 'ssl.honor-cipher-order = "enable"' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= 'ssl.pemfile = "' . makeCorrectFile($row_ipsandports['ssl_cert_file']) . '"' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= 'ssl.ca-file = "' . makeCorrectFile($row_ipsandports['ssl_ca_file']) . '"' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhosts = $this->createLighttpdHosts($row_ipsandports['id'], $row_ipsandports['ssl'], $vhost_filename);
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= ' include "'.$vhost.'"'."\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename].= '}' . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->_createStandardErrorHandler();
jobs/cron_tasks.inc.http.20.lighttpd.php: if (!isset($this->lighttpd_data[$vhost_filename])) {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename] = '';
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename] = 'server.error-handler-404 = "'.$defhandler.'"';
jobs/cron_tasks.inc.http.20.lighttpd.php: if (!isset($this->needed_htpasswds[$filename])) {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->needed_htpasswds[$filename] = '';
jobs/cron_tasks.inc.http.20.lighttpd.php: if (!strstr($this->needed_htpasswds[$filename], $row_htpasswds['username'] . ':' . $row_htpasswds['password'])) {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->needed_htpasswds[$filename].= $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: if (!isset($this->lighttpd_data[$vhost_filename])) {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename] = '';
jobs/cron_tasks.inc.http.20.lighttpd.php: if ((!empty($this->lighttpd_data[$vhost_filename])
jobs/cron_tasks.inc.http.20.lighttpd.php: if ($this->lighttpd_data[$vhost_filename] == '') {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->lighttpd_data[$vhost_filename] .= $this->getVhostContent($domain, $ssl_vhost, $ipid);
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= $this->getServerNames($domain) . " {\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= ' "^/(.*)$" => "'. $this->idnaConvert->encode($domain['documentroot']) . '$1"'. "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= $this->getWebroot($domain, $ssl_vhost);
jobs/cron_tasks.inc.http.20.lighttpd.php: if ($this->_deactivated == false) {
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= $this->create_htaccess($domain);
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= $this->create_pathOptions($domain);
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= $this->composePhpOptions($domain);
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= $this->getStats($domain);
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= $this->getSslSettings($domain, $ssl_vhost);
jobs/cron_tasks.inc.http.20.lighttpd.php: $vhost_content.= $this->getLogFiles($domain);
jobs/cron_tasks.inc.http.20.lighttpd.php: if ($this->auth_backend_loaded[$domain['ipandport']] != 'yes') {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->needed_htpasswds[$filename] = $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: } elseif ($this->auth_backend_loaded[$domain['ssl_ipandport']] != 'yes') {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->needed_htpasswds[$filename] = $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n";
jobs/cron_tasks.inc.http.20.lighttpd.php: if ($this->auth_backend_loaded[$domain['ssl_ipandport']] == 'yes') {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->needed_htpasswds[$domain['ssl_ipandport']].= $diroption_text;
jobs/cron_tasks.inc.http.20.lighttpd.php: if ($this->auth_backend_loaded[$domain['ipandport']] != 'yes') {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->needed_htpasswds[$domain['ipandport']].= $diroption_text;
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->_deactivated = true;
jobs/cron_tasks.inc.http.20.lighttpd.php: $redirect_domain = $this->idnaConvert->encode('https://' . $domain['domain']);
jobs/cron_tasks.inc.http.20.lighttpd.php: $redirect_domain = $this->idnaConvert->encode($domain['documentroot']);
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->_deactivated = false;
jobs/cron_tasks.inc.http.20.lighttpd.php: fwrite($this->debugHandler, ' lighttpd::writeConfigs: rebuilding ' . Settings::Get('system.apacheconf_vhost') . "\n");
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . Settings::Get('system.apacheconf_vhost'));
jobs/cron_tasks.inc.http.20.lighttpd.php: ksort($this->lighttpd_data);
jobs/cron_tasks.inc.http.20.lighttpd.php: foreach ($this->lighttpd_data as $vhosts_filename => $vhost_content) {
jobs/cron_tasks.inc.http.20.lighttpd.php: fwrite($this->debugHandler, ' lighttpd::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.apacheconf_vhost'))) . "\n");
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.apacheconf_vhost'))));
jobs/cron_tasks.inc.http.20.lighttpd.php: foreach ($this->lighttpd_data as $vhosts_filename => $vhosts_file) {
jobs/cron_tasks.inc.http.20.lighttpd.php: $this->known_filenames[] = basename($vhosts_filename);
jobs/cron_tasks.inc.http.20.lighttpd.php: foreach ($this->needed_htpasswds as $key => $data) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->logger = $logger;
jobs/cron_tasks.inc.http.30.nginx.php: $this->debugHandler = $debugHandler;
jobs/cron_tasks.inc.http.30.nginx.php: $this->idnaConvert = $idnaConvert;
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_server = $nginx_server;
jobs/cron_tasks.inc.http.30.nginx.php: fwrite($this->debugHandler, ' nginx::reload: reloading nginx' . "\n");
jobs/cron_tasks.inc.http.30.nginx.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading nginx');
jobs/cron_tasks.inc.http.30.nginx.php: fwrite($this->debugHandler, ' nginx::reload: restarting php processes' . "\n");
jobs/cron_tasks.inc.http.30.nginx.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'restarting php processes');
jobs/cron_tasks.inc.http.30.nginx.php: fwrite($this->debugHandler, ' nginx::reload: reloading php-fpm' . "\n");
jobs/cron_tasks.inc.http.30.nginx.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading php-fpm');
jobs/cron_tasks.inc.http.30.nginx.php: if (!isset($this->nginx_data[$vhosts_filename])) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhosts_filename] = '';
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhosts_filename].= 'error_page ' . $statusCode . ' ' . $defhandler . ';' . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: fwrite($this->debugHandler, ' nginx::createIpPort: creating ip/port settings for ' . $ip . ":" . $port . "\n");
jobs/cron_tasks.inc.http.30.nginx.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating ip/port settings for ' . $ip . ":" . $port);
jobs/cron_tasks.inc.http.30.nginx.php: if (!isset($this->nginx_data[$vhost_filename])) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] = '';
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= 'server { ' . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t". 'listen ' . $ip . ':' . $port . ' default'. ($ssl_vhost == true ? ' ssl' : '') . ';' . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t".'# Froxlor default vhost' . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t".'server_name ' . Settings::Get('system.hostname') . ';' . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t".'access_log /var/log/nginx/access.log;' . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t".'root '.$mypath.';'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t".'location / {'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".'index index.php index.html index.htm;'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t".'}'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename].= $row_ipsandports['specialsettings'] . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename].=$this->composeSslSettings($row_ipsandports);
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t".'location ~ \.php$ {'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".' if (!-f $request_filename) {'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t\t".'return 404;'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".'}'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".'fastcgi_index index.php;'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".'include '.Settings::Get('nginx.fastcgiparams').';'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".'fastcgi_param HTTPS on;'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".'fastcgi_pass unix:' . $php->getInterface()->getSocketFile() . ';' . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t\t".'fastcgi_pass ' . Settings::Get('system.nginx_php_backend') . ';' . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= "\t".'}'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] .= '}' . "\n\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->createNginxHosts();
jobs/cron_tasks.inc.http.30.nginx.php: $this->_createStandardErrorHandler();
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_filename = $this->getVhostFilename($domain);
jobs/cron_tasks.inc.http.30.nginx.php: if (!isset($this->nginx_data[$vhost_filename])) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename] = '';
jobs/cron_tasks.inc.http.30.nginx.php: if ((!empty($this->nginx_data[$vhost_filename])
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename].= $this->getVhostContent($domain, false);
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_filename_ssl = $this->getVhostFilename($domain, true);
jobs/cron_tasks.inc.http.30.nginx.php: if (!isset($this->nginx_data[$vhost_filename_ssl])) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename_ssl] = '';
jobs/cron_tasks.inc.http.30.nginx.php: $this->nginx_data[$vhost_filename_ssl] .= $this->getVhostContent($domain, true);
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_content .= $this->getServerNames($domain);
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_content .= "\t".'rewrite ^(.*) '.$this->idnaConvert->encode($domain['documentroot']).'$1 permanent;'."\n";
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_content .= $this->getLogFiles($domain);
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_content .= $this->getWebroot($domain, $ssl_vhost);
jobs/cron_tasks.inc.http.30.nginx.php: if ($this->_deactivated == false) {
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_content.= $this->composeSslSettings($domain);
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_content.= $this->create_pathOptions($domain);
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_content.= $this->composePhpOptions($domain, $ssl_vhost);
jobs/cron_tasks.inc.http.30.nginx.php: $vhost_content.= isset($this->needed_htpasswds[$domain['id']]) ? $this->needed_htpasswds[$domain['id']] . "\n" : '';
jobs/cron_tasks.inc.http.30.nginx.php: return $this->mergeVhostBlocks($vhost_content);
jobs/cron_tasks.inc.http.30.nginx.php: $htpasswds = $this->getHtpasswds($domain);
jobs/cron_tasks.inc.http.30.nginx.php: $this->vhost_root_autoindex = true;
jobs/cron_tasks.inc.http.30.nginx.php: if ($this->vhost_root_autoindex) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->vhost_root_autoindex = false;
jobs/cron_tasks.inc.http.30.nginx.php: $this->vhost_root_autoindex = false;
jobs/cron_tasks.inc.http.30.nginx.php: if ($this->vhost_root_autoindex) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->vhost_root_autoindex = false;
jobs/cron_tasks.inc.http.30.nginx.php: $path_options .= $this->getStats($domain,$single);
jobs/cron_tasks.inc.http.30.nginx.php: if (!isset($this->htpasswds_data[$htpasswd_filename])) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->htpasswds_data[$htpasswd_filename] = '';
jobs/cron_tasks.inc.http.30.nginx.php: $this->htpasswds_data[$htpasswd_filename].= $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n";
jobs/cron_tasks.inc.http.30.nginx.php: $this->_deactivated = true;
jobs/cron_tasks.inc.http.30.nginx.php: $this->_deactivated = false;
jobs/cron_tasks.inc.http.30.nginx.php: if ($this->vhost_root_autoindex) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->vhost_root_autoindex = false;
jobs/cron_tasks.inc.http.30.nginx.php: fwrite($this->debugHandler, ' nginx::writeConfigs: rebuilding ' . Settings::Get('system.apacheconf_vhost') . "\n");
jobs/cron_tasks.inc.http.30.nginx.php: $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . Settings::Get('system.apacheconf_vhost'));
jobs/cron_tasks.inc.http.30.nginx.php: ksort($this->nginx_data);
jobs/cron_tasks.inc.http.30.nginx.php: foreach ($this->nginx_data as $vhosts_filename => $vhost_content) {
jobs/cron_tasks.inc.http.30.nginx.php: fwrite($this->debugHandler, ' nginx::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.apacheconf_vhost'))) . "\n");
jobs/cron_tasks.inc.http.30.nginx.php: $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir(Settings::Get('system.apacheconf_vhost'))));
jobs/cron_tasks.inc.http.30.nginx.php: foreach ($this->nginx_data as $vhosts_filename => $vhosts_file) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->known_filenames[] = basename($vhosts_filename);
jobs/cron_tasks.inc.http.30.nginx.php: if (count($this->htpasswds_data) > 0) {
jobs/cron_tasks.inc.http.30.nginx.php: fwrite($this->debugHandler, ' cron_tasks: WARNING!!! ' . Settings::Get('system.apacheconf_htpasswddir') . ' is not a directory. htpasswd directory protection is disabled!!!' . "\n");
jobs/cron_tasks.inc.http.30.nginx.php: $this->logger->logAction(CRON_ACTION, LOG_WARNING, 'WARNING!!! ' . Settings::Get('system.apacheconf_htpasswddir') . ' is not a directory. htpasswd directory protection is disabled!!!');
jobs/cron_tasks.inc.http.30.nginx.php: foreach ($this->htpasswds_data as $htpasswd_filename => $htpasswd_file) {
jobs/cron_tasks.inc.http.30.nginx.php: $this->known_htpasswdsfilenames[] = basename($htpasswd_filename);

View File

@@ -14,7 +14,7 @@
Webspace:&nbsp;
<if $row['diskspace'] != 'UL'>
<span class="progressBar" title="{$row['diskspace_used']} / {$row['diskspace']} MB">
<if (($row['diskspace']/100)*(int)$settings['system']['report_webmax']) < $row['diskspace_used']>
<if (($row['diskspace']/100)*(int)Settings::Get('system.report_webmax')) < $row['diskspace_used']>
<span class="redbar">
<else>
<span>
@@ -31,7 +31,7 @@
Traffic:&nbsp;
<if $row['traffic'] != 'UL'>
<span class="progressBar" title="{$row['traffic_used']} / {$row['traffic']} GB">
<if (($row['traffic']/100)*(int)$settings['system']['report_trafficmax']) < $row['traffic_used']>
<if (($row['traffic']/100)*(int)Settings::Get('system.report_trafficmax')) < $row['traffic_used']>
<span class="redbar">
<else>
<span>

View File

@@ -14,7 +14,7 @@
Webspace:&nbsp;
<if $row['diskspace'] != 'UL'>
<span class="progressBar" title="{$row['diskspace_used']} / {$row['diskspace']} MB">
<if (($row['diskspace']/100)*(int)$settings['system']['report_webmax']) < $row['diskspace_used']>
<if (($row['diskspace']/100)*(int)Settings::Get('system.report_webmax')) < $row['diskspace_used']>
<span class="redbar">
<else>
<span>
@@ -31,7 +31,7 @@
Traffic:&nbsp;
<if $row['traffic'] != 'UL'>
<span class="progressBar" title="{$row['traffic_used']} / {$row['traffic']} GB">
<if (($row['traffic']/100)*(int)$settings['system']['report_trafficmax']) < $row['traffic_used']>
<if (($row['traffic']/100)*(int)Settings::Get('system.report_trafficmax')) < $row['traffic_used']>
<span class="redbar">
<else>
<span>

View File

@@ -1,7 +1,7 @@
$header
<article>
<if 0 < $awaitingtickets && $settings['ticket']['enabled'] == 1 >
<if 0 < $awaitingtickets && Settings::Get('ticket.enabled') == 1 >
<div class="messagewrapperfull">
<div class="warningcontainer bradius">
<div class="warningtitle">{$lng['admin']['warning']}</div>
@@ -51,7 +51,7 @@ $header
<td>{$lng['customer']['forwarders']} ({$lng['admin']['used']} ({$lng['admin']['assignedmax']})):</td>
<td>{$overview['email_forwarders_used']} ({$userinfo['email_forwarders_used']}/{$userinfo['email_forwarders']})</td>
</tr>
<if $settings['system']['mail_quota_enabled'] == 1>
<if Settings::Get('system.mail_quota_enabled') == 1>
<tr>
<td>{$lng['customer']['email_quota']} ({$lng['admin']['used']} ({$lng['admin']['assignedmax']})):</td>
<td>{$overview['email_quota_used']} ({$userinfo['email_quota_used']}/{$userinfo['email_quota']})</td>
@@ -61,7 +61,7 @@ $header
<td>{$lng['customer']['ftps']} ({$lng['admin']['used']} ({$lng['admin']['assignedmax']})):</td>
<td>{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})</td>
</tr>
<if $settings['ticket']['enabled'] == 1>
<if Settings::Get('ticket.enabled') == 1>
<tr>
<td>{$lng['customer']['tickets']} ({$lng['admin']['used']} ({$lng['admin']['assignedmax']})):</td>
<td>{$overview['tickets_used']} ({$userinfo['tickets_used']}/{$userinfo['tickets']})</td>

View File

@@ -7,7 +7,7 @@ $header
</h2>
</header>
<if $settings['phpfpm']['enabled'] == 1 >
<if Settings::Get('phpfpm.enabled') == 1 >
<div class="messagewrapperfull">
<div class="warningcontainer bradius">
<div class="warningtitle">{$lng['admin']['note']}</div>

View File

@@ -41,7 +41,7 @@
<td>{$lng['customer']['forwarders']}:</td>
<td><span <if $admin['email_forwarders_used'] == $admin['email_forwarders_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_forwarders_used']} -&gt; {$admin['email_forwarders_used_new']}</b></span></td>
</tr>
<if $settings['system']['mail_quota_enabled'] == 1>
<if Settings::Get('system.mail_quota_enabled') == 1>
<tr>
<td>{$lng['customer']['email_quota']}:</td>
<td><span <if $admin['email_quota_used'] == $admin['email_quota_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_quota_used']} -&gt; {$admin['email_quota_used_new']}</b></span></td>
@@ -51,7 +51,7 @@
<td>{$lng['customer']['ftps']}:</td>
<td><span <if $admin['ftps_used'] == $admin['ftps_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['ftps_used']} -&gt; {$admin['ftps_used_new']}</b></span></td>
</tr>
<if $settings['ticket']['enabled'] == '1'>
<if Settings::Get('ticket.enabled') == '1'>
<tr>
<td>{$lng['customer']['tickets']}:</td>
<td><span <if $admin['tickets_used'] == $admin['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['tickets_used']} -&gt; {$admin['tickets_used_new']}</b></span></td>

View File

@@ -25,7 +25,7 @@
<td>{$lng['customer']['forwarders']}:</td>
<td><span <if $customer['email_forwarders_used'] == $customer['email_forwarders_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_forwarders_used']} -&gt; {$customer['email_forwarders_used_new']}</b></span></td>
</tr>
<if $settings['system']['mail_quota_enabled'] == 1>
<if Settings::Get('system.mail_quota_enabled') == 1>
<tr>
<td>{$lng['customer']['email_quota']}:</td>
<td><span <if $customer['email_quota_used'] == $customer['email_quota_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_quota_used']} -&gt; {$customer['email_quota_used_new']}</b></span></td>
@@ -35,7 +35,7 @@
<td>{$lng['customer']['ftps']}:</td>
<td><span <if $customer['ftps_used'] == $customer['ftps_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['ftps_used']} -&gt; {$customer['ftps_used_new']}</b></span></td>
</tr>
<if $settings['ticket']['enabled'] == '1'>
<if Settings::Get('ticket.enabled') == '1'>
<tr>
<td>{$lng['customer']['tickets']}:</td>
<td><span <if $customer['tickets_used'] == $customer['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['tickets_used']} -&gt; {$customer['tickets_used_new']}</b></span></td>

View File

@@ -102,7 +102,7 @@ $header
<td><em>{EMAIL}</em></td>
<td>{$lng['admin']['templates']['EMAIL']}</td>
</tr>
<if $settings['panel']['sendalternativemail'] == 1>
<if Settings::Get('panel.sendalternativemail') == 1>
<tr>
<td colspan="2">
<strong>{$lng['admin']['templates']['pop_success_alternative']}</strong>

View File

@@ -103,7 +103,7 @@ $header
<td><em>{EMAIL}</em></td>
<td>{$lng['admin']['templates']['EMAIL']}</td>
</tr>
<if $settings['panel']['sendalternativemail'] == 1>
<if Settings::Get('panel.sendalternativemail') == 1>
<tr>
<td colspan="2">
<strong>{$lng['admin']['templates']['pop_success_alternative']}</strong>

View File

@@ -28,8 +28,8 @@
<th>{$lng['emails']['emailaddress']}&nbsp;{$arrowcode['m.email_full']}</th>
<th>{$lng['emails']['forwarders']}&nbsp;{$arrowcode['m.destination']}</th>
<th>{$lng['emails']['account']}</th>
<if $settings['catchall']['catchall_enabled'] == '1'><th>{$lng['emails']['catchall']}</th></if>
<if $settings['system']['mail_quota_enabled'] == '1'>
<if Settings::Get('catchall.catchall_enabled') == '1'><th>{$lng['emails']['catchall']}</th></if>
<if Settings::Get('system.mail_quota_enabled') == '1'>
<th>{$lng['emails']['quota']}</th>
</if>
<th>{$lng['panel']['options']}</th>

View File

@@ -2,8 +2,8 @@
<td>{$row['email_full']}</td>
<td><if $row['destination'] == ''>&nbsp;<else>{$row['destination']}</if></td>
<td><if $row['popaccountid'] != 0>{$lng['panel']['yes']} ({$row['mboxsize']})</if><if $row['popaccountid'] == 0>{$lng['panel']['no']}</if></td>
<if $settings['catchall']['catchall_enabled'] == '1'><td><if $row['iscatchall'] != 0>{$lng['panel']['yes']}</if><if $row['iscatchall'] == 0>{$lng['panel']['no']}</if></td></if>
<if $settings['system']['mail_quota_enabled'] == '1'><td><if $row['quota'] == 0>{$lng['emails']['noquota']}<else>{$row['quota']} MiB</if></if></td>
<if Settings::Get('catchall.catchall_enabled') == '1'><td><if $row['iscatchall'] != 0>{$lng['panel']['yes']}</if><if $row['iscatchall'] == 0>{$lng['panel']['no']}</if></td></if>
<if Settings::Get('system.mail_quota_enabled') == '1'><td><if $row['quota'] == 0>{$lng['emails']['noquota']}<else>{$row['quota']} MiB</if></if></td>
<td>
<a href="{$linker->getLink(array('section' => 'email', 'page' => $page, 'action' => 'edit', 'id' => $row['id']))}" style="text-decoration:none;">
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" />

View File

@@ -1,7 +1,7 @@
$header
<article>
<if 0 < $awaitingtickets && $settings['ticket']['enabled'] == 1 >
<if 0 < $awaitingtickets && Settings::Get('ticket.enabled') == 1 >
<div class="messagewrapperfull">
<div class="warningcontainer bradius">
<div class="warningtitle">{$lng['admin']['warning']}</div>
@@ -51,7 +51,7 @@ $header
<td>{$lng['customer']['forwarders']} ({$lng['customer']['usedmax']}):</td>
<td>{$userinfo['email_forwarders_used']}/{$userinfo['email_forwarders']}</td>
</tr>
<if $settings['system']['mail_quota_enabled'] == 1>
<if Settings::Get('system.mail_quota_enabled') == 1>
<tr>
<td>{$lng['customer']['email_quota']} ({$lng['panel']['megabyte']}, {$lng['customer']['usedmax']}):</td>
<td>{$userinfo['email_quota_used']}/{$userinfo['email_quota']}</td>
@@ -66,7 +66,7 @@ $header
<td>{$lng['customer']['ftps']} ({$lng['customer']['usedmax']}):</td>
<td>{$userinfo['ftps_used']}/{$userinfo['ftps']}</td>
</tr>
<if $settings['ticket']['enabled'] == 1 >
<if Settings::Get('ticket.enabled') == 1 >
<tr>
<td>{$lng['customer']['tickets']} ({$lng['customer']['usedmax']}):</td>
<td>{$userinfo['tickets_used']}/{$userinfo['tickets']}</td>

View File

@@ -28,7 +28,7 @@ $header
</div>
</if>
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count && ($ticketsopen < Settings::Get('ticket.concurrently_open') || (Settings::Get('ticket.concurrently_open') == '-1' || Settings::Get('ticket.concurrently_open') == '')) >
<div class="overviewadd">
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />&nbsp;
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
@@ -67,7 +67,7 @@ $header
</form>
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < Settings::Get('ticket.concurrently_open') || (Settings::Get('ticket.concurrently_open') == '-1' || Settings::Get('ticket.concurrently_open') == '')) >
<div class="overviewadd">
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />&nbsp;
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>

View File

@@ -1,7 +1,7 @@
</div>
<footer>
<span>Froxlor
<if ($settings['admin']['show_version_login'] == '1' && $filename == 'index.php') || ($filename != 'index.php' && $settings['admin']['show_version_footer'] == '1')>
<if (Settings::Get('admin.show_version_login') == '1' && $filename == 'index.php') || ($filename != 'index.php' && Settings::Get('admin.show_version_footer') == '1')>
{$version}{$branding}
</if>
&copy; 2009-{$current_year} by <a href="http://www.froxlor.org/" rel="external">the Froxlor Team</a>

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="Default-Style" content="text/css" />
<if $settings['panel']['no_robots'] == '0'>
<if Settings::Get('panel.no_robots') == '0'>
<meta name="robots" content="noindex, nofollow, noarchive" />
<meta name="GOOGLEBOT" content="nosnippet" />
</if>
@@ -19,8 +19,8 @@
<link rel="stylesheet" type="text/css" href="css/jquery.jqplot.min.css" />
<script language="javascript" type="text/javascript" src="templates/{$theme}/assets/js/traffic.js"></script>
</if>
<if $settings['panel']['use_webfonts'] == '1'>
<link href="//fonts.googleapis.com/css?family={$settings['panel']['webfont']}" rel="stylesheet">
<if Settings::Get('panel.use_webfonts') == '1'>
<link href="//fonts.googleapis.com/css?family={Settings::Get('panel.webfont')}" rel="stylesheet">
</if>
<link href="templates/{$theme}/assets/css/main.css" rel="stylesheet" type="text/css" />
<!--[if IE]><link rel="stylesheet" href="templates/{$theme}/css/main_ie.css" type="text/css" /><![endif]-->
@@ -30,7 +30,7 @@
<title><if isset($userinfo['loginname']) && $userinfo['loginname'] != ''>{$userinfo['loginname']} - </if>Froxlor Server Management Panel</title>
<style type="text/css">
body {
font-family: <if $settings['panel']['use_webfonts'] == '1'>{$webfont},</if> Verdana, Geneva, sans-serif;
font-family: <if Settings::Get('panel.use_webfonts') == '1'>{$webfont},</if> Verdana, Geneva, sans-serif;
}
</style>
</head>

View File

@@ -48,7 +48,7 @@ $header
</form>
<aside>
<if $settings['panel']['allow_preset'] == '1'>
<if Settings::Get('panel.allow_preset') == '1'>
<a href="$filename?action=forgotpwd">{$lng['login']['forgotpwd']}</a>
<else>
&nbsp;

View File

@@ -18,7 +18,7 @@
<span class="overviewcustomerextras">
<span>Webspace:</span>
<if $row['diskspace'] != 'UL'>
<if (($row['diskspace']/100)*(int)$settings['system']['report_webmax']) < $row['diskspace_used']>
<if (($row['diskspace']/100)*(int)Settings::Get('system.report_webmax')) < $row['diskspace_used']>
<div class="progress progress-danger">
<div class="bar" style="width: {$disk_percent}%"></div>
</div>
@@ -36,7 +36,7 @@
<span class="overviewcustomerextras">
<span>Traffic:</span>
<if $row['traffic'] != 'UL'>
<if (($row['traffic']/100)*(int)$settings['system']['report_trafficmax']) < $row['traffic_used']>
<if (($row['traffic']/100)*(int)Settings::Get('system.report_trafficmax')) < $row['traffic_used']>
<div class="progress progress-danger">
<div class="bar" style="width: {$traffic_percent}%"></div>
</div>

View File

@@ -25,7 +25,7 @@
<span class="overviewcustomerextras">
<span>Webspace:</span>
<if $row['diskspace'] != 'UL'>
<if (($row['diskspace']/100)*(int)$settings['system']['report_webmax']) < $row['diskspace_used']>
<if (($row['diskspace']/100)*(int)Settings::Get('system.report_webmax')) < $row['diskspace_used']>
<div class="progress progress-danger">
<div class="bar" style="width: {$disk_percent}%"></div>
</div>
@@ -43,7 +43,7 @@
<span class="overviewcustomerextras">
<span>Traffic:</span>
<if $row['traffic'] != 'UL'>
<if (($row['traffic']/100)*(int)$settings['system']['report_trafficmax']) < $row['traffic_used']>
<if (($row['traffic']/100)*(int)Settings::Get('system.report_trafficmax')) < $row['traffic_used']>
<div class="progress progress-danger">
<div class="bar" style="width: {$traffic_percent}%"></div>
</div>

View File

@@ -120,7 +120,7 @@ $header
</small>
</div>
<if $settings['system']['mail_quota_enabled'] == 1>
<if Settings::Get('system.mail_quota_enabled') == 1>
<div class="canvasbox">
<input type="hidden" id="email_quota" class="circular" data-used="{$overview['email_quota_used']}" data-available="{$userinfo['email_quota']}" data-assigned="{$userinfo['email_quota_used']}">
<canvas id="email_quota-canvas" width="120" height="76"></canvas><br/>
@@ -148,7 +148,7 @@ $header
</small>
</div>
<if $settings['ticket']['enabled'] == 1>
<if Settings::Get('ticket.enabled') == 1>
<div class="canvasbox">
<input type="hidden" id="tickets" class="circular" data-used="{$overview['tickets_used']}" data-available="{$userinfo['tickets']}" data-assigned="{$userinfo['tickets_used']}">
<canvas id="tickets-canvas" width="120" height="76"></canvas><br/>
@@ -166,7 +166,7 @@ $header
</section>
<if $settings['admin']['show_news_feed'] == '1'>
<if Settings::Get('admin.show_news_feed') == '1'>
<section class="dboarditem bradius" id="newsfeed" style="display: none">
<table>
<tr>

View File

@@ -41,7 +41,7 @@
<td>{$lng['customer']['forwarders']}:</td>
<td><span <if $admin['email_forwarders_used'] == $admin['email_forwarders_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_forwarders_used']} -&gt; {$admin['email_forwarders_used_new']}</b></span></td>
</tr>
<if $settings['system']['mail_quota_enabled'] == 1>
<if Settings::Get('system.mail_quota_enabled') == 1>
<tr>
<td>{$lng['customer']['email_quota']}:</td>
<td><span <if $admin['email_quota_used'] == $admin['email_quota_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_quota_used']} -&gt; {$admin['email_quota_used_new']}</b></span></td>
@@ -51,7 +51,7 @@
<td>{$lng['customer']['ftps']}:</td>
<td><span <if $admin['ftps_used'] == $admin['ftps_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['ftps_used']} -&gt; {$admin['ftps_used_new']}</b></span></td>
</tr>
<if $settings['ticket']['enabled'] == '1'>
<if Settings::Get('ticket.enabled') == '1'>
<tr>
<td>{$lng['customer']['tickets']}:</td>
<td><span <if $admin['tickets_used'] == $admin['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['tickets_used']} -&gt; {$admin['tickets_used_new']}</b></span></td>

View File

@@ -25,7 +25,7 @@
<td>{$lng['customer']['forwarders']}:</td>
<td><span <if $customer['email_forwarders_used'] == $customer['email_forwarders_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_forwarders_used']} -&gt; {$customer['email_forwarders_used_new']}</b></span></td>
</tr>
<if $settings['system']['mail_quota_enabled'] == 1>
<if Settings::Get('system.mail_quota_enabled') == 1>
<tr>
<td>{$lng['customer']['email_quota']}:</td>
<td><span <if $customer['email_quota_used'] == $customer['email_quota_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_quota_used']} -&gt; {$customer['email_quota_used_new']}</b></span></td>
@@ -35,7 +35,7 @@
<td>{$lng['customer']['ftps']}:</td>
<td><span <if $customer['ftps_used'] == $customer['ftps_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['ftps_used']} -&gt; {$customer['ftps_used_new']}</b></span></td>
</tr>
<if $settings['ticket']['enabled'] == '1'>
<if Settings::Get('ticket.enabled') == '1'>
<tr>
<td>{$lng['customer']['tickets']}:</td>
<td><span <if $customer['tickets_used'] == $customer['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['tickets_used']} -&gt; {$customer['tickets_used_new']}</b></span></td>

View File

@@ -85,7 +85,7 @@ $header
<td><em>{EMAIL}</em></td>
<td>{$lng['admin']['templates']['EMAIL']}</td>
</tr>
<if $settings['panel']['sendalternativemail'] == 1>
<if Settings::Get('panel.sendalternativemail') == 1>
<tr>
<td colspan="2">
<strong>{$lng['admin']['templates']['pop_success_alternative']}</strong>

View File

@@ -86,7 +86,7 @@ $header
<td><em>{EMAIL}</em></td>
<td>{$lng['admin']['templates']['EMAIL']}</td>
</tr>
<if $settings['panel']['sendalternativemail'] == 1>
<if Settings::Get('panel.sendalternativemail') == 1>
<tr>
<td colspan="2">
<strong>{$lng['admin']['templates']['pop_success_alternative']}</strong>

View File

@@ -29,8 +29,8 @@
<th>{$lng['emails']['emailaddress']}&nbsp;{$arrowcode['m.email_full']}</th>
<th>{$lng['emails']['forwarders']}&nbsp;{$arrowcode['m.destination']}</th>
<th>{$lng['emails']['account']}</th>
<if $settings['catchall']['catchall_enabled'] == '1'><th>{$lng['emails']['catchall']}</th></if>
<if $settings['system']['mail_quota_enabled'] == '1'>
<if Settings::Get('catchall.catchall_enabled') == '1'><th>{$lng['emails']['catchall']}</th></if>
<if Settings::Get('system.mail_quota_enabled') == '1'>
<th>{$lng['emails']['quota']}</th>
</if>
<th>{$lng['panel']['options']}</th>

View File

@@ -2,8 +2,8 @@
<td>{$row['email_full']}</td>
<td><if $row['destination'] == ''>&nbsp;<else>{$row['destination']}</if></td>
<td><if $row['popaccountid'] != 0>{$lng['panel']['yes']} ({$row['mboxsize']})</if><if $row['popaccountid'] == 0>{$lng['panel']['no']}</if></td>
<if $settings['catchall']['catchall_enabled'] == '1'><td><if $row['iscatchall'] != 0>{$lng['panel']['yes']}</if><if $row['iscatchall'] == 0>{$lng['panel']['no']}</if></td></if>
<if $settings['system']['mail_quota_enabled'] == '1'><td><if $row['quota'] == 0>{$lng['emails']['noquota']}<else>{$row['quota']} MiB</if></if></td>
<if Settings::Get('catchall.catchall_enabled') == '1'><td><if $row['iscatchall'] != 0>{$lng['panel']['yes']}</if><if $row['iscatchall'] == 0>{$lng['panel']['no']}</if></td></if>
<if Settings::Get('system.mail_quota_enabled') == '1'><td><if $row['quota'] == 0>{$lng['emails']['noquota']}<else>{$row['quota']} MiB</if></if></td>
<td>
<a href="{$linker->getLink(array('section' => 'email', 'page' => $page, 'action' => 'edit', 'id' => $row['id']))}" style="text-decoration:none;">
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" />

View File

@@ -90,7 +90,7 @@ $header
</div>
</if>
<if $settings['system']['mail_quota_enabled'] == 1 && $userinfo['email_quota'] != '0'>
<if Settings::Get('system.mail_quota_enabled') == 1 && $userinfo['email_quota'] != '0'>
<div class="canvasbox">
<input type="hidden" id="email_quota" class="circular" data-used="{$userinfo['email_quota_used']}" data-available="{$userinfo['email_quota']}">
<canvas id="email_forwarders-canvas" width="120" height="76"></canvas><br />
@@ -132,7 +132,7 @@ $header
</div>
</if>
<if (int)$settings['ticket']['enabled'] == 1 && $userinfo['tickets'] != '0'>
<if (int)Settings::Get('ticket.enabled') == 1 && $userinfo['tickets'] != '0'>
<div class="canvasbox">
<input type="hidden" id="tickets" class="circular" data-used="{$userinfo['tickets_used']}" data-available="{$userinfo['tickets']}">
<canvas id="tickets-canvas" width="120" height="76"></canvas><br />

View File

@@ -28,7 +28,7 @@ $header
{$searchcode}
</div>
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < Settings::Get('ticket.concurrently_open') || (Settings::Get('ticket.concurrently_open') == '-1' || Settings::Get('ticket.concurrently_open') == '')) >
<div class="overviewadd">
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />&nbsp;
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
@@ -67,7 +67,7 @@ $header
</form>
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count && ($ticketsopen < Settings::Get('ticket.concurrently_open') || (Settings::Get('ticket.concurrently_open') == '-1' || Settings::Get('ticket.concurrently_open') == '')) >
<div class="overviewadd">
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />&nbsp;
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>

View File

@@ -5,7 +5,7 @@
</if>
<footer>
<span><img src="templates/{$theme}/assets/img/logo_grey.png" alt="Froxlor" />
<if ($settings['admin']['show_version_login'] == '1' && $filename == 'index.php') || ($filename != 'index.php' && $settings['admin']['show_version_footer'] == '1')>
<if (Settings::Get('admin.show_version_login') == '1' && $filename == 'index.php') || ($filename != 'index.php' && Settings::Get('admin.show_version_footer') == '1')>
{$version}{$branding}
</if>
&copy; 2009-{$current_year} by <a href="http://www.froxlor.org/" rel="external">the Froxlor Team</a><br />

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="Default-Style" content="text/css" />
<if $settings['panel']['no_robots'] == '0'>
<if Settings::Get('panel.no_robots') == '0'>
<meta name="robots" content="noindex, nofollow, noarchive" />
<meta name="GOOGLEBOT" content="nosnippet" />
</if>
@@ -21,8 +21,8 @@
</if>
<script language="javascript" type="text/javascript" src="templates/{$theme}/assets/js/jcanvas.min.js"></script>
<script language="javascript" type="text/javascript" src="templates/{$theme}/assets/js/circular.js"></script>
<if $settings['panel']['use_webfonts'] == '1'>
<link href="//fonts.googleapis.com/css?family={$settings['panel']['webfont']}" rel="stylesheet">
<if Settings::Get('panel.use_webfonts') == '1'>
<link href="//fonts.googleapis.com/css?family={Settings::Get('panel.webfont')}" rel="stylesheet">
</if>
<link href="templates/{$theme}/assets/css/main.css" rel="stylesheet" type="text/css" />
<!--[if IE]><link rel="stylesheet" href="templates/{$theme}/css/main_ie.css" type="text/css" /><![endif]-->
@@ -32,7 +32,7 @@
<title><if isset($userinfo['loginname']) && $userinfo['loginname'] != ''>{$userinfo['loginname']} - </if>Froxlor Server Management Panel</title>
<style type="text/css">
body {
font-family: <if $settings['panel']['use_webfonts'] == '1'>{$webfont},</if> Verdana, Geneva, sans-serif;
font-family: <if Settings::Get('panel.use_webfonts') == '1'>{$webfont},</if> Verdana, Geneva, sans-serif;
}
</style>
</head>
@@ -48,7 +48,7 @@
</a>
<div class="topheader_navigation">
<ul class="topheadernav">
<if $settings['ticket']['enabled'] == 1>
<if Settings::Get('ticket.enabled') == 1>
<li>
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets'))}">
<if 0 < $awaitingtickets>
@@ -66,10 +66,10 @@
<ul>
<li><a href="{$linker->getLink(array('section' => 'index', 'page' => 'change_password'))}">{$lng['login']['password']}</a></li>
<li><a href="{$linker->getLink(array('section' => 'index', 'page' => 'change_language'))}">{$lng['login']['language']}</a></li>
<if $settings['panel']['allow_theme_change_admin'] == '1' && $userinfo['adminsession'] == 1>
<if Settings::Get('panel.allow_theme_change_admin') == '1' && $userinfo['adminsession'] == 1>
<li><a href="{$linker->getLink(array('section' => 'index', 'page' => 'change_theme'))}">{$lng['panel']['theme']}</a></li>
</if>
<if $settings['panel']['allow_theme_change_customer'] == '1' && $userinfo['adminsession'] == 0>
<if Settings::Get('panel.allow_theme_change_customer') == '1' && $userinfo['adminsession'] == 0>
<li><a href="{$linker->getLink(array('section' => 'index', 'page' => 'change_theme'))}">{$lng['panel']['theme']}</a></li>
</if>
</ul>

View File

@@ -48,7 +48,7 @@ $header
</form>
<aside>
<if $settings['panel']['allow_preset'] == '1'>
<if Settings::Get('panel.allow_preset') == '1'>
<a href="$filename?action=forgotpwd">{$lng['login']['forgotpwd']}</a>
<else>
&nbsp;