22 if (
$request->elgg()->session_manager->isLoggedIn()) {
26 if (!
$request->elgg()->config->walled_garden) {
52 $parts = parse_url(
$url);
53 unset($parts[
'query']);
54 unset($parts[
'fragment']);
67 'ajax/view/languages.js',
70 'cache/[0-9]+/\w+/.*',
81 foreach ($public_routes as $public_route) {
82 $pattern =
"`^{$site_url}{$public_route}/*$`i";
83 if (preg_match($pattern,
$url)) {
$params
Saves global plugin settings.
Thrown when walled garden gatekeeper prevents access.
Protects a route from non-authenticated users in a walled garden mode.
isPublicPage(string $url)
Checks if the page should be allowed to be served in a walled garden mode.
__invoke(Request $request)
Gatekeeper.
foreach($plugin_guids as $guid) if(empty($deactivated_plugins)) $url
elgg_http_build_url(array $parts, bool $html_encode=true)
Builds a URL from the a parts array like one returned by parse_url().
_elgg_services()
Get the global service provider.