$totalusers = $db->num_rows($db->query(sprintf('SELECT userid FROM dd_users WHERE activation_key="0"')));
$totalusers = $db->num_rows($db->query(sprintf('SELECT userid FROM dd_users WHERE activation_key="0" AND user_level!="0"')));
$r = $db->query(sprintf("SELECT * FROM dd_users WHERE activation_key='0' ORDER BY username ASC LIMIT $limits,$max"));
$r = $db->query(sprintf("SELECT * FROM dd_users WHERE activation_key='0' AND user_level!='0' ORDER BY username ASC LIMIT $limits,$max"));