check_account_ok(); } else { $user = new User(0, $proj); } // don't allow anonymous users to access this page at all if ($user->isAnon()) { die(); } $first = reset($_POST); if (is_array($first)) { $first = reset($first); } $searchterm = '%' . $first . '%'; // Get the list of users from the global groups above $get_users = $db->query('SELECT real_name, user_name, profile_image FROM {users} u WHERE u.user_name LIKE ? OR u.real_name LIKE ?', array($searchterm, $searchterm), 20); $html = ''; echo $html; ?>