| @@ 135-142 (lines=8) @@ | ||
| 132 | $cached = $xml->cachedUntil[0]; |
|
| 133 | $baseUnix = strtotime($cached); |
|
| 134 | $cacheClr = $baseUnix - 13500; |
|
| 135 | if ($cacheClr <= time()) { |
|
| 136 | $weirdTime = time() + 1830; |
|
| 137 | $cacheTimer = gmdate("Y-m-d H:i:s", $weirdTime); |
|
| 138 | setPermCache("mailLastChecked{$keyID}", $weirdTime); |
|
| 139 | } else { |
|
| 140 | $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr); |
|
| 141 | setPermCache("mailLastChecked{$keyID}", $cacheClr); |
|
| 142 | } |
|
| 143 | ||
| 144 | $mails = array(); |
|
| 145 | if (isset($data["@attributes"])) { |
|
| @@ 159-166 (lines=8) @@ | ||
| 156 | if (!isset($this->fuelChannel)) { |
|
| 157 | $this->fuelChannel = $this->toDiscordChannel; |
|
| 158 | } |
|
| 159 | if ($cacheClr <= time()) { |
|
| 160 | $weirdTime = time() + 1830; |
|
| 161 | $cacheTimer = gmdate("Y-m-d H:i:s", $weirdTime); |
|
| 162 | setPermCache("notificationsLastChecked{$keyID}", $weirdTime); |
|
| 163 | } else { |
|
| 164 | $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr); |
|
| 165 | setPermCache("notificationsLastChecked{$keyID}", $cacheClr); |
|
| 166 | } |
|
| 167 | $data = json_decode(json_encode(simplexml_load_string(downloadData($url), |
|
| 168 | "SimpleXMLElement", LIBXML_NOCDATA)), true); |
|
| 169 | $data = $data["result"]["rowset"]["row"]; |
|
| @@ 590-597 (lines=8) @@ | ||
| 587 | $cached = $xml->cachedUntil[0]; |
|
| 588 | $baseUnix = strtotime($cached); |
|
| 589 | $cacheClr = $baseUnix - 13500; |
|
| 590 | if ($cacheClr <= time()) { |
|
| 591 | $weirdTime = time() + 21700; |
|
| 592 | $cacheTimer = gmdate("Y-m-d H:i:s", $weirdTime); |
|
| 593 | setPermCache("siloLastChecked{$keyID}", $weirdTime); |
|
| 594 | } else { |
|
| 595 | $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr); |
|
| 596 | setPermCache("siloLastChecked{$keyID}", $cacheClr); |
|
| 597 | } |
|
| 598 | $this->logger->addInfo("siloFull: Silo Check Complete Next Check At {$cacheTimer}"); |
|
| 599 | return null; |
|
| 600 | ||
| @@ 177-184 (lines=8) @@ | ||
| 174 | $cached = $xml->cachedUntil[0]; |
|
| 175 | $baseUnix = strtotime($cached); |
|
| 176 | $cacheClr = $baseUnix - 13500; |
|
| 177 | if ($cacheClr <= time()) { |
|
| 178 | $weirdTime = time() + 21700; |
|
| 179 | $cacheTimer = gmdate("Y-m-d H:i:s", $weirdTime); |
|
| 180 | setPermCache("siphonLastChecked{$siphonCorp["keyID"]}", $weirdTime); |
|
| 181 | } else { |
|
| 182 | $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr); |
|
| 183 | setPermCache("siphonLastChecked{$siphonCorp["keyID"]}", $cacheClr); |
|
| 184 | } |
|
| 185 | $this->logger->addInfo("Siphons: Siphon Check Complete Next Check At {$cacheTimer}"); |
|
| 186 | return null; |
|
| 187 | } |
|