Commit 2be07219 authored by Brian's avatar Brian
Browse files

Merge branch 'develop' of https://git.ispconfig.org/branov/ispconfig3 into develop

parents 5f1e170b 313df06b
Pipeline #6278 passed with stage
in 11 seconds
......@@ -196,6 +196,7 @@ CREATE TABLE `client` (
`limit_xmpp_status` ENUM( 'n', 'y' ) NOT NULL default 'n',
`limit_xmpp_pastebin` ENUM( 'n', 'y' ) NOT NULL default 'n',
`limit_xmpp_httparchive` ENUM( 'n', 'y' ) NOT NULL default 'n',
`default_directive_snippet` INT(3) NULL DEFAULT NULL,
`default_webserver` int(11) unsigned NOT NULL DEFAULT '1',
`web_servers` text,
`limit_web_ip` text,
......@@ -326,6 +327,7 @@ CREATE TABLE `client_template` (
`limit_xmpp_status` ENUM( 'n', 'y' ) NOT NULL default 'n',
`limit_xmpp_pastebin` ENUM( 'n', 'y' ) NOT NULL default 'n',
`limit_xmpp_httparchive` ENUM( 'n', 'y' ) NOT NULL default 'n',
`default_directive_snippet` INT(3) NULL DEFAULT NULL,
`web_servers` text,
`limit_web_ip` text,
`limit_web_domain` int(11) NOT NULL default '-1',
......
......@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
--
--
-- These SQL commands will be executed before the ISPConfig update is performed.
--
......@@ -43,4 +43,8 @@ DROP TABLE IF EXISTS `domain_handle`;
DROP TABLE IF EXISTS `domain_provider`;
DROP TABLE IF EXISTS `domain_tld`;
SET FOREIGN_KEY_CHECKS = 1;
\ No newline at end of file
SET FOREIGN_KEY_CHECKS = 1;
-- Default Directive Snippets --
ALTER TABLE `client` ADD `default_directive_snippet` INT(3) NULL DEFAULT NULL AFTER `limit_xmpp_httparchive`;
ALTER TABLE `client_template` ADD `default_directive_snippet` INT(3) NULL DEFAULT NULL AFTER `web_servers`;
\ No newline at end of file
......@@ -672,6 +672,17 @@ $form["tabs"]['limits'] = array (
'default' => 'n',
'valuelimit' => 'client:limit_directive_snippets',
'value' => array(0 => 'n', 1 => 'y')
),
'default_directive_snippet' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '',
'value' => '',
'datasource' => array ( 'type' => 'SQL',
'querystring' => "SELECT directive_snippets_id,name FROM directive_snippets WHERE active='y' AND type='apache' AND required_php_snippets != '' AND {AUTHSQL} ORDER BY directive_snippets_id",
'keyfield'=> 'directive_snippets_id',
'valuefield'=> 'name'
),
),/*
'default_dnsserver' => array (
'datatype' => 'INTEGER',
......
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -125,4 +125,6 @@ $wb['xmpp_servers_txt'] = 'Servidores xmpp';
$wb['db_servers_txt'] = 'Servidores de banco de dados';
$wb['mail_servers_txt'] = 'Servidores de e-mail';
$wb['Limits'] = 'Limites';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -116,10 +116,12 @@ $wb['limit_xmpp_proxy_txt'] = 'Bytestream proxy available';
$wb['limit_xmpp_status_txt'] = 'Status host available';
$wb['dns_servers_txt'] = 'DNS servery';
$wb['limit_ssl_letsencrypt_txt'] = 'Lets Encrypt SSL - dostupná volba pro klienta';
$wb['limit_directive_snippets_txt'] = 'Výběr configurace webového serveru - dostupná volba pro klienta';
$wb['limit_directive_snippets_txt'] = 'Výběr konfigurace webového serveru - dostupná volba pro klienta';
$wb['limit_database_user_txt'] = 'Max. počet databázových uživatelů';
$wb['web_servers_txt'] = 'Webové servery';
$wb['db_servers_txt'] = 'Databázové servery';
$wb['mail_servers_txt'] = 'E-mailové servery';
$wb['Limits'] = 'Limity';
$wb['default_directive_snippet_txt'] = 'Výchozí konfigurace webového serveru';
$wb['default_directive_snippet_none_txt'] = 'Žádná';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Web-Server';
$wb['db_servers_txt'] = 'Datenbank-Server';
$wb['mail_servers_txt'] = 'Mail-Server';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -125,4 +125,6 @@ $wb['xmpp_servers_txt'] = 'XMPP Servers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
......@@ -122,4 +122,6 @@ $wb['web_servers_txt'] = 'Webservers';
$wb['db_servers_txt'] = 'Database servers';
$wb['mail_servers_txt'] = 'Mailservers';
$wb['Limits'] = 'Limits';
$wb['default_directive_snippet_txt'] = 'Default Directive snippet';
$wb['default_directive_snippet_none_txt'] = 'None';
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment