Fatal error: {$ErrorMessage}


"; exit($ErrorMessage); } if ($argc < 3) { FatalError(sprintf(errArgCountNotMatch, $argc)); } $isAdmin = $argv[1]; for ($argIndex = 2; $argIndex <= $argc - 1; $argIndex++) { $userID = $argv[$argIndex]; if ($isAdmin) { modules_update($userID, '', '', 1); } else { if ($userID != (int)$userID) { FatalError(sprintf(errInvalidInputData, " invalid member ID: [{$userID}]")); } modules_update($userID); // User will be added if he does not exist $resCheckAction = checkAction($userID, ACTION_ID_USE_CHAT); if ($resCheckAction[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED) { modules_block($userID, 'chat'); } else { modules_unblock($userID, 'chat'); } $resCheckAction = checkAction($userID, ACTION_ID_USE_FORUM); if ($resCheckAction[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED) { modules_block($userID, 'forum'); } else { modules_unblock($userID, 'forum'); } } } ?>