Ver código fonte

Merge branch 'new_buttons' of andre/whmcsCWP into master

andre 3 anos atrás
pai
commit
aaa71e7f06

+ 18 - 10
api/cwp7/Admin.php

@@ -91,6 +91,9 @@ class cwp7_Admin {
 	 * @return array of account informations or error message
 	 */
     public function createAccount($params) {
+        if(!isset($params['package'])) {
+            return array('error_msg' => 'Error: missing parameter package');
+        }
         if(!isset($params['domain'])) {
             return array('error_msg' => 'Error: missing parameter domain');
         }
@@ -103,8 +106,17 @@ class cwp7_Admin {
         if(!isset($params['email'])) {
             return array('error_msg' => 'Error: missing parameter email');
         }
-        if(!isset($params['package'])) {
-            return array('error_msg' => 'Error: missing parameter package');
+        if(!isset($params['inode'])) {
+            return array('error_msg' => 'Error: missing parameter inode');
+        }
+        if(!isset($params['nofile'])) {
+            return array('error_msg' => 'Error: missing parameter nofile');
+        }
+        if(!isset($params['nproc'])) {
+            return array('error_msg' => 'Error: missing parameter nproc');
+        }
+        if(!isset($params['server_ips'])) {
+            return array('error_msg' => 'Error: missing parameter server_ips');
         }
         if(!isset($params['autossl'])) {
             $params['autossl'] = 0;
@@ -119,8 +131,8 @@ class cwp7_Admin {
             'autossl'       => $params['autossl'],
             'encodepass'    => true,
 			'inode'         => $params['inode'],
-            'nofile'        => $params['nofile'],
-            'nproc'         => $params['nproc'],
+            'limit_nofile'  => $params['nofile'],
+            'limit_nproc'   => $params['nproc'],
             'server_ips'    => $params['server_ips'],
         );
         return $this->doRequest('account', 'add', $data);
@@ -142,12 +154,7 @@ class cwp7_Admin {
         if(!isset($params['package'])) {
             return array('error_msg' => 'Error: missing parameter package');
         }
-        $data = array(
-            'user'          => $params['user'],
-            'email'         => $params['email'],
-            'package'       => $params['package'],
-        );
-        return $this->doRequest('account', 'upd', $data);
+        return $this->doRequest('account', 'udp', $params);
 	}
 	/**
 	 * deleteAccount
@@ -389,6 +396,7 @@ class cwp7_Admin {
     protected function doRequest($endpoint, $action, $data) {
         $data['key'] = $this->cwp7Token;
         $data['action'] = $action;
+//        $data['debug'] = 1;
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $this->cwp7URL . '/v1/' . $endpoint);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

+ 234 - 176
clientarea.tpl

@@ -12,7 +12,6 @@
     {include file="$template/includes/alert.tpl" type="error" msg=$modulechangepasswordmessage|strip_tags textcenter=true}
   {/if}
 {/if}
-
 {if $pendingcancellation}
   {include file="$template/includes/alert.tpl" type="error" msg=$LANG.cancellationrequestedexplanation textcenter=true idname="alertPendingCancellation"}
 {/if}
@@ -164,6 +163,10 @@
                           class="fas fa-inbox fa-fw"></i> {lang key='resourceUsage'}</a>
                     </li>
                   {/if}
+                  <a href="{$systemurl}clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1"
+                    class="nav-link active" target=_blank style="margin-left: auto;">
+                    <i class="fas fa-sign-in fa-fw"></i> CWP Login
+                  </a>
                 </ul>
               </div>
               <div class="card-body">
@@ -172,202 +175,257 @@
                     <div class="tab-pane fade show active" role="tabpanel" id="manage" align="center">
                       <div class="col-sm-12">
                         <h4>{lang key='overview'}</h4>
-                        {foreach $domains as $domain}
-                          <div style="font-size:85%;color:#999;">Domain</div>
-                          <table style="width:100%;border-collapse:collapse;border:1px solid grey;">
-                            <tr style="font-size:85%;background-color:#0273d4;color:#fff;">
-                              <th style="width:25%;text-align:left;padding:5px;">
-                                DOMAIN NAME
-                              </th>
-                              <th style="min-width:50px;text-align:center;padding:5px;">
-                              </th>
-                              <th style="width:50%;text-align:left;padding:5px;">
-                                WEBROOT
-                              </th>
-                              <th style="min-width:50px;text-align:center;padding:5px;">
-                                DNS
-                              </th>
-                              <th style="min-width:50px;text-align:center;padding:5px;">
-                                SSL
-                              </th>
-                              <th style="min-width:50px;text-align:center;padding:5px;">
-                                EXP
-                              </th>
-                            </tr>
-                            <tr style="background-color:#ddd;">
-                              <td style="text-align:left;padding:5px;">
-                                <strong>{$domain.domain}</strong><br /><small>www.{$domain.domain}</small>
-                              </td>
-                              <td style="text-align:left;padding:5px;">
-                                <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="delDomainConfirm" />
-                                  <input type="hidden" name="d" value="{$domain.domain}" />
-                                  <button title="Domaine löschen" type="submit" class="fabutton" style="background:none;padding:0px;border:none;" {if $domain.subdomains|count > 0}disabled{/if}>
-                                    <i class="fas fa-trash fa-fw"></i>
-                                  </button>
-                                </form>
-                              </td>
-                              <td style="text-align:left;padding:5px;">
-                                {$domain.path}
-                              </td>
-                              <td style="text-align:center;padding:5px;">
-                                {if $domain.DNS == 1}
-                                  <i class="fas fa-check fa-fw"></i>
-                                {else}
-                                  {if $domain.domainNS == 'self'}
+                        {if $domains|count > 0}
+                          {foreach $domains as $domain}
+                            <div style="font-size:85%;color:#999;">Domain</div>
+                            <table style="width:100%;border-collapse:collapse;border:1px solid grey;">
+                              <tr style="font-size:85%;background-color:#0273d4;color:#fff;">
+                                <th style="width:25%;text-align:left;padding:5px;">
+                                  DOMAIN NAME
+                                </th>
+                                <th style="min-width:50px;text-align:center;padding:5px;">
+                                </th>
+                                <th style="width:50%;text-align:left;padding:5px;">
+                                  WEBROOT
+                                </th>
+                                <th style="min-width:50px;text-align:center;padding:5px;">
+                                  DNS
+                                </th>
+                                <th style="min-width:50px;text-align:center;padding:5px;">
+                                  SSL
+                                </th>
+                                <th style="min-width:50px;text-align:center;padding:5px;">
+                                  EXP
+                                </th>
+                              </tr>
+                              <tr style="background-color:#ddd;">
+                                <td style="text-align:left;padding:5px;">
+                                  {if $domain.DNS == 1}<a class="btn-link" href="http{if $domain.ssl == 1}s{/if}://www.{$domain.domain}" target="_blank">{/if}
+                                  <strong>{$domain.domain}</strong><br /><small>www.{$domain.domain}</small>
+                                  {if $domain.DNS == 1}</a>{/if}
+                                </td>
+                                <td style="text-align:left;padding:5px;">
+                                  <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="delDomainConfirm" />
+                                    <input type="hidden" name="d" value="{$domain.domain}" />
+                                    <button title="Domain löschen" type="submit" class="fabutton" style="background:none;padding:0px;border:none;" {if $domain.subdomains|count > 0}disabled{/if}>
+                                      <i class="fas fa-trash fa-fw"></i>
+                                    </button>
+                                  </form>
+                                </td>
+                                <td style="text-align:left;padding:5px;">
+                                  {$domain.relpath}
+                                </td>
+                                <td style="text-align:center;padding:5px;border-left:1px dotted black;">
+                                  {if $domain.DNS == 1}
+                                    {if $domain.domainNS == 'self'}
+                                      <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="unsetDNSConfirm" />
+                                        <input type="hidden" name="d" value="{$domain.domain}" />
+                                        <button title="DNS deaktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                          <i class="fas fa-power-off fa-fw" style="color:green;"></i>
+                                        </button>
+                                      </form>
+                                    {else}
+                                      <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="infoDNS" />
+                                        <input type="hidden" name="d" value="{$domain.domain}" />
+                                        <button title="DNS Info" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                          <i class="fas fa-power-off fa-fw" style="color:green;"></i>
+                                        </button>
+                                      </form>
+                                    {/if}  
+                                  {else}
+                                    {if $domain.domainNS == 'self'}
+                                      <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="setDNSConfirm" />
+                                        <input type="hidden" name="d" value="{$domain.domain}" />
+                                        <button title="DNS aktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                          <i class="fas fa-power-off fa-fw"></i>
+                                        </button>
+                                      </form>
+                                    {else}
+                                      <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="infoDNS" />
+                                        <input type="hidden" name="d" value="{$domain.domain}" />
+                                        <button title="DNS Info" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                          <i class="fas fa-power-off fa-fw" style="color:red;"></i>
+                                        </button>
+                                      </form>
+                                    {/if}
+                                  {/if}
+                                </td>
+                                <td style="text-align:center;padding:5px;border-left:1px dotted black;">
+                                  {if $domain.ssl == 1}
                                     <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="setDNSConfirm" />
+                                      <input type="hidden" name="a" value="renewSSLConfirm" />
                                       <input type="hidden" name="d" value="{$domain.domain}" />
-                                      <button title="DNS aktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
-                                        <i class="fas fa-power-off fa-fw"></i>
+                                      <button title="Zertifikat erneuern" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                        <i class="fas fa-repeat fa-fw" style="color:green;"></i>
                                       </button>
                                     </form>
                                   {else}
+                                    {if $domain.DNS == 1}
                                     <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="infoDNS" />
+                                      <input type="hidden" name="a" value="enableSSLConfirm" />
                                       <input type="hidden" name="d" value="{$domain.domain}" />
-                                      <button title="DNS Info" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
-                                        <i class="fas fa-info fa-fw"></i>
+                                      <button title="SSL aktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                        <i class="fas fa-power-off fa-fw"></i>
                                       </button>
                                     </form>
+                                    {else}
+                                      <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="infoSSL" />
+                                        <input type="hidden" name="d" value="{$domain.domain}" />
+                                        <button title="SSL Info" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                          <i class="fas fa-power-off fa-fw" style="color:red;"></i>
+                                        </button>
+                                      </form>
+                                    {/if}
                                   {/if}
-                                {/if}
-                              </td>
-                              <td style="text-align:center;padding:5px;">
-                                {if $domain.ssl == 1}
-                                  <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="renewSSLConfirm" />
-                                    <input type="hidden" name="d" value="{$domain.domain}" />
-                                    <button title="Zertifikat erneuern" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
-                                      <i class="fas fa-repeat fa-fw"></i>
-                                    </button>
-                                  </form>
-                                {else}
-                                  {if $domain.DNS == 1}
-                                  <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="enableSSLConfirm" />
-                                    <input type="hidden" name="d" value="{$domain.domain}" />
-                                    <button title="SSL aktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
-                                      <i class="fas fa-power-off fa-fw"></i>
-                                    </button>
-                                  </form>
-                                  {else}
-                                    <i class="fas fa-times fa-fw" title="DNS nicht gesetzt!"></i>
+                                </td>
+                                <td style="text-align:center;padding:5px;" title="Zertifikat ist noch {$domain.sslexpire} Tage gültig">
+                                  {if $domain.ssl == 1}
+                                    {$domain.sslexpire}
                                   {/if}
-                                {/if}
-                              </td>
-                              <td style="text-align:center;padding:5px;">
-                                {if $domain.ssl == 1}
-                                  {$domain.sslexpire}
-                                {/if}
-                              </td>
-                            </tr>
-                            {if $domain.subdomains}
-                              {foreach $domain.subdomains as $subdomain}
-                                <tr>
-                                  <td colspan=6>
-{*                                  <div style="color:#999;font-size:85%;text-align:center;">Subdomain</div> *}
-                                    <table style="width:100%;border-collapse:collapse;border:none;">
-                                      <tr>
-                                        <td style="width:25%;text-align:left;padding:5px;">
-                                          {$subdomain.subdomain}.{$subdomain.domain}
-                                        </td>
-                                        <td style="min-width:50px;text-align:left;padding:5px;">
+                                </td>
+                              </tr>
+                              {if $domain.subdomains}
+                                {foreach $domain.subdomains as $subdomain}
+                                  <tr>
+                                    <td style="width:25%;text-align:left;padding:5px;font-size:90%">
+                                      {if $subdomain.DNS == 1}<a class="btn-link" href="http{if $subdomain.ssl == 1}s{/if}://{$subdomain.subdomain}.{$subdomain.domain}" target="_blank">{/if}
+                                      &nbsp;{$subdomain.subdomain}.{$subdomain.domain}
+                                      {if $subdomain.DNS == 1}</a>{/if}
+                                    </td>
+                                    <td style="min-width:50px;text-align:left;padding:5px;">
+                                      <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="delSubdomainConfirm" />
+                                        <input type="hidden" name="d" value="{$subdomain.subdomain}.{$subdomain.domain}" />
+                                        <button title="Subdomain löschen" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                          <i class="fas fa-trash fa-fw"></i>
+                                        </button>
+                                      </form>
+                                    </td>
+                                    <td style="width:50%;text-align:left;padding:5px;">
+                                      {$subdomain.relpath}
+                                    </td>
+                                    <td style="min-width:50px;text-align:center;padding:5px;border-left:1px dotted black;">
+                                      {if $subdomain.DNS == 1}
+                                        <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="unsetDNSConfirm" />
+                                          <input type="hidden" name="d" value="{$subdomain.domain}" />
+                                          <input type="hidden" name="s" value="{$subdomain.subdomain}" />
+                                          <button title="DNS deaktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                            <i class="fas fa-power-off fa-fw" style="color:green;"></i>
+                                          </button>
+                                        </form>
+                                      {else}
+                                        {if $domain.domainNS == 'self'}
+                                          <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="setDNSConfirm" />
+                                            <input type="hidden" name="d" value="{$subdomain.domain}" />
+                                            <input type="hidden" name="s" value="{$subdomain.subdomain}" />
+                                            <button title="DNS aktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                              <i class="fas fa-power-off fa-fw"></i>
+                                            </button>
+                                          </form>
+                                        {else}
+                                          <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="infoDNS" />
+                                            <input type="hidden" name="d" value="{$subdomain.domain}" />
+                                            <button title="DNS Info" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                              <i class="fas fa-power-off fa-fw" style="color:red;"></i>
+                                            </button>
+                                          </form>
+                                        {/if}
+                                      {/if}
+                                    </td>
+                                    <td style="min-width:50px;text-align:center;padding:5px;border-left:1px dotted black;">
+                                      {if $subdomain.ssl == 1}
+                                        <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="renewSSLConfirm" />
+                                          <input type="hidden" name="d" value="{$subdomain.subdomain}.{$subdomain.domain}" />
+                                          <button title="Zertifikat erneuern" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                            <i class="fas fa-repeat fa-fw" style="color:green;"></i>
+                                          </button>
+                                        </form>
+                                      {else}
+                                        {if $subdomain.DNS == 1}
+                                          <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="enableSSLConfirm" />
+                                            <input type="hidden" name="d" value="{$subdomain.subdomain}.{$subdomain.domain}" />
+                                            <button title="SSL aktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                              <i class="fas fa-power-off fa-fw"></i>
+                                            </button>
+                                          </form>
+                                        {else}
                                           <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="delSubdomainConfirm" />
+                                            <input type="hidden" name="a" value="infoSSL" />
                                             <input type="hidden" name="d" value="{$subdomain.subdomain}.{$subdomain.domain}" />
-                                            <button title="Subdomaine löschen" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
-                                              <i class="fas fa-trash fa-fw"></i>
+                                            <button title="SSL Info" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
+                                              <i class="fas fa-power-off fa-fw" style="color:red;"></i>
                                             </button>
                                           </form>
-                                        </td>
-                                        <td style="width:50%;text-align:left;padding:5px;">
-                                          {$subdomain.path}
-                                        </td>
-                                        <td style="min-width:50px;text-align:center;padding:5px;">
-                                          {if $subdomain.DNS == 1}
-                                            <i class="fas fa-check fa-fw"></i>
-                                          {else}
-                                            {if $domain.domainNS == 'self'}
-                                              <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="setDNSConfirm" />
-                                                <input type="hidden" name="d" value="{$subdomain.domain}" />
-                                                <input type="hidden" name="s" value="{$subdomain.subdomain}" />
-                                                <button title="DNS aktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
-                                                  <i class="fas fa-power-off fa-fw"></i>
-                                                </button>
-                                              </form>
-                                            {else}
-                                              <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="infoDNS" />
-                                                <input type="hidden" name="d" value="{$subdomain.domain}" />
-                                                <button title="DNS Info" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
-                                                  <i class="fas fa-info fa-fw"></i>
-                                                </button>
-                                              </form>
-                                            {/if}
-                                          {/if}
-                                        </td>
-                                        <td style="min-width:50px;text-align:center;padding:5px;">
-                                          {if $subdomain.ssl == 1}
-                                            <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="renewSSLConfirm" />
-                                              <input type="hidden" name="d" value="{$subdomain.subdomain}.{$subdomain.domain}" />
-                                              <button title="Zertifikat erneuern" 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">
-                                                <input type="hidden" name="id" value="{$serviceid}" />
-                                                <input type="hidden" name="modop" value="custom" />
-                                                <input type="hidden" name="a" value="enableSSLConfirm" />
-                                                <input type="hidden" name="d" value="{$subdomain.subdomain}.{$subdomain.domain}" />
-                                                <button title="SSL aktivieren" type="submit" class="fabutton" style="background:none;padding:0px;border:none;">
-                                                  <i class="fas fa-power-off fa-fw"></i>
-                                                </button>
-                                              </form>
-                                            {else}
-                                              <i class="fas fa-times fa-fw" title="DNS nicht gesetzt!"></i>
-                                            {/if}
-                                          {/if}
-                                        </td>
-                                        <td style="min-width:50px;text-align:center;padding:5px;">
-                                          {if $subdomain.ssl == 1}
-                                            {$subdomain.sslexpire}
-                                          {/if}
-                                        </td>
-                                      </tr>
-                                    </table>
-                                  </td>
-                                </tr>
-                              {/foreach}
-                            {/if}
-                          </table>
-                        {/foreach}
-                        <a style="margin-top:1em;"
-                          href="{$systemurl}clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1"
-                          class="btn btn-primary" target=_blank color="white">
-                          <i class="fas fa-sign-in fa-fw"></i> Login
+                                        {/if}
+                                      {/if}
+                                    </td>
+                                    <td style="min-width:50px;text-align:center;padding:5px;">
+                                      {if $subdomain.ssl == 1}
+                                        {$subdomain.sslexpire}
+                                      {/if}
+                                    </td>
+                                  </tr>
+                                {/foreach}
+                              {/if}
+                              <tr>
+                                <td colspan=6 style="border-top:1px solid grey;">
+                                  <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="newSubdomain" />
+                                    <input type="hidden" name="d" value="{$domain.domain}" />
+                                    <button title="Neue Subdomain" type="submit" class="fabutton" style="background:none;border:none;font-size:75%;">
+                                      <i class="fas fa-plus fa-fw"></i> Neue Subdomain
+                                    </button>
+                                  </form>
+                                </td>
+                              </tr>
+                            </table>
+                          {/foreach}
+                        {/if}
+                        <a href="{$systemurl}clientarea.php?action=productdetails&id={$serviceid}&modop=custom&a=newDomain" class="btn btn-primary" style="margin-top:20px;">
+                          <i class="fas fa-plus fa-fw"></i> Neue Domain
                         </a>
                       </div>
                     </div>

+ 143 - 67
cwp7.php

@@ -64,7 +64,7 @@ function cwp7_Testconnection($params) {
 	}
 	return array(
         'success' => false,
-        'error' => $response['msj'],
+        'error' => $response['error_msg'],
     );
 }
 
@@ -99,7 +99,7 @@ function cwp7_ConfigOptions() {
 			__FUNCTION__,
 			$cwp7Packages['status'],
 			'Could not fetch packages',
-			$cwp7Packages['msj']
+			$cwp7Packages['error_msg']
 		);
 		return false;
 	}
@@ -167,16 +167,16 @@ function cwp7_CreateAccount($params) {
 			'user' => $username,
 			'pass' => $params['password'],
 			'email' => $params['clientsdetails']['email'],
-			'inode' => $params["configoption2"],
-            'nofile' => $params["configoption3"],
-            'nproc' => $params["configoption4"],
-            'server_ips'=>$params["serverip"]
+			'inode' => (int) $params["configoption2"],
+            'nofile' => (int) $params["configoption3"],
+            'nproc' => (int) $params["configoption4"],
+            'server_ips'=>$params["serverip"],
 		);
 		$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 		$response = $cwp7->createAccount($data);
 	}
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -196,7 +196,7 @@ function cwp7_CreateAccount($params) {
 function cwp7_TerminateAccount($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->deleteAccount(array('user' => $params['username'], 'email' => $params['clientsdetails']['email']));
-	if($response['status'] != 'OK') {
+	if($response['status'] == 'Error') {
 		return 'Error: ' . $response['msj'];
 	}
 	return 'success';
@@ -219,7 +219,7 @@ function cwp7_SuspendAccount($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->suspendAccount($params['username']);
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -241,7 +241,7 @@ function cwp7_UnsuspendAccount($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->unsuspendAccount($params['username']);
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -290,6 +290,7 @@ function cwp7_ClientArea($params) {
 			$clientInfo['mgmtDomain'] = $domain['domain'];
 			$clientInfo['mgmtEmail'] = $domain['email'];
 		} else {
+			$domain['relpath'] = str_replace('/home/' . $params['username'], '~', $domain['path']);
 			if(array_key_exists($domain['domain'], $sslSites)) {
 				$domain['ssl'] = 1;
 				$domain['sslexpire'] = $sslSites[$domain['domain']]['expire'];
@@ -303,6 +304,7 @@ function cwp7_ClientArea($params) {
 			foreach($subDomains as $subDomain) {
 				if($subDomain['domain'] == $domain['domain']) {
 					$subFQDN = $subDomain['subdomain'] . '.' . $subDomain['domain'];
+					$subDomain['relpath'] = str_replace('/home/' . $params['username'], '~', $subDomain['path']);
 					if(array_key_exists($subFQDN, $sslSites)) {
 						$subDomain['ssl'] = 1;
 						$subDomain['sslexpire'] = $sslSites[$subFQDN]['expire'];
@@ -378,7 +380,7 @@ function cwp7_ChangePassword($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->changePass(array('user' => $params['username'], 'password' => $params['password']));
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -401,9 +403,18 @@ function cwp7_ChangePassword($params) {
  */
 function cwp7_ChangePackage($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
-	$response = $cwp7->modifyAccount(array('user' => $params['username'], 'email' => $params['clientdetails']['email'], 'package' => $params['configoption1']));
+	$data = array(
+		'user' => $params['username'],
+		'email' => $params['clientsdetails']['email'],
+		'package' => $params['configoption1'],
+		'inode' => (int) $params["configoption2"],
+		'openfiles' => (int) $params["configoption3"],
+		'processes' => (int) $params["configoption4"],
+		'server_ips'=> $params["serverip"],
+	);
+	$response = $cwp7->modifyAccount($data);
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -474,25 +485,8 @@ function cwp7_UsageUpdate($params) {
  * @return array
  */
 function cwp7_ClientAreaCustomButtonArray ($params) {
-	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
-	$response = $cwp7->getAccount($params['username']);
-	if($response['status'] != 'OK') {
-		logModuleCall(
-			'cwp7',
-			__FUNCTION__,
-			$params,
-			'debug',
-			$response
-		);
-	}
-	if(count($response['result']['domains']) < 2) {
-		return array(
-			'Neue Domaine' => 'newDomain',
-		);
-	};
 	return array(
-		'Neue Domaine' => 'newDomain',
-		'Neue Subdomaine' => 'newSubdomain',
+		'Neue Domain' => 'newDomain',
 	);
 }
 
@@ -511,12 +505,16 @@ function cwp7_ClientAreaAllowedFunctions() {
 		"Enable SSL" => "enableSSL",
 		"Renew SSL" => "renewSSL",
 		"Set DNS" => "setDNS",
+		"Unset DNS" => "unsetDNS",
 		"Confirm Enable SSL" => "enableSSLConfirm",
 		"Confirm Renew SSL" => "renewSSLConfirm",
 		"Confirm Set DNS" => "setDNSConfirm",
+		"Confirm Unset DNS" => "unsetDNSConfirm",
 		"Info DNS" => "infoDNS",
+		"Info SSL" => "infoSSL",
 		"Add Domain" => "addDomain",
 		"Add Subdomain" => "addSubdomain",
+		"New Subdomain" => "newSubdomain",
 		"Confirm Delete Domain" => "delDomainConfirm",
 		"Delete Domain" => "delDomain",
 		"Confirm Delete Subdomain" => "delSubdomainConfirm",
@@ -536,7 +534,7 @@ function cwp7_ClientAreaAllowedFunctions() {
 function cwp7_newDomain($params) {
 	return array(
         'breadcrumb' => array(
-            'clientarea.php?action=productdetails&id=' . $params['serviceid'] . '&modop=custom&a=newDomain' => 'Neue Domaine',
+            'clientarea.php?action=productdetails&id=' . $params['serviceid'] . '&modop=custom&a=newDomain' => 'Neue Domain',
         ),
         'templatefile' => 'cwp7_add_domain',
     );
@@ -561,7 +559,7 @@ function cwp7_addDomain($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->addDomain($vars);
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -576,32 +574,16 @@ function cwp7_addDomain($params) {
  * @return array template information
  */
 function cwp7_newSubdomain($params) {
-	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
-	$response = $cwp7->getAccount($params['username']);
-	if($response['status'] != 'OK') {
-		logModuleCall(
-			'cwp7',
-			__FUNCTION__,
-			$params,
-			'debug',
-			$response
-		);
-	}
-	$domains = $response['result']['domains'];
-	$clientdomains = array();
-	foreach($domains as $domain){
-		if($domain['domain'] != $params['domain']) {
-			array_push($clientdomains, $domain['domain']);
-		}
+	if(!filter_var($_POST['d'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
+		return 'Error: invalid domain name';
 	}
-
 	return array(
         'breadcrumb' => array(
-            'clientarea.php?action=productdetails&id=' . $params['serviceid'] . '&modop=custom&a=newSubdomain' => 'Neue Subdomaine',
+            'clientarea.php?action=productdetails&id=' . $params['serviceid'] . '&modop=custom&a=newSubdomain' => 'Neue Subdomain',
         ),
 		'templatefile' => 'cwp7_add_subdomain',
 		'vars' => array(
-            'domains' => $clientdomains,
+            'domainselected' => $_POST['d'],
         ),
     );
 }
@@ -622,22 +604,16 @@ function cwp7_addSubdomain($params) {
 	if(!filter_var($_POST['s'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
 		return 'Error: invalid subdomain name';
 	}
+	if($_POST['s'] == 'www') {
+		return 'Error: default Subdomain www wurde bereits automatisch erstellt' ;
+	}
 	$vars['user'] = $params['username'];
 	$vars['name'] = $_POST['s'] . '.' . $_POST['d'];
 	$vars['type'] = 'subdomain';
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->addDomain($vars);
-
-	logModuleCall(
-		'cwp7',
-		__FUNCTION__,
-		$vars,
-		'debug addSubdomain',
-		$response
-	);
-
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -707,7 +683,7 @@ function cwp7_delDomain($params) {
 	$vars['type'] = 'domain';
 	$response = $cwp7->deleteDomain($vars);
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -777,7 +753,7 @@ function cwp7_delSubdomain($params) {
 	$vars['type'] = 'subdomain';
 	$response = $cwp7->deleteDomain($vars);
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -818,7 +794,7 @@ function cwp7_enableSSL($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->addAutoSSL($vars);
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -859,7 +835,7 @@ function cwp7_renewSSL($params) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 	$response = $cwp7->updateAutoSSL($vars);
 	if($response['status'] != 'OK') {
-		return 'Error: ' . $response['msj'];
+		return 'Error: ' . $response['error_msg'];
 	}
 	return 'success';
 }
@@ -891,6 +867,33 @@ function cwp7_setDNSConfirm($params) {
     );
 }
 
+/**
+ * Opens a form to unsset a DNS record for a subdomain or domain of a CWP7 account.
+ *
+ * @param array $params common module parameters
+ *
+ * @see https://developers.whmcs.com/provisioning-modules/supported-functions/
+ *
+ * @return array template information
+ */
+function cwp7_unsetDNSConfirm($params) {
+	if(isset($_POST['s'])){
+		return array(
+			'templatefile' => 'cwp7_unset_DNS_confirm',
+			'vars' => array(
+				'DNSdomain' => $_POST['d'],
+				'DNSsubdomain' => $_POST['s'],
+			),
+		);
+	}
+	return array(
+		'templatefile' => 'cwp7_unset_DNS_confirm',
+		'vars' => array(
+			'DNSdomain' => $_POST['d'],
+		),
+    );
+}
+
 /**
  * Update a DNS zone for a domain setting a new record for a domain or subdomain of a CWP7 account.
  *
@@ -973,6 +976,58 @@ function cwp7_setDNS($params) {
 	return 'success';
 }
 
+/**
+ * Removing a DNS record for a domain or subdomain of a CWP7 account.
+ *
+ * @param array $params common module parameters
+ *
+ * @see https://developers.whmcs.com/provisioning-modules/supported-functions/
+ *
+ * @return string "success" or an error message
+ */
+function cwp7_unsetDNS($params) {
+	if(!filter_var($_POST['d'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
+		return 'Error: invalid domain name';
+	}
+	$domainName = $_POST['d'];
+    $zoneRecords = array();
+	if(isset($_POST['s'])){
+		if(!filter_var($_POST['s'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
+			return 'Error: invalid subdomain name';
+		}
+		$hostName = $_POST['s'] . '.' . $domainName . '.';
+	} else {
+		$hostName = $domainName . '.';
+	}
+	$zoneIDcollection = Capsule::table('dns_manager2_zone')
+		->select('id')
+		->where('name', '=', $domainName)
+		->where('clientid', '=', $params['userid'])
+		->get();
+	$zoneIDobj = $zoneIDcollection[0];
+	$zoneID = $zoneIDobj->{'id'};
+	if(!isset($zoneID)) {
+		return 'Error: Zone for domain ' . $domainName . ' or not owned by client';
+	}
+	$dnsZone = localAPI('dnsmanager', array( 'dnsaction' => 'getZone', 'zone_id' => $zoneID));
+    foreach($dnsZone['data']->records as $record) {
+        if(($record->name != $hostName) || ($record->type != 'A' && $record->type != 'CNAME')) {
+            array_push($zoneRecords, $record);
+        };
+    }
+    $result = localAPI('dnsmanager' ,
+        array(
+            'dnsaction' => 'updateZone',
+            'zone_id' => $zoneID,
+            'records' => $zoneRecords,
+        )
+	);
+    if($result['result'] != 'success') {
+        return 'Error: ' . $result['message'];
+    }
+	return 'success';
+}
+
 /**
  * Opens a form to inform about the DNS status of a subdomain or domain of a CWP7 account.
  *
@@ -996,6 +1051,27 @@ function cwp7_infoDNS($params) {
     );
 }
 
+/**
+ * Opens a form to inform about the SSL status of a subdomain or domain of a CWP7 account.
+ *
+ * @param array $params common module parameters
+ *
+ * @see https://developers.whmcs.com/provisioning-modules/supported-functions/
+ *
+ * @return array template information
+ */
+function cwp7_infoSSL($params) {
+	if(!filter_var($_POST['d'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
+		return 'Error: invalid domain name';
+	}
+	return array(
+        'templatefile' => 'cwp7_help_ssl',
+        'vars' => array(
+            'infodomain' => $_POST['d'],
+        ),
+    );
+}
+
 /**
  * Ask nameservers for a IP adress of a given host.
  *

+ 5 - 4
cwp7_add_domain.tpl

@@ -1,4 +1,4 @@
-<h2>Neue Domaine erstellen</h2>
+<h2>Neue Domain erstellen</h2>
 <hr>
 <div class="tab-content margin-bottom">
 	<div class="section">
@@ -27,10 +27,11 @@
 							<tr>
 								<td>
 									<div class="alert alert-info">
-										Geben Sie den Namen der neuen Hosting Domaine ein. 
-										Diese Domaine wird in Ihrem Hosting-Account erstellt. 
+										Geben Sie den Namen der neuen Hosting Domain ein. 
+										Diese Domain wird in Ihrem Hosting-Account erstellt. 
+										Dabei wird auch automatisch eine <b>www</b> Subdomain hinzugefügt. 
 										Einen DNS Eintrag, ein SSL Zertifikat oder weitere Subdomains 
-										für Ihre neue Domaine können Sie danach in der Übersicht erstellen.
+										für Ihre neue Domain können Sie danach in der Übersicht erstellen.
 									</div>
 								</td>
 							</tr>

+ 6 - 10
cwp7_add_subdomain.tpl

@@ -1,4 +1,4 @@
-<h2>Neue Subdomaine erstellen</h2>
+<h2>Neue Subdomain erstellen</h2>
 <hr>
 <div class="tab-content margin-bottom">
 	<div class="section">
@@ -27,10 +27,9 @@
 							<tr>
 								<td>
 									<div class="alert alert-info">
-										Geben Sie den Namen der neuen Subdomaine ein 
-										und wählen Sie zugehörige Domaine aus. 
+										Geben Sie den Namen der neuen Subdomain für {$domainselected} ein.
 										Einen DNS Eintrag und ein SSL Zertifikat für Ihre neue 
-										Subdomaine können Sie danach in der Übersicht erstellen.
+										Subdomain können Sie danach in der Übersicht erstellen.
 									</div>
 								</td>
 							</tr>
@@ -40,12 +39,9 @@
 										<input type="hidden" name="id" value="{$id}" />
 										<input type="hidden" name="modop" value="custom" />
 										<input type="hidden" name="a" value="addSubdomain" />
-										<input style="margin-right:20px;" class="form-control" type="text" maxlength=256 name="s" /> 
-										<select style="margin-right:20px;" class="form-control" name="d">
-											{foreach $domains as $domain}
-												<option value="{$domain}">{$domain}</option>
-											{/foreach}
-										</select> 
+										<input type="hidden" name="d" value="{$domainselected}" />
+										<input style="margin-right:5px;" class="form-control" type="text" maxlength=256 name="s" />
+										<input style="margin-left:5px;margin-right:20px;" class="form-control" type="text" maxlength=256 value=".{$domainselected}" disabled /> 
 										<button type="submit" class="btn btn-primary btn-block">
 											Erstellen
 										</button>

+ 1 - 1
cwp7_del_domain_confirm.tpl

@@ -1,4 +1,4 @@
-<h2>Domaine löschen</h2>
+<h2>Domain löschen</h2>
 <hr>
 <div class="tab-content margin-bottom">
 	<div class="section">

+ 1 - 1
cwp7_del_subdomain_confirm.tpl

@@ -1,4 +1,4 @@
-<h2>Subdomaine löschen</h2>
+<h2>Subdomain löschen</h2>
 <hr>
 <div class="tab-content margin-bottom">
 	<div class="section">

+ 10 - 4
cwp7_help_dns.tpl

@@ -1,4 +1,4 @@
-<h2>Domaine Status</h2>
+<h2>Domain Status</h2>
 <hr>
 <div class="tab-content margin-bottom">
     <div class="section">
@@ -27,11 +27,17 @@
                             <tr>
                                 <td>
                                     <div class="alert alert-info">
-                                        Um Ihre Webseite {$infodomain} zu erreichen, muss der DNS Name von {$infodomain} auf den Thurdata Webserver zeigen.<br />
+                                        Änderungen am DNS über Ihr Thurdata Portal sind nur möglich, 
+                                        wenn die Domain {$infodomain} bei Thurdata registriert ist.
                                         {if $cwp7nameserver == 'none'}
-                                            Aktuell ist Ihre Domain {$infodomain} nicht registriert. Klicken Sie auf <b>Domain registrieren</b>, um bei uns Ihre neue Domaine zu registrieren!
+                                            Aktuell ist Ihre Domain {$infodomain} nicht registriert. 
+                                            Klicken Sie auf <b>Domain registrieren</b>, 
+                                            um bei uns Ihre neue Domain zu registrieren!
                                         {else}
-                                            Ihre Domaine {$infodomain} ist aktuell nicht bei Thurdata registriert. Klicken Sie auf <b>Domain transferieren</b>, um Ihre Domaine bei Thurdata zu registrieren, oder nutzen Sie die Werkzeuge Ihres aktuellen Registrars.
+                                            Ihre Domain {$infodomain} ist aktuell nicht bei Thurdata registriert. 
+                                            Klicken Sie auf <b>Domain transferieren</b>, 
+                                            um Ihre Domain bei Thurdata zu registrieren, 
+                                            oder nutzen Sie die DNS Werkzeuge Ihres aktuellen Registrars.
                                         {/if}
                                     </div>
                                 </td>

+ 51 - 0
cwp7_help_ssl.tpl

@@ -0,0 +1,51 @@
+<h2>Domain Status</h2>
+<hr>
+<div class="tab-content margin-bottom">
+    <div class="section">
+        <div class="product-details">
+            <div class="row row-eq-height row-eq-height-sm">
+                <div class="col-md-6">
+                    <div class="product-holder product-status-{$rawstatus|strtolower}" style="min-height: unset; height:210px">
+                        <div class="product-content">
+                            <div class="product-image">
+                                <div class="feature-icon">
+                                    <img src="/templates/croster/thurdata/productgroups/{$gid}.svg" class="img-fluid" style="height:100px;">
+                                </div>
+                            </div>
+                            <h4><small>Hosting Account</small> - {$domain}</h4>
+                            <div class="status-sticker-wrapper">
+                                <div class="status-sticker product-status-{$rawstatus|strtolower}">
+                                    {$status}
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+                <div class="col-md-6">
+                    <table width="100%" border="0">
+                        <tbody>
+                            <tr>
+                                <td>
+                                    <div class="alert alert-info">
+                                        Um ein gültiges Zertifikat für {$infodomain} zu erstellen, muss der DNS Name von {$infodomain} auf den Thurdata Webserver zeigen. 
+                                        Bitte aktivieren Sie zuerst das DNS für {$infodomain}!
+                                    </div>
+                                </td>
+                            </tr>
+                            <tr>
+                                <td>
+                                    <form method="post" action="clientarea.php?action=productdetails">
+                                        <input type="hidden" name="id" value="{$id}" />
+                                        <button type="submit" class="btn btn-default btn-block">
+                                            {$LANG.clientareabacklink}
+                                        </button>
+                                    </form>
+                                </td>
+                            </tr>
+                        </tbody>
+                    </table>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>

+ 1 - 1
cwp7_set_DNS_confirm.tpl

@@ -27,7 +27,7 @@
 							<tr>
 								<td>
 									<div class="alert alert-warning">
-										DNS Aktivierung für Domain<br />
+										DNS Aktivierung für Domain&nbsp;
 										<b>{if $DNSsubdomain}{$DNSsubdomain}.{/if}{$DNSdomain}</b><br /><br />
 										<i class="fa fa-exclamation-circle"></i>
 										Achtung: Beachten Sie bitte, das die die Aktivierung erst dann in der Übersicht angezeigt wird, wenn die DNS-Propagation beendet wurde. Versuchen Sie eine Aktivierung daher nicht mehrmals hintereinander! 

+ 71 - 0
cwp7_unset_DNS_confirm.tpl

@@ -0,0 +1,71 @@
+<h2>DNS deaktivieren</h2>
+<hr>
+<div class="tab-content margin-bottom">
+	<div class="section">
+		<div class="product-details">
+			<div class="row row-eq-height row-eq-height-sm">
+				<div class="col-md-6">
+					<div class="product-holder product-status-{$rawstatus|strtolower}" style="min-height: unset; height:210px">
+						<div class="product-content">
+							<div class="product-image">
+								<div class="feature-icon">
+									<img src="/templates/croster/thurdata/productgroups/{$gid}.svg" class="img-fluid" style="height:100px;">
+								</div>
+							</div>
+							<h4><small>Hosting Account</small> - {$domain}</h4>
+							<div class="status-sticker-wrapper">
+								<div class="status-sticker product-status-{$rawstatus|strtolower}">
+									{$status}
+								</div>
+							</div>
+						</div>
+					</div>
+				</div>
+				<div class="col-md-6">
+					<table width="100%" border="0">
+						<tbody>
+							<tr>
+								<td>
+									<div class="alert alert-warning">
+										DNS Deaktivierung für Domain&nbsp;
+										<b>{if $DNSsubdomain}{$DNSsubdomain}.{/if}{$DNSdomain}</b><br /><br />
+										<i class="fa fa-exclamation-circle"></i>
+										Achtung: Beachten Sie bitte, das die Deaktivierung erst dann in der Übersicht angezeigt wird, wenn die TTL des Eintrags abgelaufen ist. Versuchen Sie eine Deaktivierung daher nicht mehrmals hintereinander! 
+										</div>
+								</td>
+							</tr>
+							<tr>
+								<td>						
+									<form style="display:flex;flex-direction:row;align-items:center;justify-content: space-between;" method="post" action="clientarea.php?action=productdetails">
+										<input type="hidden" name="id" value="{$id}" />
+										<input type="hidden" name="modop" value="custom" />
+										<input type="hidden" name="a" value="unsetDNS" />
+										<input type="hidden" name="d" value="{$DNSdomain}" />
+										{if $DNSsubdomain}
+											<input type="hidden" name="s" value="{$DNSsubdomain}" />
+										{/if}
+										<button type="submit" class="btn btn-primary btn-block">
+											Deaktivieren
+										</button>
+									</form>
+								</td>
+							</tr>
+						</tbody>
+					</table>
+				</div>
+			</div>
+		</div>
+	</div>
+	<div class="section">
+		<div class="row row-eq-height row-eq-height-sm">
+			<div class="col-md-4">
+				<form method="post" action="clientarea.php?action=productdetails">
+					<input type="hidden" name="id" value="{$id}" />
+					<button type="submit" class="btn btn-default btn-block">
+							{$LANG.clientareabacklink}
+					</button>
+				</form>
+			</div>
+		</div>
+	</div>
+</div>