-// Script installed?
-if (isBooleanConstantAndTrue('mxchange_installed')) {
- // 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,
- SQL_ESCAPE($_GET['tag'])
- );
+// Code set?
+if (isGetRequestElementSet('code')) {
+ // Generate image
+ generateImageOrCode(bigintval(getRequestElement('code')));
+} elseif (isGetRequestElementSet('img')) {
+ // 'img' set so create the IFN (Include-FileName)
+ $inc = sprintf('inc/img/img_%s.php', getRequestElement('img'));