· 6 years ago · Jun 26, 2019, 02:58 PM
1<?php
2
3 //error_reporting(E_ALL);
4 //ini_set('display_errors', TRUE);
5 //ini_set('display_startup_errors', TRUE);
6
7 ob_start();
8 session_start();
9
10 $username = $_POST['username'];
11 $referrer = (isset($_POST['referrer']) ? $_POST['referrer'] : '');
12 $url = (isset($_POST['url']) ? trim($_POST['url']) : '');
13 $origin = $_POST['origin'];
14
15 if($origin == 'freetrial.html') {
16 if(!empty($url)) {
17 if(!strstr($url, 'http://') && !strstr($url, 'https://') && !strstr($url, 'shttp://')) {
18 $url = 'http://'.$url;
19 }
20 } else {
21 header('Location: freetrial.html?action=error_url');
22 exit();
23 }
24 }
25
26 if (empty($referrer)) { $referrer = $_COOKIE['trafficbotrefcookie']; }
27 if (empty($referrer)) { $referrer = ""; }
28
29 if (empty($keyw)) { $keyw = $_COOKIE['trafficbotkeycookie']; }
30 if (empty($keyw)) { $keyw = ""; }
31
32 if (empty($httpref)) { $httpref = $_COOKIE['trafficbothttprefcookie']; }
33 if (empty($httpref)) { $httpref = ""; }
34
35
36 //var_dump($_POST);
37 include("db.php");
38
39 $timestamp = time();
40 //$d = new DateTime( date('Y-m-d H:i:s.'.$micro,$t) );
41 $d = new DateTime( date('Y-m-d H:i:s') );
42 $insertDate = $d->format("Y-m-d H:i:s.u"); // note at point on "u"
43 $resultOk = "LOGIN";
44 $resultFail = "ERROR";
45 $ip = $_SERVER['REMOTE_ADDR'];
46
47 //var_dump($username);
48
49 $query = "SELECT * FROM `useraccounts` WHERE login='$username'";
50 $result = $mysqli->query($query);
51
52 //var_dump($result);
53 $n=0;
54 while ($row = $result->fetch_array(MYSQLI_ASSOC)) {
55 $n++;
56 }
57
58 if ($n > 0) {
59 //echo "Username: " . $username ."<br>";
60 //echo "n: ". $n ." Email address already exists.";
61 header('Location: register.html?action=error');
62 } else {
63
64 // validate url
65 // @TODO change to regular expressions
66 if($origin == 'freetrial.html') {
67 if (strstr($url, '@') !== FALSE) {
68 header('Location: register.html?action=error_url');
69 exit();
70 }
71 if(!strstr($url, 'http://') && !strstr($url, 'https://') && !strstr($url, 'shttp://')){
72 $url = 'http://'.$url;
73 }
74 if ( filter_var($url, FILTER_VALIDATE_URL) === FALSE || strstr($url, '.') === FALSE ) {
75 header('Location: register.html?action=error_url');
76 exit();
77 }
78 }
79 $ipaddress = $_SERVER['REMOTE_ADDR'];
80
81 // checking that url already exists
82 //$parse = parse_url($url); /// @TODO add advanced site checking
83 require('/var/www/upseo.io/url.php');
84 $oUrl = new Url;
85 if (isset($_COOKIE['ftf']) || $oUrl->isFreeTrialDuplicated($url, $ipaddress)) {
86 header('Location: register.html?action=error_trial');
87 exit();
88 }
89
90 $apikey = trim(chr(mt_rand(32,32)).substr(md5(time()),1));
91 $unique = trim(chr(mt_rand(32,32)).substr(md5(time()),1));
92
93 $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
94 $string = '';
95 for ($i = 0; $i < 12; $i++) {
96 $string .= $characters[rand(0, strlen($characters) - 1)];
97 }
98 $password = trim($string);
99 $language = "EN";
100
101 if(isset($_POST['fb_id']) && !empty($_POST['fb_id'])) {
102 $mysqli->query("INSERT INTO `useraccounts` (created, login, password, referrer, reseller_level, apikey, uniquekey, expnotify, sysnotify, newsletter, trialurl, language, origin, keyword, httpref, firstname, lastname, fb_id, is_from_fb)
103 VALUES ('$timestamp', '$username', '$password', '$referrer', 'none', '$apikey', '$unique', 'yes', 'yes', 'yes', '$url', '$language', '$origin', '$keyw', '$httpref', '".$_POST['fb_first_name']."', '".$_POST['fb_last_name']."', '".$_POST['fb_id']."', 1) ") or die($mysqli->error);
104 } else {
105 $mysqli->query("INSERT INTO `useraccounts` (created, login, password, referrer, reseller_level, apikey, uniquekey, expnotify, sysnotify, newsletter, trialurl, origin, keyword, httpref) VALUES('$timestamp', '$username', '$password', '$referrer', 'none', '$apikey', '$unique', 'yes', 'yes', 'yes', '$url', '$origin', '$keyw', '$httpref') ") or die($mysqli->error);
106 }
107
108
109 // Add to MailChimp list
110
111 include("/var/www/en.upseo.io/mailchimp.php");
112 $MailChimp = new \DrewM\MailChimp\MailChimp('80f0b1d93b549452876e0c865e362b22-us20');
113 $list_id = '9aa2f3917e';
114 $result = $MailChimp->post("lists/$list_id/members", [
115 'email_address' => $username,
116 'status' => 'subscribed',
117 ]);
118 //print_r($result);
119
120 // Add Tags to MailChimp User
121 $hashed= md5(strtolower($username));
122
123 if(trim($origin) == "freetrial.html") {
124 $mctag = "FREETRIAL";
125 $resultTag = $MailChimp->post("lists/$list_id/members/$hashed/tags", [ 'tags' => [ ['name' => 'FREETRIAL', 'status' => 'active' ] ] ]);
126 } else {
127 $mctag = "REGULAR";
128 $resultTag = $MailChimp->post("lists/$list_id/members/$hashed/tags", [ 'tags' => [ ['name' => 'REGULAR', 'status' => 'active' ] ] ]);
129 }
130
131 //$payload = '{ "tags": [ { "name": "youtube", "status": "active" }, { "name": "vimeo", "status": "active" } ] }';
132 // $payload = '{ "tags": [ { "name": "$tag1_name", "status": "active" }, { "name": "$tag1_name", "status": "active" } ] }';
133 // add as many tags as you like - make forwhile ifeach whatever you want
134
135 // END MAILCHIMP STUFF
136
137
138
139 $userquery = "SELECT id FROM `useraccounts` WHERE login='$username'";
140 $userresult = $mysqli->query($userquery);
141 while ($userrow = $userresult->fetch_array(MYSQLI_ASSOC)) {
142 $userId = $userrow["id"];
143 }
144
145
146
147 // Create Free TRIAL Project if URL present
148
149 if (!empty($url)) {
150 /*
151 $queryTarget = "SELECT id, serverslug, bots_running, bots_max FROM `tbserversdb`";
152 $resultTarget = $mysqli->query($queryTarget);
153 while ($rowTarget = $resultTarget->fetch_array(MYSQLI_ASSOC)) {
154 $serv_id = $rowTarget["id"];
155 $serverslug = $rowTarget["serverslug"];
156 $bots_running = $rowTarget["bots_running"];
157 $bots_max = $rowTarget["bots_max"];
158 $bots_available = $bots_max - $bots_running;
159
160 if ($bots_available > 10) {
161 $bingo = $serverslug;
162 }
163
164 }
165 */
166
167 require_once dirname(__FILE__).'/node.php';
168 $oNode = new Node();
169 $bingo = $oNode->getFree(10);
170 unset($oNode);
171
172 if (empty($bingo)) {
173 mail("wojtek@zeglin.co.uk", "Emergency - TrafficBot Server Needed", "We need to create a server for Free Trial project!");
174 $bingo="";
175 } else {
176 $timestamp = time();
177 $expires = $timestamp + (86400); // 24h
178 $unique = trim(chr(mt_rand(32,32)).substr(md5(time()),1));
179 $title = "Free Trial";
180 $urlRedirection = $oUrl->isRedirection($url);
181 $urlRedirection = ($urlRedirection ? $urlRedirection : '');
182
183 $mysqli->query( "INSERT INTO `projects` (owner_id, created, expires, lastchecked, updated, serverslug, size, uniquekey, title, url, url_second, timeonpage, source, behaviour, traffictype, bots, timezone, ip_address, is_trial, url_detected)
184 VALUES ('$userId', '$timestamp', '$expires', '$timestamp', '$timestamp','$bingo', 'mini', '$unique', '$title', '$url', '$url', '5sec', 'FR', 'realistic', 'direct', '5', 'no', '$ipaddress', 1, '$urlRedirection') " ) or die($mysqli->error);
185
186 setcookie('ftf', 'no_ftf', time()+(365*24*60*60), '/'); // Free Trial Fraud COOKIE
187 }
188
189 }
190 unset($oUrl);
191
192
193
194
195
196 // Insert first ads
197 $campquery = "SELECT * FROM `campaigns` WHERE creatorid='111'";
198 $campresult = $mysqli->query($campquery);
199 while ($camprow = $campresult->fetch_array(MYSQLI_ASSOC)) {
200
201 $timestamp = time();
202
203 $campaignid = $camprow["id"];
204 $viewsassigned = $camprow["viewsassigned"];
205 $approved = $camprow["approved"];
206 $status = $camprow["status"];
207
208 $value = "0.005";
209
210 if (($approved == "approved") && ($status == "active") && ($viewsassigned > 0)) {
211 // All good, issue ad
212
213 echo "Issuing campaign " . $campaignid . " to user " . $userId . ".\n";
214
215 $mysqli->query("INSERT INTO `ads` (issued, campaignid, campaignstatus, viewerid, value) VALUES('$timestamp', '$campaignid', '$status', '$userId', '$value') ") or die($mysqli->error);
216
217 }
218
219 }
220
221
222 // Send system emails
223
224 $adminmail = 'wojtek@zeglin.co.uk';
225 $adminsubject = 'Votre compte a été créé avec succès!';
226 $adminheaders = 'From: "UpSEO" <hello@upseo.io>' . "\r\n" .
227 'Reply-To: hello@upseo.io' . "\r\n".
228 'Content-Type: text/html; charset=UTF-8' . "\r\n";
229
230
231 $adminmsg = 'New account has been created, login: '.$username.', URL: ' .$url .'';
232
233 $firstBuyMsg = "Hello,<br><br>Thank you for creating an account! We hope you will enjoy using UpSEO.<br><br>Here are your login details:<br><br>
234 URL: <a href='https://www.upseo.io/login.html'>https://www.upseo.io/login.html</a><br>
235 Login: " . $username . "<br>
236 Password: " . $password . "<br><br>
237 If you have any questions, feel free to send us a message.<br><br>
238 Best Regards,<br>
239 UpSEO.io Team";
240
241 //mail($adminmail, $adminsubject, $adminmsg, $adminheaders);
242 //mail($adminmail, $adminsubject, $firstBuyMsg, $adminheaders);
243 //mail($username, $adminsubject, $firstBuyMsg, $adminheaders);
244
245 require 'phpmailer/PHPMailerAutoload.php';
246 $mail = new PHPMailer;
247
248 $mail->isSMTP(); // Set mailer to use SMTP
249 $mail->Host = 'mail32.lwspanel.com'; // Specify main and backup SMTP servers
250 //$mail->SMTPDebug = true;
251 $mail->SMTPAuth = true; // Enable SMTP authentication
252 $mail->Username = 'robot@upseo.io'; // SMTP username
253 $mail->Password = '@UpRobo2000!'; // SMTP password
254 $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
255 $mail->Port = 587; // TCP port to connect to
256 $mail->CharSet = 'UTF-8';
257
258 $mail->setFrom('robot@upseo.io', 'UpSEO.io');
259 $mail->addAddress($username); // Name is optional
260 $mail->addReplyTo('hello@upseo.io', 'UpSEO.io');
261 //$mail->addCC('cc@example.com');
262 //$mail->addBCC('bcc@example.com');
263
264 //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
265 //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
266 $mail->isHTML(true); // Set email format to HTML
267
268 $mail->Subject = 'Your account has been successfully created!';
269$mail->Body = '
270<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
271<html style="width:100%;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;padding:0;Margin:0;">
272 <head>
273 <meta charset="UTF-8">
274 <meta content="width=device-width, initial-scale=1" name="viewport">
275 <meta name="x-apple-disable-message-reformatting">
276 <meta http-equiv="X-UA-Compatible" content="IE=edge">
277 <meta content="telephone=no" name="format-detection">
278 <title>Welcome</title>
279 <!--[if (mso 16)]>
280 <style type="text/css">
281 a {text-decoration: none;}
282 </style>
283 <![endif]-->
284 <!--[if gte mso 9]><style>sup { font-size: 100% !important; }</style><![endif]-->
285 <!--[if !mso]><!-- -->
286 <link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i" rel="stylesheet">
287 <!--<![endif]-->
288 <style type="text/css">
289@media only screen and (max-width:600px) {p, ul li, ol li, a { font-size:16px!important; line-height:150%!important } h1 { font-size:30px!important; text-align:center; line-height:120%!important } h2 { font-size:26px!important; text-align:center; line-height:120%!important } h3 { font-size:20px!important; text-align:center; line-height:120%!important } h1 a { font-size:30px!important } h2 a { font-size:26px!important } h3 a { font-size:20px!important } .es-menu td a { font-size:16px!important } .es-header-body p, .es-header-body ul li, .es-header-body ol li, .es-header-body a { font-size:16px!important } .es-footer-body p, .es-footer-body ul li, .es-footer-body ol li, .es-footer-body a { font-size:16px!important } .es-infoblock p, .es-infoblock ul li, .es-infoblock ol li, .es-infoblock a { font-size:12px!important } *[class="gmail-fix"] { display:none!important } .es-m-txt-c, .es-m-txt-c h1, .es-m-txt-c h2, .es-m-txt-c h3 { text-align:center!important } .es-m-txt-r, .es-m-txt-r h1, .es-m-txt-r h2, .es-m-txt-r h3 { text-align:right!important } .es-m-txt-l, .es-m-txt-l h1, .es-m-txt-l h2, .es-m-txt-l h3 { text-align:left!important } .es-m-txt-r img, .es-m-txt-c img, .es-m-txt-l img { display:inline!important } .es-button-border { display:block!important } a.es-button { font-size:20px!important; display:block!important; border-left-width:0px!important; border-right-width:0px!important } .es-btn-fw { border-width:10px 0px!important; text-align:center!important } .es-adaptive table, .es-btn-fw, .es-btn-fw-brdr, .es-left, .es-right { width:100%!important } .es-content table, .es-header table, .es-footer table, .es-content, .es-footer, .es-header { width:100%!important; max-width:600px!important } .es-adapt-td { display:block!important; width:100%!important } .adapt-img { width:100%!important; height:auto!important } .es-m-p0 { padding:0px!important } .es-m-p0r { padding-right:0px!important } .es-m-p0l { padding-left:0px!important } .es-m-p0t { padding-top:0px!important } .es-m-p0b { padding-bottom:0!important } .es-m-p20b { padding-bottom:20px!important } .es-mobile-hidden, .es-hidden { display:none!important } .es-desk-hidden { display:table-row!important; width:auto!important; overflow:visible!important; float:none!important; max-height:inherit!important; line-height:inherit!important } .es-desk-menu-hidden { display:table-cell!important } table.es-table-not-adapt, .esd-block-html table { width:auto!important } table.es-social { display:inline-block!important } table.es-social td { display:inline-block!important } }
290#outlook a {
291 padding:0;
292}
293.ExternalClass {
294 width:100%;
295}
296.ExternalClass,
297.ExternalClass p,
298.ExternalClass span,
299.ExternalClass font,
300.ExternalClass td,
301.ExternalClass div {
302 line-height:100%;
303}
304.es-button {
305 mso-style-priority:100!important;
306 text-decoration:none!important;
307}
308a[x-apple-data-detectors] {
309 color:inherit!important;
310 text-decoration:none!important;
311 font-size:inherit!important;
312 font-family:inherit!important;
313 font-weight:inherit!important;
314 line-height:inherit!important;
315}
316.es-desk-hidden {
317 display:none;
318 float:left;
319 overflow:hidden;
320 width:0;
321 max-height:0;
322 line-height:0;
323 mso-hide:all;
324}
325</style>
326 </head>
327 <body style="width:100%;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;padding:0;Margin:0;">
328 <div class="es-wrapper-color" style="background-color:#F4F4F4;">
329 <!--[if gte mso 9]>
330 <v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
331 <v:fill type="tile" color="#f4f4f4"></v:fill>
332 </v:background>
333 <![endif]-->
334 <table class="es-wrapper" width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;padding:0;Margin:0;width:100%;height:100%;background-repeat:repeat;background-position:center top;">
335 <tr class="gmail-fix" height="0" style="border-collapse:collapse;">
336 <td style="padding:0;Margin:0;">
337 <table width="600" cellspacing="0" cellpadding="0" border="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
338 <tr style="border-collapse:collapse;">
339 <td cellpadding="0" cellspacing="0" border="0" style="padding:0;Margin:0;line-height:1px;min-width:600px;" height="0"> <img src="https://esputnik.com/repository/applications/images/blank.gif" style="display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;max-height:0px;min-height:0px;min-width:600px;width:600px;" alt width="600" height="1"> </td>
340 </tr>
341 </table> </td>
342 </tr>
343 <tr style="border-collapse:collapse;">
344 <td valign="top" style="padding:0;Margin:0;">
345 <table class="es-content" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;">
346 <tr style="border-collapse:collapse;">
347 </tr>
348 <tr style="border-collapse:collapse;">
349 <td align="center" style="padding:0;Margin:0;">
350 <table class="es-content-body" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;" width="600" cellspacing="0" cellpadding="0" align="center">
351 <tr style="border-collapse:collapse;">
352 <td align="left" style="Margin:0;padding-left:10px;padding-right:10px;padding-top:15px;padding-bottom:15px;">
353 <!--[if mso]><table width="580" cellpadding="0" cellspacing="0"><tr><td width="282" valign="top"><![endif]-->
354 <table class="es-left" cellspacing="0" cellpadding="0" align="left" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:left;">
355 <tr style="border-collapse:collapse;">
356 <td width="282" align="left" style="padding:0;Margin:0;">
357 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
358 <tr style="border-collapse:collapse;">
359 <td class="es-infoblock es-m-txt-c" align="left" style="padding:0;Margin:0;line-height:14px;font-size:12px;color:#CCCCCC;"> </td>
360 </tr>
361 </table> </td>
362 </tr>
363 </table>
364 <!--[if mso]></td><td width="20"></td><td width="278" valign="top"><![endif]-->
365 <table class="es-right" cellspacing="0" cellpadding="0" align="right" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:right;">
366 <tr style="border-collapse:collapse;">
367 <td width="278" align="left" style="padding:0;Margin:0;">
368 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
369 <tr style="border-collapse:collapse;">
370 <td class="es-infoblock es-m-txt-c" align="right" style="padding:0;Margin:0;line-height:14px;font-size:12px;color:#CCCCCC;"> </td>
371 </tr>
372 </table> </td>
373 </tr>
374 </table>
375 <!--[if mso]></td></tr></table><![endif]--> </td>
376 </tr>
377 </table> </td>
378 </tr>
379 </table>
380 <table class="es-header" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;background-color:#FFA73B;background-repeat:repeat;background-position:center top;">
381 <tr style="border-collapse:collapse;">
382 <td align="center" bgcolor="#07283A" style="padding:0;Margin:0;background-color:#07283A;">
383 <table class="es-header-body" width="600" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;">
384 <tr style="border-collapse:collapse;">
385 <td align="left" style="Margin:0;padding-bottom:10px;padding-left:10px;padding-right:10px;padding-top:20px;">
386 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
387 <tr style="border-collapse:collapse;">
388 <td width="580" valign="top" align="center" style="padding:0;Margin:0;">
389 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
390 <tr style="border-collapse:collapse;">
391 <td align="center" style="Margin:0;padding-left:10px;padding-right:10px;padding-top:25px;padding-bottom:25px;"> <img src="https://upseo.io/images/email/60561552207438035.png" alt style="display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;" width="170"></td>
392 </tr>
393 </table> </td>
394 </tr>
395 </table> </td>
396 </tr>
397 </table> </td>
398 </tr>
399 </table>
400 <table class="es-content" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;">
401 <tr style="border-collapse:collapse;">
402 <td style="padding:0;Margin:0;background-color:#07283A;" bgcolor="#07283a" align="center">
403 <table class="es-content-body" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;" width="600" cellspacing="0" cellpadding="0" align="center">
404 <tr style="border-collapse:collapse;">
405 <td align="left" style="padding:0;Margin:0;">
406 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
407 <tr style="border-collapse:collapse;">
408 <td width="600" valign="top" align="center" style="padding:0;Margin:0;">
409 <table style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:separate;border-spacing:0px;background-color:#FFFFFF;border-radius:0px;" width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
410 <tr style="border-collapse:collapse;">
411 <td align="center" bgcolor="#07283A" style="padding:0;Margin:0;"> <p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:33px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:50px;color:#FFFFFF;"><span style="font-size:50px;color:#ffffff;">Welcome!</span> </p> </td>
412 </tr>
413 </table> </td>
414 </tr>
415 </table> </td>
416 </tr>
417 </table> </td>
418 </tr>
419 </table>
420 <table class="es-content" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;">
421 <tr style="border-collapse:collapse;">
422 <td align="center" bgcolor="#07283a" style="padding:0;Margin:0;background-color:#07283A;">
423 <table class="es-content-body" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;" width="600" cellspacing="0" cellpadding="0" align="center">
424 <tr style="border-collapse:collapse;">
425 <td align="left" style="padding:0;Margin:0;">
426 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
427 <tr style="border-collapse:collapse;">
428 <td width="600" valign="top" align="center" style="padding:0;Margin:0;">
429 <table style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:separate;border-spacing:0px;border-radius:0px;background-color:#FFFFFF;" width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
430 <tr style="border-collapse:collapse;">
431 <td class="es-m-txt-l" bgcolor="#ffffff" align="left" style="Margin:0;padding-top:20px;padding-bottom:0px;padding-left:30px;padding-right:30px;"> <p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;">Hello and thank you for creating an account! We are excited to have you on board.</p></td>
432 </tr>
433 <tr style="border-collapse:collapse;">
434 <td class="es-m-txt-l" align="left" style="padding:0;Margin:0;padding-top:0px;padding-left:30px;padding-right:30px;"> <p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;">Your access details:</p><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;">URL: https://www.upseo.io/login.html</p><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;"></p><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;">Login: ' . $username . '</p><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;"></p><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;">Password: ' . $password. '</p></td>
435 </tr>
436 <tr style="border-collapse:collapse;">
437 <td class="es-m-txt-l" align="left" style="padding:0;Margin:0;padding-top:0px;padding-left:30px;padding-right:30px;"> <p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;">Below you will find an introductory video to UpSEO software.</p><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;">Best Regards,</p><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:18px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:27px;color:#666666;">Teddy from UpSEO</p></td>
438 </tr>
439 <tr style="border-collapse:collapse;">
440 <td align="center" style="padding:0;Margin:0;"> <a target="_blank" href="https://www.youtube.com/watch?v=pqrl2EvZVXM&t=11s" style="-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;font-size:18px;text-decoration:underline;color:#FFA73B;"> <img class="adapt-img" src="https://upseo.io/images/email/7541552210717077.png" alt="upseo.io google analytics" width="350" title="upseo.io google analytics" style="display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;"> </a> </td>
441 </tr>
442 </table> </td>
443 </tr>
444 </table> </td>
445 </tr>
446 </table> </td>
447 </tr>
448 </table>
449
450 <table class="es-footer" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;background-color:transparent;background-repeat:repeat;background-position:center top;">
451 <tr style="border-collapse:collapse;">
452 <td align="center" bgcolor="#07283a" style="padding:0;Margin:0;background-color:#07283A;">
453 <table class="es-footer-body" width="600" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;">
454 <tr style="border-collapse:collapse;">
455 <td align="left" style="Margin:0;padding-top:30px;padding-bottom:30px;padding-left:30px;padding-right:30px;background-position:left top;background-color:#FFFFFF;" bgcolor="#fff">
456 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
457 <tr style="border-collapse:collapse;">
458 <td width="540" valign="top" align="center" style="padding:0;Margin:0;">
459 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
460
461 <tr style="border-collapse:collapse;">
462 <td align="left" style="padding:0;Margin:0;padding-top:25px;"> <p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:14px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:21px;color:#666666;">UpSEO supports you in your SEO strategy, and can help you to configure your project. Need assistance? Contact Teddy using our Chatbot.</p></td>
463 </tr>
464 <tr style="border-collapse:collapse;">
465 <td align="left" style="padding:0;Margin:0;padding-top:0px;"> <p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:14px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:21px;color:#666666;">Please do not reply to this email. We are available 7 days a week at the following address: <a href="mailto:hello@upseo.io">hello@upseo.io</a></p> </td>
466 </tr>
467 <tr style="border-collapse:collapse;">
468 <td align="left" style="padding:0;Margin:0;padding-top:0px;"> <p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:14px;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;line-height:21px;color:#666666;">UPSEO - by BESPOKE LTD</p> </td>
469 </tr>
470 </table> </td>
471 </tr>
472 </table> </td>
473 </tr>
474 </table> </td>
475 </tr>
476 </table>
477 <table class="es-content" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;">
478 <tr style="border-collapse:collapse;">
479 <td align="center" bgcolor="#07283a" style="padding:0;Margin:0;background-color:#07283A;">
480 <table class="es-content-body" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#07283A;" width="600" cellspacing="0" cellpadding="0" align="center" bgcolor="#07283a">
481 <tr style="border-collapse:collapse;">
482 <td align="left" style="Margin:0;padding-left:20px;padding-right:20px;padding-top:30px;padding-bottom:30px;background-position:left top;">
483 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
484 <tr style="border-collapse:collapse;">
485 <td width="560" valign="top" align="center" style="padding:0;Margin:0;">
486 <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;">
487 <tr style="border-collapse:collapse;">
488 <td class="es-infoblock" align="center" style="padding:0;Margin:0;line-height:14px;font-size:12px;color:#CCCCCC;"> <a target="_blank" href="http://viewstripo.email/?utm_source=templates&utm_medium=email&utm_campaign=software2&utm_content=trigger_newsletter" style="-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:lato, /"helvetica neue/", helvetica, arial, sans-serif;font-size:12px;text-decoration:underline;color:#CCCCCC;"> <img src="https://upseo.io/images/email/60561552207438035.png" alt width="190" style="display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;"> </a> </td>
489 </tr>
490 </table> </td>
491 </tr>
492 </table> </td>
493 </tr>
494 </table> </td>
495 </tr>
496 </table> </td>
497 </tr>
498 </table>
499 </div>
500 </body>
501</html>
502';
503
504$mail->AltBody = "Hello,
505
506Thank you for creating an account! We hope you will enjoy using UpSEO.<br><br>Here are your login details:
507URL: <a href='https://www.upseo.io/login.html'>https://www.upseo.io/login.html</a>
508Login: " . $username . "
509Password: " . $password . "
510If you have any questions, feel free to send us a message.
511
512Best Regards,
513UpSEO Team";
514
515 if(!$mail->send()) {
516 echo 'There was an error. Please try again.';
517 //echo 'Mailer Error: ' . $mail->ErrorInfo;
518 } else {
519 //echo 'Message has been sent.';
520 }
521
522
523 header('Location: register.html?action=success');
524 }
525
526
527
528
529
530?>