Your user table must have activate colum INT 0 for non active 1 for active
put this code after the last closing </html> tag in layout.php
<?php
//custom check active
if (IsLoggedIn()) {
$activestatus = CurrentUserInfo("activate");
if($activestatus==0){header("Location: logout");}
}
?>