|
|
@@ -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;"> </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 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;"> </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 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);
|
|
|
}
|
|
|
}
|