|
From: <chr...@us...> - 2018-11-26 20:05:12
|
Revision: 13397
http://sourceforge.net/p/xoops/svn/13397
Author: chronolabscoop
Date: 2018-11-26 20:05:07 +0000 (Mon, 26 Nov 2018)
Log Message:
-----------
Emails/Aliases Account's Propogation REST API Services - v1.0.7
Modified Paths:
--------------
*.xoops.org (Subdomain APIs & Sites)/email.xoops.org/crons/find-mx-services.php
*.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/functions.php
Modified: *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/crons/find-mx-services.php
===================================================================
--- *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/crons/find-mx-services.php 2018-11-26 19:35:19 UTC (rev 13396)
+++ *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/crons/find-mx-services.php 2018-11-26 20:05:07 UTC (rev 13397)
@@ -138,7 +138,7 @@
$mailers = new APIMailer($from['email'], $from['name']);
$body = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'email-mx-service.html');
$mailers->multimailer->IsHTML(true);
- if ($mailers->send($to, $cc, array($from['email']), "MX DNS Record Required for: " . $domain['domain'], str_replace("%apiurl", API_URL, str_replace('%company', API_LICENSE_COMPANY, str_replace('%domain', $domain['domain'], str_replace('%mx', $mx['mx'], str_replace('%target', $mx['target'], str_replace('%pirority', $mx['pirority'], str_replace('%fromname', $from['name'], str_replace('%fromemail', $from['email'], $body))))))))))
+ if ($mailers->sendMail($to, $cc, array($from['email']), "MX DNS Record Required for: " . $domain['domain'], str_replace("%apiurl", API_URL, str_replace('%company', API_LICENSE_COMPANY, str_replace('%domain', $domain['domain'], str_replace('%mx', $mx['mx'], str_replace('%target', $mx['target'], str_replace('%pirority', $mx['pirority'], str_replace('%fromname', $from['name'], str_replace('%fromemail', $from['email'], $body))))))))), array(), "", true)
{
if (!$GLOBALS['APIDB']->queryF($sql = "UPDATE `" . $GLOBALS['APIDB']->prefix('domains') . "` SET `mxemail` = UNIX_TIMESTAMP() + " . (3600 * 24 * mt_rand(2, 5)) . " WHERE `id` = " . $domain['id']))
die("SQL Failed: $sql;");
Modified: *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/functions.php
===================================================================
--- *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/functions.php 2018-11-26 19:35:19 UTC (rev 13396)
+++ *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/functions.php 2018-11-26 20:05:07 UTC (rev 13397)
@@ -1517,7 +1517,7 @@
$form[] = "\t\t\t<td style='width: 320px;'>";
$form[] = "\t\t\t\t<input type='textbox' name='username' id='username' size='23' /> <strong style='font-size: 247%'>@</strong> ";
$form[] = "\t\t\t\t<select name='domain' id='format'/>";
- $result = $GLOBALS['APIDB']->queryF("SELECT md5(concat(`id`, '" . API_URL . "', 'domain')) as `key`, `domain` FROM `" . $GLOBALS['APIDB']->prefix('domains') . "` WHERE `mxcover` > UNIX_TIMESTAMP() ORDER BY `domain` ASC");
+ $result = $GLOBALS['APIDB']->queryF("SELECT md5(concat(`id`, '" . API_URL . "', 'domain')) as `key`, `domain` FROM `" . $GLOBALS['APIDB']->prefix('domains') . "` WHERE `mxcover` < UNIX_TIMESTAMP() ORDER BY `domain` ASC");
while($row = $GLOBALS['APIDB']->fetchArray($result))
$form[] = "\t\t\t\t\t<option value='".$row['key']."'>".$row['domain']."</option>";
$form[] = "\t\t\t\t</select>";
@@ -1582,7 +1582,7 @@
$form[] = "\t\t\t<td style='width: 320px;'>";
$form[] = "\t\t\t\t<input type='textbox' name='email[username]' id='email' size='23' /> <strong style='font-size: 247%'>@</strong> ";
$form[] = "\t\t\t\t<select name='email[domainkey]' id='format'/>";
- $result = $GLOBALS['APIDB']->queryF("SELECT md5(concat(`id`, '" . API_URL . "', 'domain')) as `key`, `domain` FROM `" . $GLOBALS['APIDB']->prefix('domains') . "` WHERE `mxcover` > UNIX_TIMESTAMP() ORDER BY `domain` ASC");
+ $result = $GLOBALS['APIDB']->queryF("SELECT md5(concat(`id`, '" . API_URL . "', 'domain')) as `key`, `domain` FROM `" . $GLOBALS['APIDB']->prefix('domains') . "` WHERE `mxcover` < UNIX_TIMESTAMP() ORDER BY `domain` ASC");
while($row = $GLOBALS['APIDB']->fetchArray($result))
$form[] = "\t\t\t\t\t<option value='".$row['key']."'>".$row['domain']."</option>";
$form[] = "\t\t\t\t</select>";
|