Browse Source

clientareafunctions

andre 3 years ago
parent
commit
39ad8ecbb2
2 changed files with 27 additions and 1 deletions
  1. 9 1
      clientarea.tpl
  2. 18 0
      cwp7.php

+ 9 - 1
clientarea.tpl

@@ -305,7 +305,15 @@
                                         </td>
                                         <td style="min-width:50px;text-align:center;padding:5px;">
                                           {if $subdomain.ssl == 1}
-                                            <i class="fas fa-repeat fa-fw"></i>
+                                            <form method="post" action="clientarea.php?action=productdetails">
+                                              <input type="hidden" name="id" value="{$serviceid}" />
+                                              <input type="hidden" name="modop" value="custom" />
+                                              <input type="hidden" name="a" value="renewSSL" />
+                                              <input type="hidden" name="d" value="{$domain.domain}" />
+                                              <button type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                                <i class="fas fa-repeat fa-fw"></i>
+                                              </button>
+                                            </form>
                                           {else}
                                             {if $subdomain.DNS == 1}
                                               <form method="post" action="clientarea.php?action=productdetails">

+ 18 - 0
cwp7.php

@@ -333,7 +333,25 @@ function cwp7_enableSSL($params) {
 	return 'success';
 }
 
+function cwp7_renewSSL($params) {
+	logModuleCall(
+		'cwp7',
+		__FUNCTION__,
+		$_POST,
+		'debug custom',
+		$params
+	);
+	return 'success';
+}
+
 function cwp7_setDNS($params) {
+	logModuleCall(
+		'cwp7',
+		__FUNCTION__,
+		$_POST,
+		'debug custom',
+		$params
+	);
 	return 'success';
 }