if (is_int($number)) { $message .= "<td style=\" background-color: #FFFF00\">" . $number . "</td>\n"; } else { $message .= "<td style=\" background-color: #FFFF00\">" . "ERROR" . "</td>\n"; } } } else { //Old Version foreach ($draw as $number) { if (is_int($number)) { $message .= "<td style=\" background-color: " . $color . $number . "</td>\n"; } else { $message .= "<td style=\" background-color: " . $color . "ERROR" . "</td>\n"; } } } $message .= "</tr>\n"; $oddLine = !$oddLine; } $message .= "</table>\n"; $message .= "</body></html>\n"; //Requesting to sending email. $authSendEmail = new \api\AuthSendEmail(); $authSendEmail->sendEmail($json['email'], $subject, $message); header("HTTP/1.0 200 OK"); echo json_encode($result); } } else { LOGS("Problems...."); header("HTTP/1.0 403 Forbidden"); }
function LOGD($log) { LOGS($log); }