ソースを参照

New Email Template

causefx 8 年 前
コミット
389689aea8
10 ファイル変更579 行追加385 行削除
  1. 390 0
      functions.php
  2. 2 4
      index.php
  3. 21 0
      lang/de.ini
  4. 21 0
      lang/en.ini
  5. 21 0
      lang/es.ini
  6. 21 0
      lang/fr.ini
  7. 21 0
      lang/it.ini
  8. 21 0
      lang/nl.ini
  9. 21 0
      lang/pl.ini
  10. 40 381
      user.php

+ 390 - 0
functions.php

@@ -3548,5 +3548,395 @@ function customCSS(){
 	}
 }
 
+function orgEmail($header = "Message From Admin", $title = "Important Message", $user = "Organizr User", $mainMessage = "", $button = null, $buttonURL = null, $subTitle = "", $subMessage = ""){
+	return '
+	<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
+<head>
+    <!--[if gte mso 9]><xml>
+<o:OfficeDocumentSettings>
+<o:AllowPNG/>
+<o:PixelsPerInch>96</o:PixelsPerInch>
+</o:OfficeDocumentSettings>
+</xml><![endif]-->
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <meta name="viewport" content="width=device-width">
+    <!--[if !mso]><!-->
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <!--<![endif]-->
+    <title></title>
+    <!--[if !mso]><!-- -->
+    <link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
+    <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
+    <!--<![endif]-->
+    <style type="text/css" id="media-query">
+        body {
+            margin: 0;
+            padding: 0;
+        }
+        table,
+        tr,
+        td {
+            vertical-align: top;
+            border-collapse: collapse;
+        }
+        .ie-browser table,
+        .mso-container table {
+            table-layout: fixed;
+        }
+        * {
+            line-height: inherit;
+        }
+        a[x-apple-data-detectors=true] {
+            color: inherit !important;
+            text-decoration: none !important;
+        }
+        [owa] .img-container div,
+        [owa] .img-container button {
+            display: block !important;
+        }
+        [owa] .fullwidth button {
+            width: 100% !important;
+        }
+        [owa] .block-grid .col {
+            display: table-cell;
+            float: none !important;
+            vertical-align: top;
+        }
+        .ie-browser .num12,
+        .ie-browser .block-grid,
+        [owa] .num12,
+        [owa] .block-grid {
+            width: 615px !important;
+        }
+        .ExternalClass,
+        .ExternalClass p,
+        .ExternalClass span,
+        .ExternalClass font,
+        .ExternalClass td,
+        .ExternalClass div {
+            line-height: 100%;
+        }
+        .ie-browser .mixed-two-up .num4,
+        [owa] .mixed-two-up .num4 {
+            width: 204px !important;
+        }
+        .ie-browser .mixed-two-up .num8,
+        [owa] .mixed-two-up .num8 {
+            width: 408px !important;
+        }
+        .ie-browser .block-grid.two-up .col,
+        [owa] .block-grid.two-up .col {
+            width: 307px !important;
+        }
+        .ie-browser .block-grid.three-up .col,
+        [owa] .block-grid.three-up .col {
+            width: 205px !important;
+        }
+        .ie-browser .block-grid.four-up .col,
+        [owa] .block-grid.four-up .col {
+            width: 153px !important;
+        }
+        .ie-browser .block-grid.five-up .col,
+        [owa] .block-grid.five-up .col {
+            width: 123px !important;
+        }
+        .ie-browser .block-grid.six-up .col,
+        [owa] .block-grid.six-up .col {
+            width: 102px !important;
+        }
+        .ie-browser .block-grid.seven-up .col,
+        [owa] .block-grid.seven-up .col {
+            width: 87px !important;
+        }
+        .ie-browser .block-grid.eight-up .col,
+        [owa] .block-grid.eight-up .col {
+            width: 76px !important;
+        }
+        .ie-browser .block-grid.nine-up .col,
+        [owa] .block-grid.nine-up .col {
+            width: 68px !important;
+        }
+        .ie-browser .block-grid.ten-up .col,
+        [owa] .block-grid.ten-up .col {
+            width: 61px !important;
+        }
+        .ie-browser .block-grid.eleven-up .col,
+        [owa] .block-grid.eleven-up .col {
+            width: 55px !important;
+        }
+        .ie-browser .block-grid.twelve-up .col,
+        [owa] .block-grid.twelve-up .col {
+            width: 51px !important;
+        }
+        @media only screen and (min-width: 635px) {
+            .block-grid {
+                width: 615px !important;
+            }
+            .block-grid .col {
+                display: table-cell;
+                Float: none !important;
+                vertical-align: top;
+            }
+            .block-grid .col.num12 {
+                width: 615px !important;
+            }
+            .block-grid.mixed-two-up .col.num4 {
+                width: 204px !important;
+            }
+            .block-grid.mixed-two-up .col.num8 {
+                width: 408px !important;
+            }
+            .block-grid.two-up .col {
+                width: 307px !important;
+            }
+            .block-grid.three-up .col {
+                width: 205px !important;
+            }
+            .block-grid.four-up .col {
+                width: 153px !important;
+            }
+            .block-grid.five-up .col {
+                width: 123px !important;
+            }
+            .block-grid.six-up .col {
+                width: 102px !important;
+            }
+            .block-grid.seven-up .col {
+                width: 87px !important;
+            }
+            .block-grid.eight-up .col {
+                width: 76px !important;
+            }
+            .block-grid.nine-up .col {
+                width: 68px !important;
+            }
+            .block-grid.ten-up .col {
+                width: 61px !important;
+            }
+            .block-grid.eleven-up .col {
+                width: 55px !important;
+            }
+            .block-grid.twelve-up .col {
+                width: 51px !important;
+            }
+        }
+        @media (max-width: 635px) {
+            .block-grid,
+            .col {
+                min-width: 320px !important;
+                max-width: 100% !important;
+            }
+            .block-grid {
+                width: calc(100% - 40px) !important;
+            }
+            .col {
+                width: 100% !important;
+            }
+            .col>div {
+                margin: 0 auto;
+            }
+            img.fullwidth {
+                max-width: 100% !important;
+            }
+        }
+    </style>
+</head>
+<body class="clean-body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #FFFFFF">
+    <!--[if IE]><div class="ie-browser"><![endif]-->
+    <!--[if mso]><div class="mso-container"><![endif]-->
+    <div class="nl-container" style="min-width: 320px;Margin: 0 auto;background-color: #FFFFFF">
+        <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #FFFFFF;"><![endif]-->
+        <div style="background-color:#333333;">
+            <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
+                class="block-grid ">
+                <div style="border-collapse: collapse;display: table;width: 100%;">
+                    <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#333333;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
+                    <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:0px; padding-bottom:0px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
+                    <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
+                        <div style="background-color: transparent; width: 100% !important;">
+                            <!--[if (!mso)&(!IE)]><!-->
+                            <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:0px; padding-bottom:0px; padding-right: 0px; padding-left: 0px;">
+                                <!--<![endif]-->
+                                <div align="left" class="img-container left fullwidth" style="padding-right: 30px;	padding-left: 30px;">
+                                    <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 30px; padding-left: 30px;" align="left"><![endif]-->
+                                    <img class="left fullwidth" align="left" border="0" src="https://sonflix.com/images/organizr-logo-h.png" alt="Image" title="Image"
+                                        style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: 0;height: auto;float: none;width: 100%;max-width: 555px"
+                                        width="555">
+                                    <!--[if mso]></td></tr></table><![endif]-->
+                                </div>
+                                <!--[if (!mso)&(!IE)]><!-->
+                            </div>
+                            <!--<![endif]-->
+                        </div>
+                    </div>
+                    <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
+                </div>
+            </div>
+        </div>
+        <div style="background-color:#333333;">
+            <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
+                class="block-grid ">
+                <div style="border-collapse: collapse;display: table;width: 100%;">
+                    <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#333333;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
+                    <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:0px; padding-bottom:0px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
+                    <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
+                        <div style="background-color: transparent; width: 100% !important;">
+                            <!--[if (!mso)&(!IE)]><!-->
+                            <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:0px; padding-bottom:0px; padding-right: 0px; padding-left: 0px;">
+                                <!--<![endif]-->
+                                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top: 0px; padding-bottom: 0px;"><![endif]-->
+                                <div style="font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#FFFFFF; padding-right: 0px; padding-left: 0px; padding-top: 0px; padding-bottom: 0px;">
+                                    <div style="font-size:12px;line-height:14px;color:#FFFFFF;font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;text-align:left;">
+                                        <p style="margin: 0;font-size: 12px;line-height: 14px;text-align: center"><span style="font-size: 16px; line-height: 19px;"><strong><span style="line-height: 19px; font-size: 16px;">'.$header.'</span></strong>
+                                            </span>
+                                        </p>
+                                    </div>
+                                </div>
+                                <!--[if mso]></td></tr></table><![endif]-->
+                                <!--[if (!mso)&(!IE)]><!-->
+                            </div>
+                            <!--<![endif]-->
+                        </div>
+                    </div>
+                    <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
+                </div>
+            </div>
+        </div>
+        <div style="background-color:#393939;">
+            <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
+                class="block-grid ">
+                <div style="border-collapse: collapse;display: table;width: 100%;">
+                    <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#393939;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
+                    <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
+                    <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
+                        <div style="background-color: transparent; width: 100% !important;">
+                            <!--[if (!mso)&(!IE)]><!-->
+                            <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;">
+                                <!--<![endif]-->
+                                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 30px; padding-left: 30px; padding-top: 0px; padding-bottom: 0px;"><![endif]-->
+                                <div style="font-family:\'Ubuntu\', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#FFFFFF; padding-right: 30px; padding-left: 30px; padding-top: 0px; padding-bottom: 0px;">
+                                    <div style="font-family:Ubuntu, Tahoma, Verdana, Segoe, sans-serif;font-size:12px;line-height:14px;color:#FFFFFF;text-align:left;">
+                                        <p style="margin: 0;font-size: 12px;line-height: 14px;text-align: center"><span style="font-size: 16px; line-height: 19px;"><strong>'.$title.'</strong></span></p>
+                                    </div>
+                                </div>
+                                <!--[if mso]></td></tr></table><![endif]-->
+                                <div style="padding-right: 5px; padding-left: 5px; padding-top: 5px; padding-bottom: 5px;">
+                                    <!--[if (mso)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 5px;padding-left: 5px; padding-top: 5px; padding-bottom: 5px;"><table width="55%" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td><![endif]-->
+                                    <div align="center">
+                                        <div style="border-top: 2px solid #66D9EF; width:55%; line-height:2px; height:2px; font-size:2px;">&#160;</div>
+                                    </div>
+                                    <!--[if (mso)]></td></tr></table></td></tr></table><![endif]-->
+                                </div>
+                                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 30px; padding-left: 30px; padding-top: 15px; padding-bottom: 10px;"><![endif]-->
+                                <div style="font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#FFFFFF; padding-right: 30px; padding-left: 30px; padding-top: 15px; padding-bottom: 10px;">
+                                    <div style="font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;font-size:12px;line-height:14px;color:#FFFFFF;text-align:left;">
+                                        <p style="margin: 0;font-size: 12px;line-height: 14px"><span style="font-size: 28px; line-height: 33px;">Hey '.$user.',</span></p>
+                                    </div>
+                                </div>
+                                <!--[if mso]></td></tr></table><![endif]-->
+                                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 15px; padding-left: 30px; padding-top: 10px; padding-bottom: 25px;"><![endif]-->
+                                <div style="font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;line-height:180%;color:#FFFFFF; padding-right: 15px; padding-left: 30px; padding-top: 10px; padding-bottom: 25px;">
+                                    <div style="font-size:12px;line-height:22px;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;color:#FFFFFF;text-align:left;">
+                                        <p style="margin: 0;font-size: 14px;line-height: 25px"><span style="font-size: 18px; line-height: 32px;"><em><span style="line-height: 32px; font-size: 18px;">'.$mainMessage.'</span></em>
+                                            </span>
+                                        </p>
+                                    </div>
+                                </div>
+                                <!--[if mso]></td></tr></table><![endif]-->
+                                <div align="center" class="button-container center" style="padding-right: 30px; padding-left: 30px; padding-top:15px; padding-bottom:15px;">
+                                    <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-right: 30px; padding-left: 30px; padding-top:15px; padding-bottom:15px;" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="https://sonflix.com" style="height:48px; v-text-anchor:middle; width:194px;" arcsize="53%" strokecolor="" fillcolor="#66D9EF"><w:anchorlock/><center style="color:#000; font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif; font-size:18px;"><![endif]-->
+                                    <a href="'.$buttonURL.'" target="_blank" style="display: inline-block;text-decoration: none;-webkit-text-size-adjust: none;text-align: center;color: #000; background-color: #66D9EF; border-radius: 25px; -webkit-border-radius: 25px; -moz-border-radius: 25px; max-width: 180px; width: 114px; width: auto; border-top: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 3px solid transparent; padding-top: 5px; padding-right: 30px; padding-bottom: 5px; padding-left: 30px; font-family: \'Lato\', Tahoma, Verdana, Segoe, sans-serif;mso-border-alt: none">
+<span style="font-size:12px;line-height:21px;"><span style="font-size: 18px; line-height: 32px;" data-mce-style="font-size: 18px; line-height: 44px;">'.$button.'</span></span></a>
+                                    <!--[if mso]></center></v:roundrect></td></tr></table><![endif]-->
+                                </div>
+                                <!--[if mso]></center></v:roundrect></td></tr></table><![endif]-->
+                            </div>
+                            <!--[if (!mso)&(!IE)]><!-->
+                        </div>
+                        <!--<![endif]-->
+                    </div>
+                </div>
+                <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
+            </div>
+        </div>
+    </div>
+    <div style="background-color:#ffffff;">
+        <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
+            class="block-grid ">
+            <div style="border-collapse: collapse;display: table;width: 100%;">
+                <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#ffffff;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
+                <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:30px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
+                <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
+                    <div style="background-color: transparent; width: 100% !important;">
+                        <!--[if (!mso)&(!IE)]><!-->
+                        <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:5px; padding-bottom:30px; padding-right: 0px; padding-left: 0px;">
+                            <!--<![endif]-->
+                            <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 10px;"><![endif]-->
+                            <div style="font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#555555; padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 10px;">
+                                <div style="font-size:12px;line-height:14px;color:#555555;font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;text-align:left;">
+                                    <p style="margin: 0;font-size: 14px;line-height: 17px;text-align: center"><strong><span style="font-size: 26px; line-height: 31px;">'.$subTitle.'<br></span></strong></p>
+                                </div>
+                            </div>
+                            <!--[if mso]></td></tr></table><![endif]-->
+                            <div style="padding-right: 20px; padding-left: 20px; padding-top: 15px; padding-bottom: 20px;">
+                                <!--[if (mso)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 20px;padding-left: 20px; padding-top: 15px; padding-bottom: 20px;"><table width="40%" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td><![endif]-->
+                                <div align="center">
+                                    <div style="border-top: 3px solid #66D9EF; width:40%; line-height:3px; height:3px; font-size:3px;">&#160;</div>
+                                </div>
+                                <!--[if (mso)]></td></tr></table></td></tr></table><![endif]-->
+                            </div>
+                            <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 0px;"><![endif]-->
+                            <div style="font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;line-height:180%;color:#7E7D7D; padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 0px;">
+                                <div style="font-size:12px;line-height:22px;color:#7E7D7D;font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;text-align:left;">
+                                    <p style="margin: 0;font-size: 14px;line-height: 25px;text-align: center"><em><span style="font-size: 18px; line-height: 32px;">'.$subMessage.'</span></em></p>
+                                </div>
+                            </div>
+                            <!--[if mso]></td></tr></table><![endif]-->
+                            <!--[if (!mso)&(!IE)]><!-->
+                        </div>
+                        <!--<![endif]-->
+                    </div>
+                </div>
+                <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
+            </div>
+        </div>
+    </div>
+    <div style="background-color:#333333;">
+        <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
+            class="block-grid ">
+            <div style="border-collapse: collapse;display: table;width: 100%;">
+                <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#333333;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
+                <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
+                <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
+                    <div style="background-color: transparent; width: 100% !important;">
+                        <!--[if (!mso)&(!IE)]><!-->
+                        <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;">
+                            <!--<![endif]-->
+                            <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px;"><![endif]-->
+                            <div style="font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#959595; padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px;">
+                                <div style="font-size:12px;line-height:14px;color:#959595;font-family:\'Lato\', Tahoma, Verdana, Segoe, sans-serif;text-align:left;">
+                                    <p style="margin: 0;font-size: 14px;line-height: 17px;text-align: center">This&#160;email was sent by <a style="color:#AD80FD;text-decoration: underline;" title="Organizr"
+                                            href="https://github.com/causefx/Organizr" target="_blank" rel="noopener noreferrer">Organizr</a><strong><br></strong></p>
+                                </div>
+                            </div>
+                            <!--[if mso]></td></tr></table><![endif]-->
+                            <!--[if (!mso)&(!IE)]><!-->
+                        </div>
+                        <!--<![endif]-->
+                    </div>
+                </div>
+                <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
+            </div>
+        </div>
+    </div>
+    <!--[if (mso)|(IE)]></td></tr></table><![endif]-->
+    </div>
+    <!--[if (mso)|(IE)]></div><![endif]-->
+</body>
+</html>
+	';
+}
+
 // Always run this
 dependCheck();

+ 2 - 4
index.php

@@ -1042,7 +1042,7 @@ if(file_exists("images/settings2.png")) : $iconRotate = "false"; $settingsIcon =
             </div>
         </div>
         <?php endif; endif;?>
-		<?php if ($inviteCode){ ?>
+		<?php if(isset($_GET['inviteCode'])){ ?>
 		<div id="inviteSet" class="login-modal modal fade">
 			<div style="background:<?=$sidebar;?>;" class="table-wrapper">
 				<div class="table-row">
@@ -1220,7 +1220,6 @@ if(file_exists("images/settings2.png")) : $iconRotate = "false"; $settingsIcon =
             User.processRegistration();
         });
         $("#editInfo").click(function(){
-
             $( "div[id^='editInfoDiv']" ).toggle();
             $( "div[id^='buttonsDiv']" ).toggle();
         });
@@ -1281,11 +1280,10 @@ if(file_exists("images/settings2.png")) : $iconRotate = "false"; $settingsIcon =
             	cta(e1, e2, {relativeToWindow: true}, function () {
                 $('.login-modal').modal("show");
             });
-
             e.preventDefault();
         });
 		//InviteCode
-		<?php if($inviteCode){ ?>
+		<?php if(isset($_GET['inviteCode'])){ ?>
 		$('#inviteSet').modal("show");	
 		<?php } ?>
 

+ 21 - 0
lang/de.ini

@@ -284,3 +284,24 @@ USED_BY = "Used By"
 ACCOUNT_MADE = "PLEX Account is now created, Click Join now"
 USERNAME_NAME = "Username or Name"
 ACCOUNT_SUBMITTED = "PLEX Invite Sent|1. Check Email and Accept Invite|2. Close This Modal with Small 'x' on Top Right|3. Sign in"
+PLEX_TAB_NAME = "PLEX Tab Name [only use this if your PLEX URL above is a sub-domain - i.e. https://plex.domain.com]"
+IPINFO_TOKEN = "Get Token from https://ipinfo.io/account/registration as Default will expire"
+GET_PLEX_TOKEN = "Get PLEX Token"
+EMAIL_INVITE_HEADER = "Join My|Server"
+EMAIL_INVITE_TITLE = "LOOK WHO JUST GOT AN INVITE"
+EMAIL_INVITE_MESSAGE = "Here is an invite to join my|server.  The code to join is:"
+EMAIL_INVITE_BUTTON = "JOIN MY|SERVER"
+EMAIL_INVITE_SUBTITLE = "What do I do?"
+EMAIL_INVITE_SUBMESSAGE = "You can click the link above to have it auto fill in the code for you or you could follow this link here:|to take you to my site to fill in the code."
+EMAIL_RESET_HEADER = "Reset Password"
+EMAIL_RESET_TITLE = "LOOK WHO FORGOT THEIR PASSWORD"
+EMAIL_RESET_MESSAGE = "So, you forgot your password huh?  That sucks...  Don't worry, I got you covered.  Here is your new password, it may be freaking long but all you have to do is copy and login to change your password.  Super-Long-New-Password:"
+EMAIL_RESET_BUTTON = "Login"
+EMAIL_RESET_SUBTITLE = "What do I do?"
+EMAIL_RESET_SUBMESSAGE = "You can click the link above to go to my site to login.  Once logged in, click on your image or user icon on top right and change your password."
+EMAIL_NEWUSER_HEADER = "New User"
+EMAIL_NEWUSER_TITLE = "LOOK WHO JUST JOINED THE COOL CLUB"
+EMAIL_NEWUSER_MESSAGE = "Welcome, to my website.  I have many things here... many, many, many shiny things.  Have a look around :)"
+EMAIL_NEWUSER_BUTTON = "Login"
+EMAIL_NEWUSER_SUBTITLE = "What do I do?"
+EMAIL_NEWUSER_SUBMESSAGE = "Now that you have signed up, you can basically do whatever you like.  Enjoy"

+ 21 - 0
lang/en.ini

@@ -284,3 +284,24 @@ USED_BY = "Used By"
 ACCOUNT_MADE = "PLEX Account is now created, Click Join now"
 USERNAME_NAME = "Username or Name"
 ACCOUNT_SUBMITTED = "PLEX Invite Sent|1. Check Email and Accept Invite|2. Close This Modal with Small 'x' on Top Right|3. Sign in"
+PLEX_TAB_NAME = "PLEX Tab Name [only use this if your PLEX URL above is a sub-domain - i.e. https://plex.domain.com]"
+IPINFO_TOKEN = "Get Token from https://ipinfo.io/account/registration as Default will expire"
+GET_PLEX_TOKEN = "Get PLEX Token"
+EMAIL_INVITE_HEADER = "Join My|Server"
+EMAIL_INVITE_TITLE = "LOOK WHO JUST GOT AN INVITE"
+EMAIL_INVITE_MESSAGE = "Here is an invite to join my|server.  The code to join is:"
+EMAIL_INVITE_BUTTON = "JOIN MY|SERVER"
+EMAIL_INVITE_SUBTITLE = "What do I do?"
+EMAIL_INVITE_SUBMESSAGE = "You can click the link above to have it auto fill in the code for you or you could follow this link here:|to take you to my site to fill in the code."
+EMAIL_RESET_HEADER = "Reset Password"
+EMAIL_RESET_TITLE = "LOOK WHO FORGOT THEIR PASSWORD"
+EMAIL_RESET_MESSAGE = "So, you forgot your password huh?  That sucks...  Don't worry, I got you covered.  Here is your new password, it may be freaking long but all you have to do is copy and login to change your password.  Super-Long-New-Password:"
+EMAIL_RESET_BUTTON = "Login"
+EMAIL_RESET_SUBTITLE = "What do I do?"
+EMAIL_RESET_SUBMESSAGE = "You can click the link above to go to my site to login.  Once logged in, click on your image or user icon on top right and change your password."
+EMAIL_NEWUSER_HEADER = "New User"
+EMAIL_NEWUSER_TITLE = "LOOK WHO JUST JOINED THE COOL CLUB"
+EMAIL_NEWUSER_MESSAGE = "Welcome, to my website.  I have many things here... many, many, many shiny things.  Have a look around :)"
+EMAIL_NEWUSER_BUTTON = "Login"
+EMAIL_NEWUSER_SUBTITLE = "What do I do?"
+EMAIL_NEWUSER_SUBMESSAGE = "Now that you have signed up, you can basically do whatever you like.  Enjoy"

+ 21 - 0
lang/es.ini

@@ -284,3 +284,24 @@ USED_BY = "Used By"
 ACCOUNT_MADE = "PLEX Account is now created, Click Join now"
 USERNAME_NAME = "Username or Name"
 ACCOUNT_SUBMITTED = "PLEX Invite Sent|1. Check Email and Accept Invite|2. Close This Modal with Small 'x' on Top Right|3. Sign in"
+PLEX_TAB_NAME = "PLEX Tab Name [only use this if your PLEX URL above is a sub-domain - i.e. https://plex.domain.com]"
+IPINFO_TOKEN = "Get Token from https://ipinfo.io/account/registration as Default will expire"
+GET_PLEX_TOKEN = "Get PLEX Token"
+EMAIL_INVITE_HEADER = "Join My|Server"
+EMAIL_INVITE_TITLE = "LOOK WHO JUST GOT AN INVITE"
+EMAIL_INVITE_MESSAGE = "Here is an invite to join my|server.  The code to join is:"
+EMAIL_INVITE_BUTTON = "JOIN MY|SERVER"
+EMAIL_INVITE_SUBTITLE = "What do I do?"
+EMAIL_INVITE_SUBMESSAGE = "You can click the link above to have it auto fill in the code for you or you could follow this link here:|to take you to my site to fill in the code."
+EMAIL_RESET_HEADER = "Reset Password"
+EMAIL_RESET_TITLE = "LOOK WHO FORGOT THEIR PASSWORD"
+EMAIL_RESET_MESSAGE = "So, you forgot your password huh?  That sucks...  Don't worry, I got you covered.  Here is your new password, it may be freaking long but all you have to do is copy and login to change your password.  Super-Long-New-Password:"
+EMAIL_RESET_BUTTON = "Login"
+EMAIL_RESET_SUBTITLE = "What do I do?"
+EMAIL_RESET_SUBMESSAGE = "You can click the link above to go to my site to login.  Once logged in, click on your image or user icon on top right and change your password."
+EMAIL_NEWUSER_HEADER = "New User"
+EMAIL_NEWUSER_TITLE = "LOOK WHO JUST JOINED THE COOL CLUB"
+EMAIL_NEWUSER_MESSAGE = "Welcome, to my website.  I have many things here... many, many, many shiny things.  Have a look around :)"
+EMAIL_NEWUSER_BUTTON = "Login"
+EMAIL_NEWUSER_SUBTITLE = "What do I do?"
+EMAIL_NEWUSER_SUBMESSAGE = "Now that you have signed up, you can basically do whatever you like.  Enjoy"

+ 21 - 0
lang/fr.ini

@@ -284,3 +284,24 @@ USED_BY = "Used By"
 ACCOUNT_MADE = "PLEX Account is now created, Click Join now"
 USERNAME_NAME = "Username or Name"
 ACCOUNT_SUBMITTED = "PLEX Invite Sent|1. Check Email and Accept Invite|2. Close This Modal with Small 'x' on Top Right|3. Sign in"
+PLEX_TAB_NAME = "PLEX Tab Name [only use this if your PLEX URL above is a sub-domain - i.e. https://plex.domain.com]"
+IPINFO_TOKEN = "Get Token from https://ipinfo.io/account/registration as Default will expire"
+GET_PLEX_TOKEN = "Get PLEX Token"
+EMAIL_INVITE_HEADER = "Join My|Server"
+EMAIL_INVITE_TITLE = "LOOK WHO JUST GOT AN INVITE"
+EMAIL_INVITE_MESSAGE = "Here is an invite to join my|server.  The code to join is:"
+EMAIL_INVITE_BUTTON = "JOIN MY|SERVER"
+EMAIL_INVITE_SUBTITLE = "What do I do?"
+EMAIL_INVITE_SUBMESSAGE = "You can click the link above to have it auto fill in the code for you or you could follow this link here:|to take you to my site to fill in the code."
+EMAIL_RESET_HEADER = "Reset Password"
+EMAIL_RESET_TITLE = "LOOK WHO FORGOT THEIR PASSWORD"
+EMAIL_RESET_MESSAGE = "So, you forgot your password huh?  That sucks...  Don't worry, I got you covered.  Here is your new password, it may be freaking long but all you have to do is copy and login to change your password.  Super-Long-New-Password:"
+EMAIL_RESET_BUTTON = "Login"
+EMAIL_RESET_SUBTITLE = "What do I do?"
+EMAIL_RESET_SUBMESSAGE = "You can click the link above to go to my site to login.  Once logged in, click on your image or user icon on top right and change your password."
+EMAIL_NEWUSER_HEADER = "New User"
+EMAIL_NEWUSER_TITLE = "LOOK WHO JUST JOINED THE COOL CLUB"
+EMAIL_NEWUSER_MESSAGE = "Welcome, to my website.  I have many things here... many, many, many shiny things.  Have a look around :)"
+EMAIL_NEWUSER_BUTTON = "Login"
+EMAIL_NEWUSER_SUBTITLE = "What do I do?"
+EMAIL_NEWUSER_SUBMESSAGE = "Now that you have signed up, you can basically do whatever you like.  Enjoy"

+ 21 - 0
lang/it.ini

@@ -284,3 +284,24 @@ USED_BY = "Used By"
 ACCOUNT_MADE = "PLEX Account is now created, Click Join now"
 USERNAME_NAME = "Username or Name"
 ACCOUNT_SUBMITTED = "PLEX Invite Sent|1. Check Email and Accept Invite|2. Close This Modal with Small 'x' on Top Right|3. Sign in"
+PLEX_TAB_NAME = "PLEX Tab Name [only use this if your PLEX URL above is a sub-domain - i.e. https://plex.domain.com]"
+IPINFO_TOKEN = "Get Token from https://ipinfo.io/account/registration as Default will expire"
+GET_PLEX_TOKEN = "Get PLEX Token"
+EMAIL_INVITE_HEADER = "Join My|Server"
+EMAIL_INVITE_TITLE = "LOOK WHO JUST GOT AN INVITE"
+EMAIL_INVITE_MESSAGE = "Here is an invite to join my|server.  The code to join is:"
+EMAIL_INVITE_BUTTON = "JOIN MY|SERVER"
+EMAIL_INVITE_SUBTITLE = "What do I do?"
+EMAIL_INVITE_SUBMESSAGE = "You can click the link above to have it auto fill in the code for you or you could follow this link here:|to take you to my site to fill in the code."
+EMAIL_RESET_HEADER = "Reset Password"
+EMAIL_RESET_TITLE = "LOOK WHO FORGOT THEIR PASSWORD"
+EMAIL_RESET_MESSAGE = "So, you forgot your password huh?  That sucks...  Don't worry, I got you covered.  Here is your new password, it may be freaking long but all you have to do is copy and login to change your password.  Super-Long-New-Password:"
+EMAIL_RESET_BUTTON = "Login"
+EMAIL_RESET_SUBTITLE = "What do I do?"
+EMAIL_RESET_SUBMESSAGE = "You can click the link above to go to my site to login.  Once logged in, click on your image or user icon on top right and change your password."
+EMAIL_NEWUSER_HEADER = "New User"
+EMAIL_NEWUSER_TITLE = "LOOK WHO JUST JOINED THE COOL CLUB"
+EMAIL_NEWUSER_MESSAGE = "Welcome, to my website.  I have many things here... many, many, many shiny things.  Have a look around :)"
+EMAIL_NEWUSER_BUTTON = "Login"
+EMAIL_NEWUSER_SUBTITLE = "What do I do?"
+EMAIL_NEWUSER_SUBMESSAGE = "Now that you have signed up, you can basically do whatever you like.  Enjoy"

+ 21 - 0
lang/nl.ini

@@ -284,3 +284,24 @@ USED_BY = "Used By"
 ACCOUNT_MADE = "PLEX Account is now created, Click Join now"
 USERNAME_NAME = "Username or Name"
 ACCOUNT_SUBMITTED = "PLEX Invite Sent|1. Check Email and Accept Invite|2. Close This Modal with Small 'x' on Top Right|3. Sign in"
+PLEX_TAB_NAME = "PLEX Tab Name [only use this if your PLEX URL above is a sub-domain - i.e. https://plex.domain.com]"
+IPINFO_TOKEN = "Get Token from https://ipinfo.io/account/registration as Default will expire"
+GET_PLEX_TOKEN = "Get PLEX Token"
+EMAIL_INVITE_HEADER = "Join My|Server"
+EMAIL_INVITE_TITLE = "LOOK WHO JUST GOT AN INVITE"
+EMAIL_INVITE_MESSAGE = "Here is an invite to join my|server.  The code to join is:"
+EMAIL_INVITE_BUTTON = "JOIN MY|SERVER"
+EMAIL_INVITE_SUBTITLE = "What do I do?"
+EMAIL_INVITE_SUBMESSAGE = "You can click the link above to have it auto fill in the code for you or you could follow this link here:|to take you to my site to fill in the code."
+EMAIL_RESET_HEADER = "Reset Password"
+EMAIL_RESET_TITLE = "LOOK WHO FORGOT THEIR PASSWORD"
+EMAIL_RESET_MESSAGE = "So, you forgot your password huh?  That sucks...  Don't worry, I got you covered.  Here is your new password, it may be freaking long but all you have to do is copy and login to change your password.  Super-Long-New-Password:"
+EMAIL_RESET_BUTTON = "Login"
+EMAIL_RESET_SUBTITLE = "What do I do?"
+EMAIL_RESET_SUBMESSAGE = "You can click the link above to go to my site to login.  Once logged in, click on your image or user icon on top right and change your password."
+EMAIL_NEWUSER_HEADER = "New User"
+EMAIL_NEWUSER_TITLE = "LOOK WHO JUST JOINED THE COOL CLUB"
+EMAIL_NEWUSER_MESSAGE = "Welcome, to my website.  I have many things here... many, many, many shiny things.  Have a look around :)"
+EMAIL_NEWUSER_BUTTON = "Login"
+EMAIL_NEWUSER_SUBTITLE = "What do I do?"
+EMAIL_NEWUSER_SUBMESSAGE = "Now that you have signed up, you can basically do whatever you like.  Enjoy"

+ 21 - 0
lang/pl.ini

@@ -284,3 +284,24 @@ USED_BY = "Used By"
 ACCOUNT_MADE = "PLEX Account is now created, Click Join now"
 USERNAME_NAME = "Username or Name"
 ACCOUNT_SUBMITTED = "PLEX Invite Sent|1. Check Email and Accept Invite|2. Close This Modal with Small 'x' on Top Right|3. Sign in"
+PLEX_TAB_NAME = "PLEX Tab Name [only use this if your PLEX URL above is a sub-domain - i.e. https://plex.domain.com]"
+IPINFO_TOKEN = "Get Token from https://ipinfo.io/account/registration as Default will expire"
+GET_PLEX_TOKEN = "Get PLEX Token"
+EMAIL_INVITE_HEADER = "Join My|Server"
+EMAIL_INVITE_TITLE = "LOOK WHO JUST GOT AN INVITE"
+EMAIL_INVITE_MESSAGE = "Here is an invite to join my|server.  The code to join is:"
+EMAIL_INVITE_BUTTON = "JOIN MY|SERVER"
+EMAIL_INVITE_SUBTITLE = "What do I do?"
+EMAIL_INVITE_SUBMESSAGE = "You can click the link above to have it auto fill in the code for you or you could follow this link here:|to take you to my site to fill in the code."
+EMAIL_RESET_HEADER = "Reset Password"
+EMAIL_RESET_TITLE = "LOOK WHO FORGOT THEIR PASSWORD"
+EMAIL_RESET_MESSAGE = "So, you forgot your password huh?  That sucks...  Don't worry, I got you covered.  Here is your new password, it may be freaking long but all you have to do is copy and login to change your password.  Super-Long-New-Password:"
+EMAIL_RESET_BUTTON = "Login"
+EMAIL_RESET_SUBTITLE = "What do I do?"
+EMAIL_RESET_SUBMESSAGE = "You can click the link above to go to my site to login.  Once logged in, click on your image or user icon on top right and change your password."
+EMAIL_NEWUSER_HEADER = "New User"
+EMAIL_NEWUSER_TITLE = "LOOK WHO JUST JOINED THE COOL CLUB"
+EMAIL_NEWUSER_MESSAGE = "Welcome, to my website.  I have many things here... many, many, many shiny things.  Have a look around :)"
+EMAIL_NEWUSER_BUTTON = "Login"
+EMAIL_NEWUSER_SUBTITLE = "What do I do?"
+EMAIL_NEWUSER_SUBMESSAGE = "Now that you have signed up, you can basically do whatever you like.  Enjoy"

+ 40 - 381
user.php

@@ -29,134 +29,7 @@
 
 
     define('GUEST_HASH', "guest-".guestHash(0, 5));
-    define('EMAIL_CSS', "
-    <style type=\"text/css\" id=\"media-query\">
-      body {
-  margin: 0;
-  padding: 0; }
 
-table, tr, td {
-  vertical-align: top;
-  border-collapse: collapse; }
-
-.ie-browser table, .mso-container table {
-  table-layout: fixed; }
-
-* {
-  line-height: inherit; }
-
-a[x-apple-data-detectors=true] {
-  color: inherit !important;
-  text-decoration: none !important; }
-
-[owa] .img-container div, [owa] .img-container button {
-  display: block !important; }
-
-[owa] .fullwidth button {
-  width: 100% !important; }
-
-[owa] .block-grid .col {
-  display: table-cell;
-  float: none !important;
-  vertical-align: top; }
-
-.ie-browser .num12, .ie-browser .block-grid, [owa] .num12, [owa] .block-grid {
-  width: 615px !important; }
-
-.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {
-  line-height: 100%; }
-
-.ie-browser .mixed-two-up .num4, [owa] .mixed-two-up .num4 {
-  width: 204px !important; }
-
-.ie-browser .mixed-two-up .num8, [owa] .mixed-two-up .num8 {
-  width: 408px !important; }
-
-.ie-browser .block-grid.two-up .col, [owa] .block-grid.two-up .col {
-  width: 307px !important; }
-
-.ie-browser .block-grid.three-up .col, [owa] .block-grid.three-up .col {
-  width: 205px !important; }
-
-.ie-browser .block-grid.four-up .col, [owa] .block-grid.four-up .col {
-  width: 153px !important; }
-
-.ie-browser .block-grid.five-up .col, [owa] .block-grid.five-up .col {
-  width: 123px !important; }
-
-.ie-browser .block-grid.six-up .col, [owa] .block-grid.six-up .col {
-  width: 102px !important; }
-
-.ie-browser .block-grid.seven-up .col, [owa] .block-grid.seven-up .col {
-  width: 87px !important; }
-
-.ie-browser .block-grid.eight-up .col, [owa] .block-grid.eight-up .col {
-  width: 76px !important; }
-
-.ie-browser .block-grid.nine-up .col, [owa] .block-grid.nine-up .col {
-  width: 68px !important; }
-
-.ie-browser .block-grid.ten-up .col, [owa] .block-grid.ten-up .col {
-  width: 61px !important; }
-
-.ie-browser .block-grid.eleven-up .col, [owa] .block-grid.eleven-up .col {
-  width: 55px !important; }
-
-.ie-browser .block-grid.twelve-up .col, [owa] .block-grid.twelve-up .col {
-  width: 51px !important; }
-
-@media only screen and (min-width: 635px) {
-  .block-grid {
-    width: 615px !important; }
-  .block-grid .col {
-    display: table-cell;
-    Float: none !important;
-    vertical-align: top; }
-    .block-grid .col.num12 {
-      width: 615px !important; }
-  .block-grid.mixed-two-up .col.num4 {
-    width: 204px !important; }
-  .block-grid.mixed-two-up .col.num8 {
-    width: 408px !important; }
-  .block-grid.two-up .col {
-    width: 307px !important; }
-  .block-grid.three-up .col {
-    width: 205px !important; }
-  .block-grid.four-up .col {
-    width: 153px !important; }
-  .block-grid.five-up .col {
-    width: 123px !important; }
-  .block-grid.six-up .col {
-    width: 102px !important; }
-  .block-grid.seven-up .col {
-    width: 87px !important; }
-  .block-grid.eight-up .col {
-    width: 76px !important; }
-  .block-grid.nine-up .col {
-    width: 68px !important; }
-  .block-grid.ten-up .col {
-    width: 61px !important; }
-  .block-grid.eleven-up .col {
-    width: 55px !important; }
-  .block-grid.twelve-up .col {
-    width: 51px !important; } }
-
-@media (max-width: 635px) {
-  .block-grid, .col {
-    min-width: 320px !important;
-    max-width: 100% !important; }
-  .block-grid {
-    width: calc(100% - 40px) !important; }
-  .col {
-    width: 100% !important; }
-    .col > div {
-      margin: 0 auto; }
-  img.fullwidth {
-    max-width: 100% !important; } }
-
-    </style>	
-	");
-	
 	class User
 	{
 		// =======================================================================
@@ -422,23 +295,19 @@ a[x-apple-data-detectors=true] {
 			if($registered && User::use_mail)
 			{
 				// send email notification
-				$from = User::MAILER_NAME;
-				$replyto = User::MAILER_REPLYTO;
-				$domain_name = User::DOMAIN_NAME;
-				$subject = User::DOMAIN_NAME . " registration";
-				$body = <<<EOT
-	Hi,
-	this is an automated message to let you know that someone signed up at $domain_name with the user name "$username", using this email address as mailing address.
-	Because of the way our user registration works, we have no idea which password was used to register this account (it gets one-way hashed by the browser before it is sent to our user registration system, so that we don't know your password either), so if you registered this account, hopefully you wrote your password down somewhere.
-	However, if you ever forget your password, you can click the "I forgot my password" link in the log-in section for $domain_name and you will be sent an email containing a new, ridiculously long and complicated password that you can use to log in. You can change your password after logging in, but that's up to you. No one's going to guess it, or brute force it, but if other people can read your emails, it's generally a good idea to change passwords.
-	If you were not the one to register this account, you can either contact us the normal way or —much easier— you can ask the system to reset the password for the account, after which you can simply log in with the temporary password and delete the account. That'll teach whoever pretended to be you not to mess with you!
-	Of course, if you did register it yourself, welcome to $domain_name!
-	- the $domain_name team
-EOT;
-				$headers = "From: $from\r\n";
-				$headers .= "Reply-To: $replyto\r\n";
-				$headers .= "X-Mailer: PHP/" . phpversion();
-				//mail($email, $subject, $body, $headers);
+				$subject = "Welcome to ".DOMAIN;
+			$language = new setLanguage;
+			$domain = getServerPath();
+			$body = orgEmail(
+					$header = $language->translate('EMAIL_NEWUSER_HEADER'),
+					$title = $language->translate('EMAIL_NEWUSER_TITLE'), 
+					$user = $username, 
+					$mainMessage =$language->translate('EMAIL_NEWUSER_MESSAGE'),
+					$button = $language->translate('EMAIL_NEWUSER_BUTTON'),
+					$buttonURL = $domain, 
+					$subTitle = $language->translate('EMAIL_NEWUSER_SUBTITLE'), 
+					$subMessage = $language->translate('EMAIL_NEWUSER_SUBMESSAGE')
+					);
                 $this->startEmail($email, $username, $subject, $body);
 			}
 			return $registered;
@@ -494,7 +363,7 @@ EOT;
 				$this->info("email address did not pass validation");
 				return false; }
 			// step 2: if validation passed, see if there is a matching user, and reset the password if there is
-			$newpassword = $this->random_ascii_string(64);
+			$newpassword = $this->random_ascii_string(20);
 			$sha1 = sha1($newpassword);
 			$query = "SELECT username, token FROM users WHERE email = '$email'";
 			$username = "";
@@ -509,23 +378,19 @@ EOT;
 			$this->database->exec($update);
             //$this->info("Email has been sent with new password");
 			// step 3: notify the user of the new password
-			$from = User::MAILER_NAME;
-			$replyto = User::MAILER_REPLYTO;
-			$domain_name = User::DOMAIN_NAME;
-			$subject = User::DOMAIN_NAME . " password reset request";
-			$body = <<<EOT
-	Hi,
-	this is an automated message to let you know that someone requested a password reset for the $domain_name user account with user name "$username", which is linked to this email address.
-	We've reset the password to the following 64 character string, so make sure to copy/paste it without any leading or trailing spaces:
-	$newpassword
-	If you didn't even know this account existed, now is the time to log in and delete it. How dare people use your email address to register accounts! Of course, if you did register it yourself, but you didn't request the reset, some jerk is apparently reset-spamming. We hope he gets run over by a steam shovel driven by rabid ocelots or something.
-	Then again, it's far more likely that you did register this account, and you simply forgot the password so you asked for the reset yourself, in which case: here's your new password, and thank you for your patronage at $domain_name!
-	- the $domain_name team
-EOT;
-			$headers = "From: $from\r\n";
-			$headers .= "Reply-To: $replyto\r\n";
-			$headers .= "X-Mailer: PHP/" . phpversion();
-			//mail($email, $subject, $body, $headers);
+			$subject = DOMAIN . " Password Reset";
+			$language = new setLanguage;
+			$domain = getServerPath();
+			$body = orgEmail(
+					$header = $language->translate('EMAIL_RESET_HEADER'),
+					$title = $language->translate('EMAIL_RESET_TITLE'), 
+					$user = $username, 
+					$mainMessage =$language->translate('EMAIL_RESET_MESSAGE')."<br/>".$newpassword,
+					$button = $language->translate('EMAIL_RESET_BUTTON'),
+					$buttonURL = $domain, 
+					$subTitle = $language->translate('EMAIL_RESET_SUBTITLE'), 
+					$subMessage = $language->translate('EMAIL_RESET_SUBMESSAGE')
+					);
             $this->startEmail($email, $username, $subject, $body);
 		}
 	// ------------------
@@ -873,7 +738,8 @@ EOT;
 		 */
 		function invite_user($username = "none", $email, $server)
 		{
-			$emailCSS = constant('EMAIL_CSS');
+			//lang shit
+			$language = new setLanguage;
 			$domain = getServerPath();
 			$topImage = $domain."images/organizr-logo-h.png";
 			$uServer = strtoupper($server);
@@ -891,224 +757,17 @@ EOT;
 			if($insert && User::use_mail)
 			{
 				// send email notification
-				$subject = DOMAIN . " $uServer invite!";
-				$body = <<<EOT
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
-<head>
-  <!--[if gte mso 9]><xml>
-<o:OfficeDocumentSettings>
-<o:AllowPNG/>
-<o:PixelsPerInch>96</o:PixelsPerInch>
-</o:OfficeDocumentSettings>
-</xml><![endif]-->
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-  <meta name="viewport" content="width=device-width">
-  <!--[if !mso]><!-->
-  <meta http-equiv="X-UA-Compatible" content="IE=edge">
-  <!--<![endif]-->
-  <title></title>
-  <!--[if !mso]><!-- -->
-  <link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
-  <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
-  <!--<![endif]-->
-</head>
-<body class="clean-body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #FFFFFF">
-  <!--[if IE]><div class="ie-browser"><![endif]-->
-  <!--[if mso]><div class="mso-container"><![endif]-->
-  <div class="nl-container" style="min-width: 320px;Margin: 0 auto;background-color: #FFFFFF">
-    <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #FFFFFF;"><![endif]-->
-    <div style="background-color:#333333;">
-      <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
-        class="block-grid ">
-        <div style="border-collapse: collapse;display: table;width: 100%;">
-          <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#333333;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
-          <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:0px; padding-bottom:0px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
-          <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
-            <div style="background-color: transparent; width: 100% !important;">
-              <!--[if (!mso)&(!IE)]><!-->
-              <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:0px; padding-bottom:0px; padding-right: 0px; padding-left: 0px;">
-                <!--<![endif]-->
-                <div align="left" class="img-container left fullwidth" style="padding-right: 30px;  padding-left: 30px;">
-                  <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 30px; padding-left: 30px;" align="left"><![endif]-->
-                  <img class="left fullwidth" align="left" border="0" src="https://sonflix.com/images/organizr-logo-h.png" alt="Image" title="Image"
-                    style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: 0;height: auto;float: none;width: 100%;max-width: 555px"
-                    width="555">
-                  <!--[if mso]></td></tr></table><![endif]-->
-                </div>
-                <!--[if (!mso)&(!IE)]><!-->
-              </div>
-              <!--<![endif]-->
-            </div>
-          </div>
-          <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
-        </div>
-      </div>
-    </div>
-    <div style="background-color:#333333;">
-      <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
-        class="block-grid ">
-        <div style="border-collapse: collapse;display: table;width: 100%;">
-          <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#333333;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
-          <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:0px; padding-bottom:0px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
-          <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
-            <div style="background-color: transparent; width: 100% !important;">
-              <!--[if (!mso)&(!IE)]><!-->
-              <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:0px; padding-bottom:0px; padding-right: 0px; padding-left: 0px;">
-                <!--<![endif]-->
-                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top: 0px; padding-bottom: 0px;"><![endif]-->
-                <div style="font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#FFFFFF; padding-right: 0px; padding-left: 0px; padding-top: 0px; padding-bottom: 0px;">
-                  <div style="font-size:12px;line-height:14px;color:#FFFFFF;font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;text-align:left;">
-                    <p style="margin: 0;font-size: 12px;line-height: 14px;text-align: center"><span style="font-size: 16px; line-height: 19px;"><strong><span style="line-height: 19px; font-size: 16px;">Join My $uServer Server</span></strong>
-                      </span>
-                    </p>
-                  </div>
-                </div>
-                <!--[if mso]></td></tr></table><![endif]-->
-                <!--[if (!mso)&(!IE)]><!-->
-              </div>
-              <!--<![endif]-->
-            </div>
-          </div>
-          <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
-        </div>
-      </div>
-    </div>
-    <div style="background-color:#393939;">
-      <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
-        class="block-grid ">
-        <div style="border-collapse: collapse;display: table;width: 100%;">
-          <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#393939;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
-          <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
-          <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
-            <div style="background-color: transparent; width: 100% !important;">
-              <!--[if (!mso)&(!IE)]><!-->
-              <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;">
-                <!--<![endif]-->
-                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 30px; padding-left: 30px; padding-top: 0px; padding-bottom: 0px;"><![endif]-->
-                <div style="font-family:'Ubuntu', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#FFFFFF; padding-right: 30px; padding-left: 30px; padding-top: 0px; padding-bottom: 0px;">
-                  <div style="font-family:Ubuntu, Tahoma, Verdana, Segoe, sans-serif;font-size:12px;line-height:14px;color:#FFFFFF;text-align:left;">
-                    <p style="margin: 0;font-size: 12px;line-height: 14px;text-align: center"><span style="font-size: 16px; line-height: 19px;"><strong>LOOK WHO JUST GOT AN INVITE</strong></span></p>
-                  </div>
-                </div>
-                <!--[if mso]></td></tr></table><![endif]-->
-                <div style="padding-right: 5px; padding-left: 5px; padding-top: 5px; padding-bottom: 5px;">
-                  <!--[if (mso)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 5px;padding-left: 5px; padding-top: 5px; padding-bottom: 5px;"><table width="55%" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td><![endif]-->
-                  <div align="center">
-                    <div style="border-top: 2px solid #66D9EF; width:55%; line-height:2px; height:2px; font-size:2px;">&#160;</div>
-                  </div>
-                  <!--[if (mso)]></td></tr></table></td></tr></table><![endif]-->
-                </div>
-                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 30px; padding-left: 30px; padding-top: 15px; padding-bottom: 10px;"><![endif]-->
-                <div style="font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#FFFFFF; padding-right: 30px; padding-left: 30px; padding-top: 15px; padding-bottom: 10px;">
-                  <div style="font-family:'Lato',Tahoma,Verdana,Segoe,sans-serif;font-size:12px;line-height:14px;color:#FFFFFF;text-align:left;">
-                    <p style="margin: 0;font-size: 12px;line-height: 14px"><span style="font-size: 28px; line-height: 33px;">Hey $username,</span></p>
-                  </div>
-                </div>
-                <!--[if mso]></td></tr></table><![endif]-->
-                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 15px; padding-left: 30px; padding-top: 10px; padding-bottom: 25px;"><![endif]-->
-                <div style="font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;line-height:180%;color:#FFFFFF; padding-right: 15px; padding-left: 30px; padding-top: 10px; padding-bottom: 25px;">
-                  <div style="font-size:12px;line-height:22px;font-family:'Lato',Tahoma,Verdana,Segoe,sans-serif;color:#FFFFFF;text-align:left;">
-                    <p style="margin: 0;font-size: 14px;line-height: 25px"><span style="font-size: 18px; line-height: 32px;"><em><span style="line-height: 32px; font-size: 18px;">Here is an invite to my $uServer server.  The code to join is $inviteCode.</span></em>
-                      </span>
-                    </p>
-                  </div>
-                </div>
-                <!--[if mso]></td></tr></table><![endif]-->
-
-                <div align="center" class="button-container center" style="padding-right: 30px; padding-left: 30px; padding-top:15px; padding-bottom:15px;">
-                  <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-right: 30px; padding-left: 30px; padding-top:15px; padding-bottom:15px;" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="https://sonflix.com" style="height:48px; v-text-anchor:middle; width:194px;" arcsize="53%" strokecolor="" fillcolor="#66D9EF"><w:anchorlock/><center style="color:#000; font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif; font-size:18px;"><![endif]-->
-                  <a href="$link" target="_blank" style="display: inline-block;text-decoration: none;-webkit-text-size-adjust: none;text-align: center;color: #000; background-color: #66D9EF; border-radius: 25px; -webkit-border-radius: 25px; -moz-border-radius: 25px; max-width: 180px; width: 114px; width: auto; border-top: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 3px solid transparent; padding-top: 5px; padding-right: 30px; padding-bottom: 5px; padding-left: 30px; font-family: 'Lato', Tahoma, Verdana, Segoe, sans-serif;mso-border-alt: none">
-<span style="font-size:12px;line-height:21px;"><span style="font-size: 18px; line-height: 32px;" data-mce-style="font-size: 18px; line-height: 44px;">JOIN MY SERVER</span></span></a>
-                  <!--[if mso]></center></v:roundrect></td></tr></table><![endif]-->
-                </div>
-                  <!--[if mso]></center></v:roundrect></td></tr></table><![endif]-->
-                </div>
-                <!--[if (!mso)&(!IE)]><!-->
-              </div>
-              <!--<![endif]-->
-            </div>
-          </div>
-          <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
-        </div>
-      </div>
-    </div>
-    <div style="background-color:#ffffff;">
-      <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
-        class="block-grid ">
-        <div style="border-collapse: collapse;display: table;width: 100%;">
-          <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#ffffff;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
-          <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:30px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
-          <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
-            <div style="background-color: transparent; width: 100% !important;">
-              <!--[if (!mso)&(!IE)]><!-->
-              <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:5px; padding-bottom:30px; padding-right: 0px; padding-left: 0px;">
-                <!--<![endif]-->
-                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 10px;"><![endif]-->
-                <div style="font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#555555; padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 10px;">
-                  <div style="font-size:12px;line-height:14px;color:#555555;font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;text-align:left;">
-                    <p style="margin: 0;font-size: 14px;line-height: 17px;text-align: center"><strong><span style="font-size: 26px; line-height: 31px;">What&#160;do I do?<br></span></strong></p>
-                  </div>
-                </div>
-                <!--[if mso]></td></tr></table><![endif]-->
-                <div style="padding-right: 20px; padding-left: 20px; padding-top: 15px; padding-bottom: 20px;">
-                  <!--[if (mso)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 20px;padding-left: 20px; padding-top: 15px; padding-bottom: 20px;"><table width="40%" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td><![endif]-->
-                  <div align="center">
-                    <div style="border-top: 3px solid #66D9EF; width:40%; line-height:3px; height:3px; font-size:3px;">&#160;</div>
-                  </div>
-                  <!--[if (mso)]></td></tr></table></td></tr></table><![endif]-->
-                </div>
-                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 0px;"><![endif]-->
-                <div style="font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;line-height:180%;color:#7E7D7D; padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 0px;">
-                  <div style="font-size:12px;line-height:22px;color:#7E7D7D;font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;text-align:left;">
-                    <p style="margin: 0;font-size: 14px;line-height: 25px;text-align: center"><em><span style="font-size: 18px; line-height: 32px;">You can click the link above - You could also head over to my website to join by going here: <a href="$domain">$domain</a> and clicking Join My Server</span></em></p>
-                  </div>
-                </div>
-                <!--[if mso]></td></tr></table><![endif]-->
-                <!--[if (!mso)&(!IE)]><!-->
-              </div>
-              <!--<![endif]-->
-            </div>
-          </div>
-          <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
-        </div>
-      </div>
-    </div>
-    <div style="background-color:#333333;">
-      <div style="Margin: 0 auto;min-width: 320px;max-width: 615px;width: 615px;width: calc(30500% - 193060px);overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"
-        class="block-grid ">
-        <div style="border-collapse: collapse;display: table;width: 100%;">
-          <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:#333333;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width: 615px;"><tr class="layout-full-width" style="background-color:transparent;"><![endif]-->
-          <!--[if (mso)|(IE)]><td align="center" width="615" style=" width:615px; padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->
-          <div class="col num12" style="min-width: 320px;max-width: 615px;width: 615px;width: calc(29500% - 180810px);background-color: transparent;">
-            <div style="background-color: transparent; width: 100% !important;">
-              <!--[if (!mso)&(!IE)]><!-->
-              <div style="border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;">
-                <!--<![endif]-->
-                <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px;"><![endif]-->
-                <div style="font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;line-height:120%;color:#959595; padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px;">
-                  <div style="font-size:12px;line-height:14px;color:#959595;font-family:'Lato', Tahoma, Verdana, Segoe, sans-serif;text-align:left;">
-                    <p style="margin: 0;font-size: 14px;line-height: 17px;text-align: center">This&#160;email was sent by <a style="color:#AD80FD;text-decoration: underline;" title="Organizr" href="https://github.com/causefx/Organizr"
-                        target="_blank" rel="noopener noreferrer">Organizr</a><strong><br></strong></p>
-                  </div>
-                </div>
-                <!--[if mso]></td></tr></table><![endif]-->
-                <!--[if (!mso)&(!IE)]><!-->
-              </div>
-              <!--<![endif]-->
-            </div>
-          </div>
-          <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
-        </div>
-      </div>
-    </div>
-    <!--[if (mso)|(IE)]></td></tr></table><![endif]-->
-  </div>
-  <!--[if (mso)|(IE)]></div><![endif]-->
-</body>
-</html>
-EOT;
-				
+				$subject = DOMAIN . " $uServer ".$language->translate('INVITE_CODE');
+				$body = orgEmail(
+					$header = explosion($language->translate('EMAIL_INVITE_HEADER'), 0)." ".$uServer." ".explosion($language->translate('EMAIL_INVITE_HEADER'), 1),
+					$title = $language->translate('EMAIL_INVITE_TITLE'), 
+					$user = $username, 
+					$mainMessage = explosion($language->translate('EMAIL_INVITE_MESSAGE'), 0)." ".$uServer." ".explosion($language->translate('EMAIL_INVITE_MESSAGE'), 1)." ".$inviteCode,
+					$button = explosion($language->translate('EMAIL_INVITE_BUTTON'), 0)." ".$uServer." ".explosion($language->translate('EMAIL_INVITE_BUTTON'), 1),
+					$buttonURL = $link, 
+					$subTitle = $language->translate('EMAIL_INVITE_SUBTITLE'), 
+					$subMessage = explosion($language->translate('EMAIL_INVITE_SUBMESSAGE'), 0)." <a href='".$domain."?inviteCode'>".$domain."</a> ".explosion($language->translate('EMAIL_INVITE_SUBMESSAGE'), 1)
+					);
                 $this->startEmail($email, $username, $subject, $body);
 			}
 		}