- // Code set?
- if (!empty($_GET['code'])) {
- // Generate image
- GENERATE_IMAGE(bigintval($_GET['code']));
- } elseif (!empty($_GET['tag'])) {
- // Tag set so create the IFN (Include-FileName)
- $INC = sprintf("inc/img/tag-%s.php",
- 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'));