Добавьте новый script DCI, с кодом
Code Select
$node->isAgent и поставьте трешхолд, 0 - нет агента, 1 - есть агент
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menuif (int($node->logMatchCount) > 3) {
$node->logMatchCount = 0;
return true;
}
$node->logMatchCount = int($node->logMatchCount) + 1;
return false;now = time();
if (now - int($node->logLastMatch) > 600 || int($node->logMatchCount) > 3) {
$node->logLastMatch = now;
$node->logMatchCount = 0;
return true;
}
$node->logLastMatch = now;
$node->logMatchCount = int($node->logMatchCount);
return false;$node->isAgent, $node->isPrinter, и так далее, до любой сложности скриптов.