Feature: Vhost templates
Reworked the initial implementation by hpmewes (https://github.com/Froxlor/Froxlor/pull/233) with - bugfixes all over - added support for apache and lighttpd also - added an update sequence (instead of only modifying froxlor.sql) - added english language variables - added missing parts in admin_vhostsettings.php - added parameter replacements as available since PR 244
This commit is contained in:
@@ -150,6 +150,21 @@ return array(
|
||||
),
|
||||
'value' => array()
|
||||
),
|
||||
'vhost_usedefaultlocation' => array(
|
||||
'label' => $lng['admin']['vhostconfig']['vhost_usedefaultlocation']['title'],
|
||||
'desc' => $lng['admin']['vhostconfig']['vhost_usedefaultlocation']['desc'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||
),
|
||||
'value' => array()
|
||||
),
|
||||
'vhostsettingid' => array(
|
||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
||||
'label' => $lng['admin']['vhostsettings']['vhostsettings'],
|
||||
'type' => 'select',
|
||||
'select_var' => $vhostconfigs
|
||||
),
|
||||
'specialsettings' => array(
|
||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
||||
'style' => 'align-top',
|
||||
|
||||
@@ -162,6 +162,21 @@ return array(
|
||||
),
|
||||
'value' => array($result['speciallogfile'])
|
||||
),
|
||||
'vhost_usedefaultlocation' => array(
|
||||
'label' => $lng['admin']['vhostconfig']['vhost_usedefaultlocation']['title'],
|
||||
'desc' => $lng['admin']['vhostconfig']['vhost_usedefaultlocation']['desc'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||
),
|
||||
'value' => array($result['vhost_usedefaultlocation'])
|
||||
),
|
||||
'vhostsettingid' => array(
|
||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
||||
'label' => $lng['admin']['vhostsettings']['vhostsettings'],
|
||||
'type' => 'select',
|
||||
'select_var' => $vhostconfigs
|
||||
),
|
||||
'specialsettings' => array(
|
||||
'visible' => ($userinfo['change_serversettings'] == '1' ? true : false),
|
||||
'style' => 'align-top',
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Froxlor project.
|
||||
* Copyright (c) 2010 the Froxlor Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Froxlor team <team@froxlor.org> (2010-)
|
||||
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
||||
* @package Formfields
|
||||
*
|
||||
*/
|
||||
|
||||
return array(
|
||||
'vhostconfig_add' => array(
|
||||
'title' => $lng['admin']['vhostsettings']['addsettings'],
|
||||
'image' => 'icons/vhostsettings_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['admin']['vhostsettings']['addnew'],
|
||||
'image' => 'icons/vhostsettings_add.png',
|
||||
'fields' => array(
|
||||
'description' => array(
|
||||
'label' => $lng['admin']['phpsettings']['description'],
|
||||
'type' => 'text',
|
||||
'maxlength' => 50
|
||||
),
|
||||
'vhostsettings' => array(
|
||||
'style' => 'align-top',
|
||||
'label' => $lng['admin']['vhostsettings']['vhostsettings'],
|
||||
'type' => 'textarea',
|
||||
'cols' => 100,
|
||||
'rows' => 30
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Froxlor project.
|
||||
* Copyright (c) 2010 the Froxlor Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Froxlor team <team@froxlor.org> (2010-)
|
||||
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
||||
* @package Formfields
|
||||
*
|
||||
*/
|
||||
|
||||
return array(
|
||||
'vhostconfig_edit' => array(
|
||||
'title' => $lng['admin']['vhostsettings']['editsettings'],
|
||||
'image' => 'icons/vhostsettings_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['admin']['vhostsettings']['editsettings'],
|
||||
'image' => 'icons/vhostsettings_edit.png',
|
||||
'fields' => array(
|
||||
'description' => array(
|
||||
'label' => $lng['admin']['phpsettings']['description'],
|
||||
'type' => 'text',
|
||||
'maxlength' => 50,
|
||||
'value' => $result['description']
|
||||
),
|
||||
'vhostsettings' => array(
|
||||
'style' => 'align-top',
|
||||
'label' => $lng['admin']['vhostsettings']['vhostsettings'],
|
||||
'type' => 'textarea',
|
||||
'cols' => 100,
|
||||
'rows' => 30,
|
||||
'value' => $result['vhostsettings']
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user