-if (GET_ACTION("guest", $GLOBALS['what']) == "admin") {
- // Only when one admin link is clicked...
- $INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, $GLOBALS['what']);
- if (FILE_READABLE($INC)) {
- // Ok, we finally load the guest action module
- include($INC);
- } else {
- ADD_FATAL(GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2);
- }
-} // END - if
+// Add description as navigation point
+addYouAreHereLink('guest', __FILE__);
+
+// Only when one admin link is clicked...
+$inc = sprintf("inc/modules/guest/what-%s.php", getWhat());
+if (isIncludeReadable($inc)) {
+ // Ok, we finally load the guest action module
+ loadInclude($inc);
+} else {
+ addFatalMessage(__FILE__, __LINE__, '{--GUEST_WHAT_404--}');
+}