| @@ 134-141 (lines=8) @@ | ||
| 131 | $cached = $xml->cachedUntil[0]; |
|
| 132 | $baseUnix = strtotime($cached); |
|
| 133 | $cacheClr = $baseUnix - 13500; |
|
| 134 | if ($cacheClr <= time()) { |
|
| 135 | $weirdTime = time() + 1830; |
|
| 136 | $cacheTimer = gmdate("Y-m-d H:i:s", $weirdTime); |
|
| 137 | setPermCache("mailLastChecked{$keyID}", $weirdTime); |
|
| 138 | } else { |
|
| 139 | $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr); |
|
| 140 | setPermCache("mailLastChecked{$keyID}", $cacheClr); |
|
| 141 | } |
|
| 142 | ||
| 143 | $mails = array(); |
|
| 144 | if (isset($data["@attributes"])) { $mails[] = $data["@attributes"]; } |
|
| @@ 623-630 (lines=8) @@ | ||
| 620 | $cached = $xml->cachedUntil[0]; |
|
| 621 | $baseUnix = strtotime($cached); |
|
| 622 | $cacheClr = $baseUnix - 13500; |
|
| 623 | if ($cacheClr <= time()) { |
|
| 624 | $weirdTime = time() + 21700; |
|
| 625 | $cacheTimer = gmdate("Y-m-d H:i:s", $weirdTime); |
|
| 626 | setPermCache("siloLastChecked{$keyID}", $weirdTime); |
|
| 627 | } else { |
|
| 628 | $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr); |
|
| 629 | setPermCache("siloLastChecked{$keyID}", $cacheClr); |
|
| 630 | } |
|
| 631 | ||
| 632 | if ($siloCount > 0) { |
|
| 633 | $msg = "Next Silo Check At: {$cacheTimer} EVE Time"; |
|
| @@ 158-165 (lines=8) @@ | ||
| 155 | if (!isset($this->fuelChannel)) { |
|
| 156 | $this->fuelChannel = $this->toDiscordChannel; |
|
| 157 | } |
|
| 158 | if ($cacheClr <= time()) { |
|
| 159 | $weirdTime = time() + 1830; |
|
| 160 | $cacheTimer = gmdate("Y-m-d H:i:s", $weirdTime); |
|
| 161 | setPermCache("notificationsLastChecked{$keyID}", $weirdTime); |
|
| 162 | } else { |
|
| 163 | $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr); |
|
| 164 | setPermCache("notificationsLastChecked{$keyID}", $cacheClr); |
|
| 165 | } |
|
| 166 | $data = json_decode(json_encode(simplexml_load_string(downloadData($url), |
|
| 167 | "SimpleXMLElement", LIBXML_NOCDATA)), true); |
|
| 168 | $data = $data["result"]["rowset"]["row"]; |
|
| @@ 154-161 (lines=8) @@ | ||
| 151 | $cached = $xml->cachedUntil[0]; |
|
| 152 | $baseUnix = strtotime($cached); |
|
| 153 | $cacheClr = $baseUnix - 13500; |
|
| 154 | if ($cacheClr <= time()) { |
|
| 155 | $weirdTime = time() + 21700; |
|
| 156 | $cacheTimer = gmdate("Y-m-d H:i:s", $weirdTime); |
|
| 157 | setPermCache("siphonLastChecked{$keyID}", $weirdTime); |
|
| 158 | } else { |
|
| 159 | $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr); |
|
| 160 | setPermCache("siphonLastChecked{$keyID}", $cacheClr); |
|
| 161 | } |
|
| 162 | if ($siphonCount > 0) { |
|
| 163 | $msg = "Next Siphon Check At: {$cacheTimer} EVE Time"; |
|
| 164 | $channelID = $this->toDiscordChannel; |
|