plehex.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?php
  2. switch ($extra) {
  3. case 'invite':
  4. $button = '
  5. <tr>
  6. <td align="center" valign="top">
  7. <div>
  8. <a href="' . $this->getServerPath(true) . '?invite=' . $email['inviteCode'] . '" rel="noopener noreferrer" style="background-color: #e5a00d; border: 2px solid #E5A00D; border-radius: 100px; color: #ffffff; display: inline-block; font-family: \'Roboto\', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 44px; text-align: center; text-decoration: none; width: 260px; -webkit-text-size-adjust: none; mso-hide: all;">Use Invite Code</a>
  9. </div>
  10. </td>
  11. </tr>
  12. <tr>
  13. <td align="center" style="padding-top: 30px;" valign="top"></td>
  14. </tr>
  15. ';
  16. break;
  17. case 'reset':
  18. $button = '
  19. <tr>
  20. <td align="center" valign="top">
  21. <div>
  22. <a href="' . $this->getServerPath(true) . '" rel="noopener noreferrer" style="background-color: #e5a00d; border: 2px solid #E5A00D; border-radius: 100px; color: #ffffff; display: inline-block; font-family: \'Roboto\', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 44px; text-align: center; text-decoration: none; width: 260px; -webkit-text-size-adjust: none; mso-hide: all;">Goto My Site</a>
  23. </div>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td align="center" style="padding-top: 30px;" valign="top"></td>
  28. </tr>
  29. ';
  30. break;
  31. default:
  32. $button = null;
  33. break;
  34. }
  35. $email = '
  36. <!DOCTYPE html>
  37. <html>
  38. <head>
  39. <meta content="text/html; charset=utf-8" http-equiv="Content-type">
  40. <meta content="IE=Edge" http-equiv="X-UA-Compatible">
  41. <base target="_blank">
  42. <style class="icloud-message-base-styles">
  43. @font-face { font-family: \'SFNSText\'; src: local(".SFNSText-Light"), url(\'/fonts/SFNSText-Light.woff\') format(\'woff\'); font-weight: 300; } @font-face { font-family: \'SFNSText\'; src: local(".SFNSText-Medium"), url(\'/fonts/SFNSText-Medium.woff\') format(\'woff\'); font-weight: 500; } body { background-color: #ffffff; padding: 13px 20px 0px 20px; font: 15px \'SFNSText\',\'Helvetica Neue\', Helvetica, sans-serif; font-weight: 300; line-height: 1.4; margin: 0px; overflow: hidden; word-wrap: break-word; } blockquote[type=cite].quoted-plain-text{ line-height:1.5; padding-bottom: 0px; white-space: normal; } blockquote[type=cite] { border-left: 2px solid #003399; margin:0; padding: 0 12px 0 12px; font-size: 15px; color: #003399; } blockquote[type=cite] blockquote[type=cite] { border-left: 2px solid #006600; margin:0; padding: 0 12px 0 12px; font-size: 15px; color: #006600 } blockquote[type=cite] blockquote[type=cite] blockquote[type=cite] { border-left : 2px solid #660000; margin:0; padding: 0 12px 0 12px; font-size: 15px; color: #660000 } pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; white-space: pre-wrap !important; word-wrap: normal !important; font-size: 15px; } .pre-a660ebf3-02d8-4365-96dd-f1368f2dba37-orientation-2{ transform:scaleX(-1); -webkit-transform:scaleX(-1); -ms-transform:scaleX(-1); } .pre-a660ebf3-02d8-4365-96dd-f1368f2dba37-orientation-3{ transform:rotate(180deg); -webkit-transform:rotate(180deg); -ms-transform:rotate(180deg); } .pre-a660ebf3-02d8-4365-96dd-f1368f2dba37-orientation-4{ transform:rotate(180deg) scaleX(-1); -webkit-transform:rotate(180deg) scaleX(-1); -ms-transform:rotate(180deg) scaleX(-1); } .pre-a660ebf3-02d8-4365-96dd-f1368f2dba37-orientation-5{ transform:rotate(270deg) scaleX(-1); -webkit-transform:rotate(270deg) scaleX(-1); -ms-transform:rotate(270deg) scaleX(-1); } .pre-a660ebf3-02d8-4365-96dd-f1368f2dba37-orientation-6{ transform:rotate(90deg); -webkit-transform:rotate(90deg); -ms-transform:rotate(90deg); } .pre-a660ebf3-02d8-4365-96dd-f1368f2dba37-orientation-7{ transform:rotate(90deg) scaleX(-1); -webkit-transform:rotate(90deg) scaleX(-1); -ms-transform:rotate(90deg) scaleX(-1); } .pre-a660ebf3-02d8-4365-96dd-f1368f2dba37-orientation-8{ transform:rotate(270deg); -webkit-transform:rotate(270deg); -ms-transform:rotate(270deg); } .x-apple-maildropbanner { margin-top:-13px; } a.view-message-icloud-share, a.view-message-icloud-share:visited { cursor: pointer; color: #0000EE; text-decoration: underline; } a.view-message-icloud-share:hover{ text-decoration: underline; }
  44. </style>
  45. <style class="existing-message-styles" type="text/css">
  46. @media screen {
  47. @font-face {
  48. font-family: \'Open Sans\';
  49. font-style: normal;
  50. font-weight: 300;
  51. src: local(\'Open Sans Light\'), local(\'OpenSans-Light\'), url(https://themes.googleusercontent.com/static/fonts/opensans/v10/DXI1ORHCpsQm3Vp6mXoaTaRDOzjiPcYnFooOUGCOsRk.woff) format(\'woff\');
  52. }
  53. @font-face {
  54. font-family: \'Open Sans\';
  55. font-style: normal;
  56. font-weight: 400;
  57. src: local(\'Open Sans\'), local(\'OpenSans\'), url(https://themes.googleusercontent.com/static/fonts/opensans/v10/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff) format(\'woff\');
  58. }
  59. @font-face {
  60. font-family: \'Open Sans\';
  61. font-style: normal;
  62. font-weight: 700;
  63. src: local(\'Open Sans Bold\'), local(\'OpenSans-Bold\'), url(https://themes.googleusercontent.com/static/fonts/opensans/v10/k3k702ZOKiLJc3WVjuplzHhCUOGz7vYGh680lGh-uXM.woff) format(\'woff\');
  64. }
  65. @font-face {
  66. font-family: \'Roboto\';
  67. font-style: normal;
  68. font-weight: 400;
  69. src: local(\'Roboto\'), local(\'Roboto-Regular\'), url(https://fonts.gstatic.com/s/roboto/v15/CrYjSnGjrRCn0pd9VQsnFOvvDin1pK8aKteLpeZ5c0A.woff) format(\'woff\');
  70. }
  71. @font-face {
  72. font-family: \'Roboto\';
  73. font-style: normal;
  74. font-weight: 700;
  75. src: local(\'Roboto Bold\'), local(\'Roboto-Bold\'), url(https://fonts.gstatic.com/s/roboto/v15/d-6IYplOFocCacKzxwXSOLO3LdcAZYWl9Si6vvxL-qU.woff) format(\'woff\');
  76. }
  77. }
  78. #outlook a {padding:0;}
  79. body{width:100% !important; min-width: 100% !important; margin:0; padding:0; -webkit-text; size-adjust:100%; -ms-text-size-adjust:100%; -webkit-font-smoothing: antialiased; font-smoothing: antialiased; text-rendering: optimizeLegibility;}
  80. .ReadMsgBody {width: 100%;}
  81. .ExternalClass {width:100%;}
  82. .backgroundTable {margin:0 auto; padding:0; width:100%;!important;}
  83. table td {border-collapse: collapse;}
  84. .ExternalClass * {line-height: 115%;}
  85. b {font-weight: 700;}
  86. ul {line-height: 19px; padding-top: 8px;}
  87. li {padding-bottom: 8px; line-height: 19px;}
  88. @-ms-viewport{width:device-width}
  89. @media screen and (max-device-width: 680px), screen and (max-width: 680px) {
  90. .header-title {font-size: 16px;}
  91. .header img {width: 70px;}
  92. *[class="50p"] {width:100% !important; height:auto !important; display: block;}
  93. *[class="30p"] {width:100% !important; height:auto !important; display: block;}
  94. *[class="25p"] {width:100% !important; height:auto !important; display: inline-block;}
  95. *[class="100p"] {width:100% !important; height:auto !important;}
  96. *[class="100pnopad"] {width:100% !important; height:auto !important;}
  97. *[class="container-mobile"] {padding: 40px 25px !important;}
  98. *[class="container-mobile-header"] {padding: 25px !important;}
  99. *[class="container-mobile-alt"] {padding: 0px 25px 40px 25px !important;}
  100. *[class="container-mobile-nopad"] {padding: 40px 25px 15px 25px !important;}
  101. *[class="container-mobile-flush"] {padding: 40px 25px 0px 25px !important;}
  102. *[class="container-mobile-flush-top"] {padding: 0px 25px 40px 25px !important;}
  103. *[class="title"] {font-size: 28px !important; line-height: 34px !important;}
  104. *[class="image-icon"] {padding-top: 30px; padding-bottom: 10px !important;}
  105. *[class="image-icon-top"] {padding-bottom: 15px !important;}
  106. *[class="icon"] {padding-bottom: 5px !important;}
  107. *[class="logo"] {padding-top: 20px !important;}
  108. *[class="logo-alt"] {padding-top: 0px !important;}
  109. *[class="yolo"] {width:87% !important; height:auto !important; display: block; margin-bottom: 20px;}
  110. }
  111. </style>
  112. <style class="icloud-message-dynamic-styles">
  113. img._auto-scale, img._stretch {max-width: 674px !important;width: auto !important; height: auto !important; } span.body-text-content {white-space:pre-wrap;} iframe.attachment-pdf {width: 669px; height:1045px;}._stretch {max-width: 674px ; } ._mail-body {width:674px; }
  114. </style>
  115. <title></title>
  116. </head>
  117. <body style="width:100% !important; min-width: 100% !important; margin: 0; padding: 0;">
  118. <table bgcolor="#282A2D" border="0" cellpadding="0" cellspacing="0" class="100p" style="background-color: #282a2d; min-width: 100%; width: 100%;" width="100%">
  119. <tbody>
  120. <tr>
  121. <td align="center" class="container-mobile-header" style="padding: 20px 40px;" valign="top">
  122. <table border="0" cellpadding="0" cellspacing="0" class="100p" style="width: 600px;" width="600">
  123. <tbody>
  124. <tr>
  125. <td align="center" class="header" valign="top">
  126. <a href="' . $this->getServerPath(true) . '" rel="noopener noreferrer"><img border="0" src="' . $this->config['PHPMAILER-logo'] . '" style="display: block;" width="50%"></a>
  127. </td>
  128. </tr>
  129. </tbody>
  130. </table>
  131. </td>
  132. </tr>
  133. </tbody>
  134. </table>
  135. <table bgcolor="#404952" border="0" cellpadding="0" cellspacing="0" class="100p" style="background-color: #404952; min-width: 100%;" width="100%">
  136. <tbody>
  137. <tr>
  138. <td align="center" class="container-mobile" style="padding: 20px 25px 0px 25px;" valign="top">
  139. <table border="0" cellpadding="0" cellspacing="0" class="100p" style="width: 600px;" width="600">
  140. <tbody>
  141. <tr>
  142. <td align="center" class="title" style="font-size: 34px; line-height: 40px; font-family: \'Open Sans\', Helvetica, Arial, sans-serif; color: #e5a00d; font-weight: 300; letter-spacing: -1px; padding-bottom: 20px;" valign="top">
  143. <div class="100p" style="width: 400px;">
  144. ' . $subject . '
  145. </div>
  146. </td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. </td>
  151. </tr>
  152. </tbody>
  153. </table>
  154. <table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" class="100p" style="background-color: #ffffff; min-width: 100%;" width="100%">
  155. <tbody>
  156. <tr>
  157. <td align="center" class="container-mobile-flush" style="padding-top: 60px; padding-right: 25px; padding-left: 25px;" valign="top">
  158. <table border="0" cellpadding="0" cellspacing="0" class="100p" style="width: 600px;" width="600">
  159. <tbody>
  160. <tr>
  161. <td align="center" style="font-size: 15px; line-height: 20px; font-family: \'Roboto\', Helvetica, Arial, sans-serif; color: #868c96; font-weight: 400; padding-bottom: 20px;" valign="top">' . $body . '</td>
  162. </tr>
  163. ' . $button . '
  164. </tbody>
  165. </table>
  166. </td>
  167. </tr>
  168. </tbody>
  169. </table>
  170. </body>
  171. </html>
  172. ';