if (strpos($userinfo['location'], 'affiliates.php') === true) { $userinfo['action'] = 'Viewing Affiliates'; $handled = true; }