isInstalled()) { exit; } $basePath = null; if (Url::detectIsInPortalDir()) { $basePath = '../'; if (Url::detectIsInPortalWithId()) { $basePath = '../../'; } $app->setClientBasePath($basePath); } if (filter_has_var(INPUT_GET, 'entryPoint')) { $app->run(EntryPoint::class); exit; } $app->run( PortalClient::class, Params::create()->with('basePath', $basePath) );