ADD_DESCR("guest", basename(__FILE__));
// Load the include file
-$INC = PATH."inc/modules/guest/what-".$what.".php";
-if (file_exists($INC))
-{
+$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
-{
- $FATAL[] = GUEST_404_ACTION_1.$what.GUEST_404_ACTION_2;
+} else {
+ $FATAL[] = GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2;
}
//
?>