|
From: <chr...@us...> - 2018-10-26 08:11:03
|
Revision: 13391
http://sourceforge.net/p/xoops/svn/13391
Author: chronolabscoop
Date: 2018-10-26 08:10:58 +0000 (Fri, 26 Oct 2018)
Log Message:
-----------
Email API Rest 1.0.2!
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
*.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/version.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-10-22 00:49:07 UTC (rev 13390)
+++ *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/crons/find-mx-services.php 2018-10-26 08:10:58 UTC (rev 13391)
@@ -70,7 +70,7 @@
if ($found == false) {
list($count) = $GLOBALS['APIDB']->fetchRow($GLOBALS['APIDB']->queryF("SELECT count(*) FROM `" . $GLOBALS['APIDB']->prefix('mxs') . "` WHERE `mx` LIKE 'mx.".$domain['domain']."' AND `target` LIKE '".parse_url(API_URL, PHP_URL_HOST)."'"));
if ($count == 0) {
- if (!$GLOBALS['APIDB']->queryF($sql = "INSERT INTO `" . $GLOBALS['APIDB']->prefix('mxs') . "` (`domainid`, `uid`, `pid`, `mx`, `target`, `piroirity`, `mxcheck`) VALUES('".$domain['id']."', '".$domain['uid']."','".$domain['pid']."','mx.".$domain['domain']."','".parse_url(API_URL, PHP_URL_HOST)."','".($pirority+10)."', UNIX_TIMESTAMP() + $seconds)"))
+ if (!$GLOBALS['APIDB']->queryF($sql = "INSERT INTO `" . $GLOBALS['APIDB']->prefix('mxs') . "` (`domainid`, `uid`, `pid`, `mx`, `target`, `pirority`, `mxcheck`) VALUES('".$domain['id']."', '".$domain['uid']."','".$domain['pid']."','mx.".$domain['domain']."','".parse_url(API_URL, PHP_URL_HOST)."','".($pirority+10)."', UNIX_TIMESTAMP() + $seconds)"))
die("SQL Failed: $sql;");
else
echo("\nSQL Success: $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-10-22 00:49:07 UTC (rev 13390)
+++ *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/functions.php 2018-10-26 08:10:58 UTC (rev 13391)
@@ -1332,7 +1332,7 @@
$form[] = "\t\t</tr>";
$form[] = "\t\t<tr>";
$form[] = "\t\t\t<td colspan='3' style='padding-left:64px;'>";
- $form[] = "\t\t\t\t<input type='hidden' value='newdomain' name='mode'>";
+ $form[] = "\t\t\t\t<input type='hidden' value='domains' name='mode'>";
$form[] = "\t\t\t\t<input type='submit' value='Create New Domain' name='submit' style='padding:11px; font-size:122%;'>";
$form[] = "\t\t\t</td>";
$form[] = "\t\t</tr>";
@@ -1355,7 +1355,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>";
@@ -1419,7 +1419,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>";
Modified: *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/version.php
===================================================================
--- *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/version.php 2018-10-22 00:49:07 UTC (rev 13390)
+++ *.xoops.org (Subdomain APIs & Sites)/email.xoops.org/include/version.php 2018-10-26 08:10:58 UTC (rev 13391)
@@ -41,5 +41,5 @@
/**
* Define API version
*/
-define('API_VERSION', 'Emails Propogation REST Services API 1.0.1');
+define('API_VERSION', 'Emails Propogation REST Services API 1.0.2');
define('API_TYPE', 'emails-api');
|