Implemented FS#2379 - Add perl option to web sites (apache2 mod_perl2)
Fixed (partly) FS#2310 - Template switch not working in mailuser module, for dashlets and the login page
7 files modified
1 files added
New file |
| | |
| | | -- -------------------------------------------------------- |
| | | |
| | | ALTER TABLE `web_domain` ADD `perl` enum('n','y') NOT NULL default 'n' AFTER `python`; |
| | | |
| | | |
| | |
| | | `php` varchar(32) NOT NULL default 'y', |
| | | `ruby` enum('n','y') NOT NULL default 'n', |
| | | `python` enum('n','y') NOT NULL default 'n', |
| | | `perl` enum('n','y') NOT NULL default 'n', |
| | | `redirect_type` varchar(255) default NULL, |
| | | `redirect_path` varchar(255) default NULL, |
| | | `seo_redirect` varchar(255) default NULL, |
| | |
| | | require_once('../lib/config.inc.php'); |
| | | require_once('../lib/app.inc.php'); |
| | | |
| | | if(!isset($_SESSION['s']['module']['name'])) $_SESSION['s']['module']['name'] = 'login'; |
| | | |
| | | $app->uses('tpl'); |
| | | $app->tpl->newTemplate('main.tpl.htm'); |
| | | |
| | |
| | | ),*/ |
| | | 'value' => '' |
| | | ), |
| | | 'perl' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | 'ruby' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | |
| | | $wb['ipv6_address_txt'] = 'IPv6-Adresse'; |
| | | $wb['error_no_sni_txt'] = 'SNI for SSL is not activated on this server. You can enable only one SSL certificate on each IP address.'; |
| | | $wb['python_txt'] = 'Python'; |
| | | $wb['perl_txt'] = 'Perl'; |
| | | $wb['pm_max_children_txt'] = 'PHP-FPM pm.max_children'; |
| | | $wb['pm_start_servers_txt'] = 'PHP-FPM pm.start_servers'; |
| | | $wb['pm_min_spare_servers_txt'] = 'PHP-FPM pm.min_spare_servers'; |
| | |
| | | $wb["php_fpm_use_socket_txt"] = 'Use Socket For PHP-FPM'; |
| | | $wb["error_no_sni_txt"] = 'SNI for SSL is not activated on this server. You can enable only one SSL certificate on each IP address.'; |
| | | $wb["python_txt"] = 'Python'; |
| | | $wb["perl_txt"] = 'Perl'; |
| | | $wb["pm_max_children_txt"] = 'PHP-FPM pm.max_children'; |
| | | $wb["pm_start_servers_txt"] = 'PHP-FPM pm.start_servers'; |
| | | $wb["pm_min_spare_servers_txt"] = 'PHP-FPM pm.min_spare_servers'; |
| | |
| | | </div> |
| | | </div> |
| | | <div class="ctrlHolder apache"> |
| | | <p class="label">{tmpl_var name='perl_txt'}</p> |
| | | <div class="multiField"> |
| | | {tmpl_var name='perl'} |
| | | </div> |
| | | </div> |
| | | <div class="ctrlHolder apache"> |
| | | <p class="label">{tmpl_var name='ruby_txt'}</p> |
| | | <div class="multiField"> |
| | | {tmpl_var name='ruby'} |
| | |
| | | </IfModule> |
| | | </tmpl_if> |
| | | |
| | | <tmpl_if name='perl' op='==' value='y'> |
| | | <IfModule mod_perl.c> |
| | | PerlModule ModPerl::Registry |
| | | PerlModule Apache2::Reload |
| | | <Directory {tmpl_var name='web_document_root_www'}> |
| | | SetHandler perl-script |
| | | PerlResponseHandler ModPerl::Registry |
| | | PerlOptions +ParseHeaders |
| | | Options +ExecCGI |
| | | </Directory> |
| | | </IfModule> |
| | | </tmpl_if> |
| | | |
| | | <tmpl_if name='python' op='==' value='y'> |
| | | <IfModule mod_python.c> |
| | | <Directory {tmpl_var name='web_document_root_www'}> |