ADD_DESCR("guest", basename(__FILE__));
// Load the include file
-$INC = sprintf(PATH."inc/modules/guest/what-%s.php", $GLOBALS['what']);
+$INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, $GLOBALS['what']);
$IS_VALID = WHAT_IS_VALID(GET_ACTION("guest", $GLOBALS['what']), $GLOBALS['what'], "guest");
-if ((file_exists($INC)) && (is_readable($INC)) && ($IS_VALID))
-{
+if ((FILE_READABLE($INC)) && ($IS_VALID)) {
// Ok, we finally load the guest action module
require_once($INC);
-}
- elseif ($IS_VALID)
-{
+} elseif ($IS_VALID) {
ADD_FATAL(GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2);
-}
- else
-{
+} else {
ADD_FATAL(GUEST_LOCKED_ACTION);
}
+
//
?>