Skip to content

Commit 86241bd

Browse files
committed
Backups können bei vhost-domains nicht mehr gemacht werden
1 parent 36420c6 commit 86241bd

File tree

3 files changed

+2
-96
lines changed

3 files changed

+2
-96
lines changed

install/sql/ispconfig3.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ CREATE TABLE `client` (
204204
`limit_shell_user` int(11) NOT NULL DEFAULT '0',
205205
`ssh_chroot` varchar(255) NOT NULL DEFAULT 'no,jailkit,ssh-chroot',
206206
`limit_webdav_user` int(11) NOT NULL DEFAULT '0',
207+
`limit_backup` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n',
207208
`limit_aps` int(11) NOT NULL DEFAULT '-1',
208209
`default_dnsserver` int(11) unsigned NOT NULL DEFAULT '1',
209210
`db_servers` blob NOT NULL,
@@ -313,6 +314,7 @@ CREATE TABLE `client_template` (
313314
`limit_shell_user` int(11) NOT NULL default '0',
314315
`ssh_chroot` varchar(255) NOT NULL DEFAULT 'no',
315316
`limit_webdav_user` int(11) NOT NULL default '0',
317+
`limit_backup` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n',
316318
`limit_aps` int(11) NOT NULL DEFAULT '-1',
317319
`limit_dns_zone` int(11) NOT NULL default '-1',
318320
`limit_dns_slave_zone` int(11) NOT NULL default '-1',

interface/web/sites/form/web_vhost_domain.tform.php

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -561,57 +561,6 @@
561561
)
562562
);
563563

564-
// if($_SESSION["s"]["user"]["typ"] == 'admin') {
565-
566-
//* Backup
567-
$form["tabs"]['backup'] = array (
568-
'title' => "Backup",
569-
'width' => 100,
570-
'template' => "templates/web_vhost_domain_backup.htm",
571-
'readonly' => false,
572-
'fields' => array (
573-
//#################################
574-
// Begin Datatable fields
575-
//#################################
576-
'backup_interval' => array (
577-
'datatype' => 'VARCHAR',
578-
'formtype' => 'SELECT',
579-
'default' => '',
580-
'value' => array('none' => 'no_backup_txt', 'daily' => 'daily_backup_txt', 'weekly' => 'weekly_backup_txt', 'monthly' => 'monthly_backup_txt')
581-
),
582-
'backup_copies' => array (
583-
'datatype' => 'INTEGER',
584-
'formtype' => 'SELECT',
585-
'default' => '',
586-
'value' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10')
587-
),
588-
'backup_excludes' => array (
589-
'datatype' => 'VARCHAR',
590-
'validators' => array ( 0 => array ( 'type' => 'REGEX',
591-
'regex' => '@^(?!.*\.\.)[-a-zA-Z0-9_/.~,*]*$@',
592-
'errmsg'=> 'backup_excludes_error_regex'),
593-
),
594-
'formtype' => 'TEXT',
595-
'default' => '',
596-
'value' => '',
597-
'width' => '30',
598-
'maxlength' => '255'
599-
),
600-
//#################################
601-
// ENDE Datatable fields
602-
//#################################
603-
),
604-
'plugins' => array (
605-
'backup_records' => array (
606-
'class' => 'plugin_backuplist',
607-
'options' => array(
608-
)
609-
)
610-
)
611-
);
612-
613-
// }
614-
615564
if($_SESSION["s"]["user"]["typ"] == 'admin'
616565
|| ($web_config['reseller_can_use_options'] == 'y' && $app->auth->has_clients($_SESSION['s']['user']['userid']))) {
617566

interface/web/sites/templates/web_vhost_domain_backup.htm

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)