$GLOBALS['module'] = "img"; $CSS = -1;
// Load the required file(s)
-require("inc/config.php");
+require_once("inc/config.php");
// Script installed?
if (isBooleanConstantAndTrue('mxchange_installed')) {
// Load header
- require_once(PATH."inc/header.php");
+ LOAD_INC_ONCE("inc/header.php");
// Code set?
if (!empty($_GET['code'])) {
// Generate image
GENERATE_IMAGE(bigintval($_GET['code']));
} elseif (!empty($_GET['tag'])) {
- // Tag set so create FQFN
- $fqfn = sprintf("%sinc/img/tag-%s.php",
- PATH,
+ // Tag set so create the IFN (Include-FileName)
+ $INC = sprintf("inc/img/tag-%s.php",
SQL_ESCAPE($_GET['tag'])
);
// Include is readable?
- if (FILE_READABLE($fqfn)) {
+ if (FILE_READABLE($INC)) {
// Include it
- require($fqfn);
+ LOAD_INC($INC);
} // END - if
}
// Finish generation here
- require_once(PATH."inc/footer.php");
+ LOAD_INC_ONCE("inc/footer.php");
} else {
// You have to install first!
LOAD_URL("install.php");