Backups können bei vhost-domains nicht mehr gemacht werden
1 files deleted
2 files modified
| | |
| | | `limit_shell_user` int(11) NOT NULL DEFAULT '0', |
| | | `ssh_chroot` varchar(255) NOT NULL DEFAULT 'no,jailkit,ssh-chroot', |
| | | `limit_webdav_user` int(11) NOT NULL DEFAULT '0', |
| | | `limit_backup` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n', |
| | | `limit_aps` int(11) NOT NULL DEFAULT '-1', |
| | | `default_dnsserver` int(11) unsigned NOT NULL DEFAULT '1', |
| | | `db_servers` blob NOT NULL, |
| | |
| | | `limit_shell_user` int(11) NOT NULL default '0', |
| | | `ssh_chroot` varchar(255) NOT NULL DEFAULT 'no', |
| | | `limit_webdav_user` int(11) NOT NULL default '0', |
| | | `limit_backup` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n', |
| | | `limit_aps` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_dns_zone` int(11) NOT NULL default '-1', |
| | | `limit_dns_slave_zone` int(11) NOT NULL default '-1', |
| | |
| | | ) |
| | | ); |
| | | |
| | | // if($_SESSION["s"]["user"]["typ"] == 'admin') { |
| | | |
| | | //* Backup |
| | | $form["tabs"]['backup'] = array ( |
| | | 'title' => "Backup", |
| | | 'width' => 100, |
| | | 'template' => "templates/web_vhost_domain_backup.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'backup_interval' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '', |
| | | 'value' => array('none' => 'no_backup_txt', 'daily' => 'daily_backup_txt', 'weekly' => 'weekly_backup_txt', 'monthly' => 'monthly_backup_txt') |
| | | ), |
| | | 'backup_copies' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '', |
| | | 'value' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10') |
| | | ), |
| | | 'backup_excludes' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '@^(?!.*\.\.)[-a-zA-Z0-9_/.~,*]*$@', |
| | | 'errmsg'=> 'backup_excludes_error_regex'), |
| | | ), |
| | | 'formtype' => 'TEXT', |
| | | 'default' => '', |
| | | 'value' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ), |
| | | 'plugins' => array ( |
| | | 'backup_records' => array ( |
| | | 'class' => 'plugin_backuplist', |
| | | 'options' => array( |
| | | ) |
| | | ) |
| | | ) |
| | | ); |
| | | |
| | | // } |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] == 'admin' |
| | | || ($web_config['reseller_can_use_options'] == 'y' && $app->auth->has_clients($_SESSION['s']['user']['userid']))) { |
| | | |