&1')) { if (false !== stripos($ldd, 'musl')) { return 'musl'; } if (false !== stripos($ldd, 'glibc')) { return 'glibc'; } } return null; } /** * Check if albums are enabled for this user. * * @param mixed $appManager */ public static function albumsIsEnabled(&$appManager): bool { if (!$appManager->isEnabledForUser('photos')) { return false; } $v = $appManager->getAppInfo('photos')['version']; return version_compare($v, '1.7.0', '>='); } /** * Check if tags is enabled for this user. * * @param mixed $appManager */ public static function tagsIsEnabled(&$appManager): bool { return $appManager->isEnabledForUser('systemtags'); } /** * Check if recognize is enabled for this user. * * @param mixed $appManager */ public static function recognizeIsEnabled(&$appManager): bool { if (!$appManager->isEnabledForUser('recognize')) { return false; } $v = $appManager->getAppInfo('recognize')['version']; return version_compare($v, '3.0.0-alpha', '>='); } /** * Check if link sharing is allowed. * * @param mixed $config */ public static function isLinkSharingEnabled(&$config): bool { // Check if the shareAPI is enabled if ('yes' !== $config->getAppValue('core', 'shareapi_enabled', 'yes')) { return false; } // Check whether public sharing is enabled if ('yes' !== $config->getAppValue('core', 'shareapi_allow_links', 'yes')) { return false; } return true; } }