*
* @return array server data
*/
- private static function analyseRootBody($curlResult, array $serverdata): array
+ private static function analyseRootBody($curlResult, array $serverdata): array
{
if (empty($curlResult->getBody())) {
return $serverdata;
}
- if (file_exists(__DIR__ . '/../../static/generator.config.php')) {
- require __DIR__ . '/../../static/generator.config.php';
+ if (file_exists(__DIR__ . '/../../static/platforms.config.php')) {
+ require __DIR__ . '/../../static/platforms.config.php';
} else {
- throw new HTTPException\InternalServerErrorException('Invalid generator file');
+ throw new HTTPException\InternalServerErrorException('Invalid platform file');
}
$platforms = array_merge($ap_platforms, $dfrn_platforms, $zap_platforms, $platforms);
+++ /dev/null
-<?php
-/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- */
-
-$platforms = [
- 'AlphaChat' => 'alphachat',
- 'AV Arcade' => 'av-arcade',
- 'BaseKit' => 'basekit',
- 'BBEdit' => 'bbedit',
- 'Big Cartel' => 'big-cartel',
- 'Blogger' => 'blogger',
- 'Bloom' => 'bloom',
- 'Bludit' => 'bludit',
- 'BunnyPress' => 'bunnypress',
- 'Contao Open Source CMS' => 'contao',
- 'castopod' => 'castopod',
- 'cgit' => 'cgit',
- 'Chevereto' => 'chevereto',
- 'ClanSphere' => 'clansphere',
- 'Claudia Content' => 'claudia-content',
- 'diaspora' => 'diaspora',
- 'DIMV' => 'dimv',
- 'Discourse' => 'discourse',
- 'Divi' => 'divi',
- 'Django-cypress' => 'django-cypress',
- 'Docutils' => 'docutils',
- 'DokuWiki' => 'dokuwiki',
- 'Drupal' => 'drupal',
- 'Element' => 'element',
- 'Eleventy' => 'eleventy',
- 'filerun' => 'filerun',
- 'FlatPress' => 'flatpress',
- 'Gatsby' => 'gatsby',
- 'Ghost' => 'ghost',
- 'gitweb' => 'gitweb',
- 'gnusocial' => 'gnusocial',
- 'Government Site Builder' => 'government-site-builder',
- 'GravCMS' => 'gravcms',
- 'grocy' => 'grocy',
- 'Gruta' => 'gruta',
- 'hakyll' => 'hakyll',
- 'HedgeDoc - Collaborative markdown notes' => 'hedgedoc',
- 'Hello, world. https://github.com/mimecuvalo/helloworld' => 'helloworld',
- 'Hexo' => 'hexo',
- 'Hugo' => 'hugo',
- 'ian' => 'ian',
- 'InterRed' => 'interred',
- 'Ikiwiki' => 'ikiwiki',
- 'Jekyll' => 'jekyll',
- 'Joomla!' => 'joomla',
- 'KeyHelp' => 'keyhelp',
- 'Known https://withknown.com' => 'known',
- 'KONTEXT-CMS (c) WARENFORM [www.warenform.net]' => 'kontext-cms',
- 'ktistec' => 'ktistec',
- 'lemoncurry' => 'lemoncurry',
- 'LibreOffice' => 'libreoffice',
- 'Magazine News Byte' => 'magazine-news-byte',
- 'Magnet' => 'magnet',
- 'mastodon' => 'mastodon',
- 'Mattermost' => 'mattermost',
- 'MediaWiki' => 'mediawiki',
- 'Medium' => 'medium',
- 'microblog' => 'microblog',
- 'Misskey' => 'misskey',
- 'Mobirise' => 'mobirise',
- 'Movable Type Pro' => 'movable-type',
- 'Movim' => 'movim',
- 'MyArcadePlugin Pro' => 'my-arcade-plugin',
- 'Nanoc' => 'nanoc',
- 'nb3 system v1.6' => 'nb3',
- 'Nikola (getnikola.com)' => 'nikola',
- 'Odoo' => 'odoo',
- 'Org mode' => 'org-mode',
- 'Org-mode' => 'org-mode',
- 'Org Mode' => 'org-mode',
- 'Osclass' => 'osclass',
- 'pamphlets/vinyl-press' => 'pamphlets',
- 'peertube' => 'peertube',
- 'phpMyFAQ' => 'phpmyfaq',
- 'Pelican' => 'pelican',
- 'pH7CMS,' => 'ph7cms',
- 'Polr' => 'polr',
- 'Publii Open-Source CMS for Static Site' => 'publii',
- 'pygruta' => 'pygruta',
- 'Riot' => 'riot',
- 'Satelito' => 'satelito',
- 'Scully' => 'scully',
- 'Sedo' => 'sedo',
- 'sitebaker' => 'sitebaker',
- 'SitePad' => 'sitepad',
- 'SMAR' => 'smar',
- 'SPIP' => 'spip',
- 'STUDIO' => 'studio',
- 'Synology - Synology DiskStation' => 'synology',
- 'Thufie' => 'thufie',
- 'TiddlyWiki' => 'tiddlywiki',
- 'Typesetter CMS' => 'typesetter',
- 'TYPO3 CMS' => 'typo3',
- 'Tumblr' => 'tumblr',
- 'Typecho' => 'typecho',
- 'http://txt2tags.org' => 'txt2tags',
- 'UISP' => 'uisp',
- 'VuePress' => 'vuepress',
- 'webEdition CMS' => 'webedition',
- 'Webflow' => 'webflow',
- 'WikkaWiki' => 'wikkawiki',
- 'Wix.com' => 'wix.com',
- 'WordPress.com' => 'wordpress',
- 'WordPress' => 'wordpress',
- 'Write.as' => 'write.as',
- 'XAG/CMS' => 'xagcms',
- 'Zim' => 'zim',
-];
-
-$ap_platforms = [
- 'honk' => 'honk',
- 'PeerTube' => 'peertube',
-];
-
-$dfrn_platforms = [
- 'Friendika' => 'friendika',
- 'Friendica' => 'friendica',
-];
-
-$zap_platforms = [
- 'hubzilla' => 'hubzilla',
- 'osada' => 'osada',
-];
--- /dev/null
+<?php
+/**
+ * @copyright Copyright (C) 2010-2022, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
+
+$platforms = [
+ 'AlphaChat' => 'alphachat',
+ 'AV Arcade' => 'av-arcade',
+ 'BaseKit' => 'basekit',
+ 'BBEdit' => 'bbedit',
+ 'Big Cartel' => 'big-cartel',
+ 'Blogger' => 'blogger',
+ 'Bloom' => 'bloom',
+ 'Bludit' => 'bludit',
+ 'BunnyPress' => 'bunnypress',
+ 'Contao Open Source CMS' => 'contao',
+ 'castopod' => 'castopod',
+ 'cgit' => 'cgit',
+ 'Chevereto' => 'chevereto',
+ 'ClanSphere' => 'clansphere',
+ 'Claudia Content' => 'claudia-content',
+ 'diaspora' => 'diaspora',
+ 'DIMV' => 'dimv',
+ 'Discourse' => 'discourse',
+ 'Divi' => 'divi',
+ 'Django-cypress' => 'django-cypress',
+ 'Docutils' => 'docutils',
+ 'DokuWiki' => 'dokuwiki',
+ 'Drupal' => 'drupal',
+ 'Element' => 'element',
+ 'Eleventy' => 'eleventy',
+ 'filerun' => 'filerun',
+ 'FlatPress' => 'flatpress',
+ 'Gatsby' => 'gatsby',
+ 'Ghost' => 'ghost',
+ 'gitweb' => 'gitweb',
+ 'gnusocial' => 'gnusocial',
+ 'Government Site Builder' => 'government-site-builder',
+ 'GravCMS' => 'gravcms',
+ 'grocy' => 'grocy',
+ 'Gruta' => 'gruta',
+ 'hakyll' => 'hakyll',
+ 'HedgeDoc - Collaborative markdown notes' => 'hedgedoc',
+ 'Hello, world. https://github.com/mimecuvalo/helloworld' => 'helloworld',
+ 'Hexo' => 'hexo',
+ 'Hugo' => 'hugo',
+ 'ian' => 'ian',
+ 'InterRed' => 'interred',
+ 'Ikiwiki' => 'ikiwiki',
+ 'Jekyll' => 'jekyll',
+ 'Joomla!' => 'joomla',
+ 'KeyHelp' => 'keyhelp',
+ 'Known https://withknown.com' => 'known',
+ 'KONTEXT-CMS (c) WARENFORM [www.warenform.net]' => 'kontext-cms',
+ 'ktistec' => 'ktistec',
+ 'lemoncurry' => 'lemoncurry',
+ 'LibreOffice' => 'libreoffice',
+ 'Magazine News Byte' => 'magazine-news-byte',
+ 'Magnet' => 'magnet',
+ 'mastodon' => 'mastodon',
+ 'Mattermost' => 'mattermost',
+ 'MediaWiki' => 'mediawiki',
+ 'Medium' => 'medium',
+ 'microblog' => 'microblog',
+ 'Misskey' => 'misskey',
+ 'Mobirise' => 'mobirise',
+ 'Movable Type Pro' => 'movable-type',
+ 'Movim' => 'movim',
+ 'MyArcadePlugin Pro' => 'my-arcade-plugin',
+ 'Nanoc' => 'nanoc',
+ 'nb3 system v1.6' => 'nb3',
+ 'Nikola (getnikola.com)' => 'nikola',
+ 'Odoo' => 'odoo',
+ 'Org mode' => 'org-mode',
+ 'Org-mode' => 'org-mode',
+ 'Org Mode' => 'org-mode',
+ 'Osclass' => 'osclass',
+ 'pamphlets/vinyl-press' => 'pamphlets',
+ 'peertube' => 'peertube',
+ 'phpMyFAQ' => 'phpmyfaq',
+ 'Pelican' => 'pelican',
+ 'pH7CMS,' => 'ph7cms',
+ 'Polr' => 'polr',
+ 'Publii Open-Source CMS for Static Site' => 'publii',
+ 'pygruta' => 'pygruta',
+ 'Riot' => 'riot',
+ 'Satelito' => 'satelito',
+ 'Scully' => 'scully',
+ 'Sedo' => 'sedo',
+ 'sitebaker' => 'sitebaker',
+ 'SitePad' => 'sitepad',
+ 'SMAR' => 'smar',
+ 'SPIP' => 'spip',
+ 'STUDIO' => 'studio',
+ 'Synology - Synology DiskStation' => 'synology',
+ 'Thufie' => 'thufie',
+ 'TiddlyWiki' => 'tiddlywiki',
+ 'Typesetter CMS' => 'typesetter',
+ 'TYPO3 CMS' => 'typo3',
+ 'Tumblr' => 'tumblr',
+ 'Typecho' => 'typecho',
+ 'http://txt2tags.org' => 'txt2tags',
+ 'UISP' => 'uisp',
+ 'VuePress' => 'vuepress',
+ 'webEdition CMS' => 'webedition',
+ 'Webflow' => 'webflow',
+ 'WikkaWiki' => 'wikkawiki',
+ 'Wix.com' => 'wix.com',
+ 'WordPress.com' => 'wordpress',
+ 'WordPress' => 'wordpress',
+ 'Write.as' => 'write.as',
+ 'XAG/CMS' => 'xagcms',
+ 'Zim' => 'zim',
+];
+
+$ap_platforms = [
+ 'honk' => 'honk',
+ 'PeerTube' => 'peertube',
+];
+
+$dfrn_platforms = [
+ 'Friendika' => 'friendika',
+ 'Friendica' => 'friendica',
+];
+
+$zap_platforms = [
+ 'hubzilla' => 'hubzilla',
+ 'osada' => 'osada',
+];