/** * Returns the filename logs for a WBXML debug log user should be saved to * * @access private * @return string */ private static function logToUserFile() { global $specialLogUsers; if (self::$authUser === false) { if (RequestProcessor::isUserAuthenticated()) { $authuser = Request::GetAuthUser(); if ($authuser && in_array($authuser, $specialLogUsers)) { self::$authUser = preg_replace('/[^a-z0-9]/', '_', strtolower($authuser)); } } } return self::$authUser; }