- // Include is readable?
- if (FILE_READABLE($fqfn)) {
- // Include it
- require($fqfn);
- } // END - if
- }
-} else {
- // You have to configure first!
- LOAD_URL("install.php");
+// Code set?
+if (isGetRequestParameterSet('code')) {
+ // Generate image
+ generateImageOrCode(bigintval(getRequestParameter('code')));
+} elseif (isGetRequestParameterSet('img')) {
+ // 'img' set so create the IFN (Include-FileName)
+ $inc = sprintf("inc/img/tag-%s.php",
+ getRequestParameter('img')
+ );
+
+ // Include is readable?
+ if (isIncludeReadable($inc)) {
+ // Include it
+ loadInclude($inc);
+ } // END - if