Could someone modify this script so that it would check passive users share and redirect if less than xxGB.
-- Redirect all passive users
-- Script by PPK
function NewUserConnected(curUser)
if curUser.iProfile == -1 and curUser.bActive == nil then
curUser:Redirect(frmHub:GetRedirectAddress(), "Sorry passive users not allowed here.")
end
end
Thanks in advance
Try this...
-- Redirect all passive users
-- Script by PPK
-- MinShare check by Madman
MinShare = 2 -- Min share in GB
function NewUserConnected(curUser)
if curUser.iProfile == -1 and curUser.bActive == nil then
if curUser.iShareSize < (1024*1024*1024*MinShare) then
curUser:Redirect(frmHub:GetRedirectAddress(), "Sorry passive users must share atlest " ..MinShare.. " GB")
end
end
end