if (isFileReadable($FQFN)) {
$image = imagecreatefrompng($FQFN);
- sendHeader("Content-type: image/png");
+ sendHeader('Content-type: image/png');
imagepng($image);
imagedestroy($image);
}
$test = strtolower($content);
// Do we need to strip out above and including <body> plus trailing </html> tag?
- if ((strpos($test, "<body") > 0) && (strpos($test, "</body>") > 0)) {
+ if ((strpos($test, '<body') > 0) && (strpos($test, '</body>') > 0)) {
// Okay, then do so.
$content = substr(substr($content, 0, $body_end), $body_start);
- $content = substr($content, strpos($content, ">") + 1);
+ $content = substr($content, strpos($content, '>') + 1);
} // END - if
// Output code