Explorar el Código

clientareafunctions

andre hace 3 años
padre
commit
d0be54d2f9
Se han modificado 4 ficheros con 9 adiciones y 5 borrados
  1. 6 2
      cwp7.php
  2. 1 1
      cwp7_del_domain_confirm.tpl
  3. 1 1
      cwp7_del_subdomain_confirm.tpl
  4. 1 1
      cwp7_help_dns.tpl

+ 6 - 2
cwp7.php

@@ -348,13 +348,17 @@ function cwp7_addDomain($params) {
 	if(!filter_var($_POST['d'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
 		return 'Error: invalid domain name';
 	}
-
+	$vars['user'] = $params['username'];
+	$vars['name'] = $_POST['d'];
+	$vars['type'] = 'domain';
+	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
+	$response = $cwp7->addDomain($vars);
 	logModuleCall(
 		'cwp7',
 		__FUNCTION__,
 		$_POST,
 		'debug addDomain',
-		filter_var($_POST['d'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)
+		$response
 	);
 
 	return 'success';

+ 1 - 1
cwp7_del_domain_confirm.tpl

@@ -1,4 +1,4 @@
-<h2>Neue Subdomaine erstellen</h2>
+<h2>Domaine löschen</h2>
 <hr>
 <div class="row">
     <div class="col-xl-9 primary-content left-layout">

+ 1 - 1
cwp7_del_subdomain_confirm.tpl

@@ -1,4 +1,4 @@
-<h2>Neue Subdomaine erstellen</h2>
+<h2>Subdomaine löschen</h2>
 <hr>
 <div class="row">
     <div class="col-xl-9 primary-content left-layout">

+ 1 - 1
cwp7_help_dns.tpl

@@ -1,4 +1,4 @@
-<h2>Neue Domaine erstellen</h2>
+<h2>Domaine Status</h2>
 <hr>
 
 <div class="row">