]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-usage.php
Some fixes for surfbar extension (#123), double->single, misc cleanups/fixes
[mailer.git] / inc / modules / admin / what-usage.php
index 0f77c2730caa11d760d009ed4137b582a30540f8..70d433eb40e1c04d0102118d95fcd1c9c458cb52 100644 (file)
@@ -66,7 +66,7 @@ if (REQUEST_ISSET_GET(('image'))) {
 
        if (isFileReadable($FQFN)) {
                $image = imagecreatefrompng($FQFN);
-               sendHeader("Content-type: image/png");
+               sendHeader('Content-type: image/png');
                imagepng($image);
                imagedestroy($image);
        }
@@ -100,14 +100,14 @@ if ((!empty($FQFN)) && (isFileReadable($FQFN))) {
        $content = str_replace("usage_", "{!URL!}/modules.php?module=admin&what=".$GLOBALS['what']."&usage=", str_replace(".html", '', $content));
 
        // Disabled due to too much trouble
-       //$content = str_replace("HREF=\"http://", "href=\"{!URL!}/modules.php?module=loader&url=http://", $content);
+       //$content = str_replace("HREF=\'http://', "href=\"{!URL!}/modules.php?module=loader&url=http://", $content);
        $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