root 4 年之前
父節點
當前提交
a71f106902
共有 2 個文件被更改,包括 21 次插入16 次删除
  1. 16 16
      templates/clientarea.tpl
  2. 5 0
      zimbraAddressAvailable.php

+ 16 - 16
templates/clientarea.tpl

@@ -66,39 +66,39 @@
               <div class="product-info" style="min-height: unset; height:210px;">
                 <table width="100%" border="0">
                     <tr>
-                        <td>{$LANG.clientareahostingregdate}</td>
-                        <td>{$regdate}</td>
+                        <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingregdate}</td>
+                        <td class="list-text" style="font-size: 85%;">{$regdate}</td>
                     </tr>
                     {if $billingcycle != 'Gratis-Account'}
                         <tr>
-                            <td>{$LANG.firstpaymentamount}</td>
-                            <td>{$firstpaymentamount}</td>
+                            <td class="list-heading" style="font-size: 85%;">{$LANG.firstpaymentamount}</td>
+                            <td class="list-text"  style="font-size: 85%;">{$firstpaymentamount}</td>
                         </tr>
                         <tr>
-                            <td>{$LANG.recurringamount}</td>
-                            <td>{$recurringamount}</td>
+                            <td class="list-heading" style="font-size: 85%;">{$LANG.recurringamount}</td>
+                            <td class="list-text" style="font-size: 85%;">{$recurringamount}</td>
                         </tr>
                         <tr>
-                            <td>{$LANG.orderbillingcycle}</td>
-                            <td>{$billingcycle}</td>
+                            <td class="list-heading" style="font-size: 85%;">{$LANG.orderbillingcycle}</td>
+                            <td class="list-text" style="font-size: 85%;">{$billingcycle}</td>
                         </tr>
                         <tr>
-                            <td>{$LANG.clientareahostingnextduedate}</td>
-                            <td>{$nextduedate}</td>
+                            <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingnextduedate}</td>
+                            <td class="list-text" style="font-size: 85%;">{$nextduedate}</td>
                         </tr>
                         <tr>
-                            <td>{$LANG.orderpaymentmethod}</td>
-                            <td>{$paymentmethod}</td>
+                            <td class="list-heading" style="font-size: 85%;">{$LANG.orderpaymentmethod}</td>
+                            <td class="list-text" style="font-size: 85%;">{$paymentmethod}</td>
                         </tr>
                   {else}
                         <tr>
-                            <td class="list-heading"><strong>Trial Account</strong></td>
+                            <td class="list-heading" style="font-size: 85%;"><strong>Trial Account</strong></td>
                             {if ($smarty.now - ($regdate|@strtotime)) > 950400} {* wenn Heute - RegisterDatum > 11 Tage *}
-                                <td class="list-text" style="color:yellow;">Endet in {(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)} Tagen</td>
+                                <td class="list-text" style="color:yellow; font-size:85%">Endet in {(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)} Tagen</td>
                             {elseif ($smarty.now - ($regdate|@strtotime)) > 1123200} {* wenn Heute - RegisterDatum > 13 Tage *}
-                                <td class="list-text" style="color:red;">Letzter Tag der Trial Periode</td>
+                                <td class="list-text" style="color:red; font-size:85%;">Letzter Tag der Trial Periode</td>
                             {else}
-                                <td class="list-text">Endet in {(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)} Tagen</td>
+                                <td class="list-text" style="font-size: 85%;">Endet in {(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)} Tagen</td>
                             {/if}
                         </tr>
                         <tr>

+ 5 - 0
zimbraAddressAvailable.php

@@ -26,6 +26,11 @@ use WHMCS\Database\Capsule;
 $whmcs = App::self();
 $accountName = $_GET['name'] . '@' .  $_GET['domain'];
 $productID = $_GET['pid'];
+if(!filter_var($accountName, FILTER_VALIDATE_EMAIL)) {
+    echo "invalid";
+    exit;
+}
+
 $accessData = array('zimbraServer' => '', 'adminUser' => '', 'adminPass' => '');
 $serverGroupIDObj = Capsule::table('tblproducts')
 	->select('servergroup')