diff --git a/new_service_webdns.php b/new_service_webdns.php index 8bf54ff..1769829 100755 --- a/new_service_webdns.php +++ b/new_service_webdns.php @@ -375,6 +375,9 @@ class page_action extends tform_actions { $remoto->sites_database_user_after_add($this->cli_grupo_id, $db_user_params); + $global_web_config = $app->getconf->get_server_config($this->web_serv, 'server'); + $ip4_bbdd = $global_web_config; + //echo(' ip4 bbdd ' . print_r($ip4_bbdd)); // add database $paramsBD = array( 'server_id' => $this->bbdd_serv, //$camDnsRR['server_id'], @@ -386,8 +389,8 @@ class page_action extends tform_actions { 'database_name_prefix' => $this->valor_prefix, 'database_user_id' => $db_user_id, 'database_charset' => 'utf8', - 'remote_access' => 'n', - 'remote_ips' => '-1', + 'remote_access' => 'y', + 'remote_ips' => $ip4_bbdd['ip_address'], //'-1', 'active' => 'y' );