-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_exists($INC))
- {
- // Ok, we finally load the guest action module
- include($INC);
- }
- else
- {
- ADD_FATAL(GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2);
- }
+// Add description as navigation point
+addMenuDescription('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_404_WHAT--}', getWhat());