- // 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 (REQUEST_ISSET_GET(('code'))) {
+ // Generate image
+ GENERATE_IMAGE(bigintval(REQUEST_GET('code')));
+} elseif (REQUEST_ISSET_GET('tag')) {
+ // Tag set so create the IFN (Include-FileName)
+ $INC = sprintf("inc/img/tag-%s.php",
+ REQUEST_GET('tag')
+ );
+
+ // Include is readable?
+ if (isIncludeReadable($INC)) {
+ // Include it
+ loadInclude($INC);
+ } // END - if