| | |
| | | if(!$app->tform->checkResellerLimit('limit_database')) { |
| | | $app->error('Reseller: '.$app->tform->wordbook["limit_database_txt"]); |
| | | } |
| | | } else { |
| | | $settings = $app->getconf->get_global_config('sites'); |
| | | $app->tform->formDef['tabs']['database']['fields']['server_id']['default'] = intval($settings['default_dbserver']); |
| | | } |
| | | |
| | | parent::onShowNew(); |
| | |
| | | |
| | | //* The Database user shall be owned by the same group then the website |
| | | $sys_groupid = $app->functions->intval($web['sys_groupid']); |
| | | $backup_interval = $app->functions->intval($web['backup_interval']); |
| | | $backup_interval = $app->db->quote($web['backup_interval']); |
| | | $backup_copies = $app->functions->intval($web['backup_copies']); |
| | | |
| | | $sql = "UPDATE web_database SET sys_groupid = '$sys_groupid', backup_interval = '$backup_interval', backup_copies = '$backup_copies' WHERE database_id = ".$this->id; |
| | |
| | | |
| | | //* The Database user shall be owned by the same group then the website |
| | | $sys_groupid = $app->functions->intval($web['sys_groupid']); |
| | | $backup_interval = $app->functions->intval($web['backup_interval']); |
| | | $backup_interval = $app->db->quote($web['backup_interval']); |
| | | $backup_copies = $app->functions->intval($web['backup_copies']); |
| | | |
| | | $sql = "UPDATE web_database SET sys_groupid = '$sys_groupid', backup_interval = '$backup_interval', backup_copies = '$backup_copies' WHERE database_id = ".$this->id; |