X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=img.php;h=15fb090ac9e17093263964bd3753af22ed47e5ee;hb=49ffe0a4fb551d0965e97db1ad4ff12f13f4b9ad;hp=c962aeca321935c06f7ea5ef5c8f1fb1dc2dd6ce;hpb=1c004d0ffe3d1bfee3ea2128f6c0165eda61baf3;p=mailer.git diff --git a/img.php b/img.php index c962aeca32..15fb090ac9 100644 --- a/img.php +++ b/img.php @@ -42,10 +42,13 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "img"; $CSS = -1; // Load the required file(s) -require ("inc/config.php"); +require("inc/config.php"); // Script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { + // Load header + require_once(PATH."inc/header.php"); + // Code set? if (!empty($_GET['code'])) { // Generate image @@ -63,8 +66,11 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { require($fqfn); } // END - if } + + // Finish generation here + require_once(PATH."inc/footer.php"); } else { - // You have to configure first! + // You have to install first! LOAD_URL("install.php"); }