/** * Try to determine if the current call causing the audit is from a real browser/person. * Requires core/lib/useragent-1.0/userAgent.class.php * * @return booelan TRUE if it thinks it is a real user else FALSE. */ function isProbablyRealWebUser() { global $CFG; require_once $CFG->dirAddress . 'core/lib/useragent-1.0/userAgent.class.php'; $userAgent = new UserAgent(); $isNotRealWebUser = $userAgent->isUnknown(); return !$isNotRealWebUser; }