X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=img.php;h=09cafe5146de8bc60609fdd19009d34073a20158;hb=4111c233803817fc7c28d56cf3914f6478fa5c82;hp=54b2173947309fed0661fb14402f9322744b783f;hpb=64ac34f8ebcfef05d9b273dd2be693717483ba16;p=mailer.git diff --git a/img.php b/img.php index 54b2173947..09cafe5146 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,13 +66,13 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { require($fqfn); } // END - if } + + // Finish generation here + require_once(PATH."inc/footer.php"); } else { // You have to configure first! LOAD_URL("install.php"); } // Really all done here... ;-) -die(); - -// ?>