All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / img.php
diff --git a/img.php b/img.php
index 64919e4066fdf9b9650dd4e2dec2913b75b25dcb..15fb090ac9e17093263964bd3753af22ed47e5ee 100644 (file)
--- a/img.php
+++ b/img.php
@@ -1,6 +1,6 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/16/2008 *
+ * MXChange v0.2.1                                    Start: 10/12/2003 *
  * ===============                              Last change: 10/16/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
@@ -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!
+       // You have to install first!
        LOAD_URL("install.php");
 }
 
 // Really all done here... ;-)
-die();
-
-//
 ?>