From 3c4aa25af0cd6f56db85d503ab552d39b81b5c17 Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 31 Oct 2022 12:24:35 +0100 Subject: renamed to things --- views/things/bpm | 1 + views/things/faces | 1 + views/things/ghrss/composer.json | 5 +++ views/things/ghrss/composer.lock | 84 ++++++++++++++++++++++++++++++++++++++++ views/things/ghrss/feed.php | 47 ++++++++++++++++++++++ views/things/ghrss/ghrss.db.php | 14 +++++++ views/things/ghrss/index.html | 32 +++++++++++++++ views/things/pizza | 1 + views/things/untrack | 1 + views/things/zeitumstellung | 1 + 10 files changed, 187 insertions(+) create mode 160000 views/things/bpm create mode 160000 views/things/faces create mode 100644 views/things/ghrss/composer.json create mode 100644 views/things/ghrss/composer.lock create mode 100644 views/things/ghrss/feed.php create mode 100644 views/things/ghrss/ghrss.db.php create mode 100644 views/things/ghrss/index.html create mode 160000 views/things/pizza create mode 160000 views/things/untrack create mode 160000 views/things/zeitumstellung (limited to 'views/things') diff --git a/views/things/bpm b/views/things/bpm new file mode 160000 index 0000000..e0acc0b --- /dev/null +++ b/views/things/bpm @@ -0,0 +1 @@ +Subproject commit e0acc0b7877a48f8add10515ac89643b2ec96293 diff --git a/views/things/faces b/views/things/faces new file mode 160000 index 0000000..b629f6b --- /dev/null +++ b/views/things/faces @@ -0,0 +1 @@ +Subproject commit b629f6b83bc1fa43788e9b09d96bcf9cff92b2c7 diff --git a/views/things/ghrss/composer.json b/views/things/ghrss/composer.json new file mode 100644 index 0000000..ba92705 --- /dev/null +++ b/views/things/ghrss/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "tronice/php-rss-writer": "^1.6" + } +} diff --git a/views/things/ghrss/composer.lock b/views/things/ghrss/composer.lock new file mode 100644 index 0000000..1fc94a1 --- /dev/null +++ b/views/things/ghrss/composer.lock @@ -0,0 +1,84 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "4114942d462b753781b80a9c5cdfb1f0", + "packages": [ + { + "name": "tronice/php-rss-writer", + "version": "1.6.3", + "source": { + "type": "git", + "url": "https://github.com/TRONICE/php-rss-writer.git", + "reference": "a5ef3db462b70f896778faff508fd88b71c051df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TRONICE/php-rss-writer/zipball/a5ef3db462b70f896778faff508fd88b71c051df", + "reference": "a5ef3db462b70f896778faff508fd88b71c051df", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "johnpupu/xoopsunit": ">=1.2", + "mockery/mockery": ">=0.9 <1.0", + "phpunit/phpunit": ">=4.8.36 <6.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "Suin\\RSSWriter": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "suin", + "email": "suinyeze@gmail.com", + "role": "Author" + }, + { + "name": "John Chen", + "email": "john@tronice.com", + "homepage": "https://www.tronice.com", + "role": "Developer" + }, + { + "name": "Firch Tsai", + "email": "firch@tronice.com", + "homepage": "https://www.tronice.com", + "role": "Developer" + } + ], + "description": "Yet another simple RSS writer library for PHP 5.4 or later.", + "homepage": "https://github.com/TRONICE/php-rss-writer", + "keywords": [ + "feed", + "generator", + "php", + "rss", + "writer" + ], + "support": { + "source": "https://github.com/TRONICE/php-rss-writer/tree/1.6.3" + }, + "time": "2020-05-17T17:20:36+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.0.0" +} diff --git a/views/things/ghrss/feed.php b/views/things/ghrss/feed.php new file mode 100644 index 0000000..a11db87 --- /dev/null +++ b/views/things/ghrss/feed.php @@ -0,0 +1,47 @@ +prepare("SELECT * FROM entry_view WHERE language = ? ORDER BY created_at DESC LIMIT 20;"); + $stmt->execute([$_REQUEST["l"]]); +} else { + $stmt = $db->prepare("SELECT * FROM entry_view WHERE created_at >= NOW() - INTERVAL 2 DAY ORDER BY created_at DESC;"); + $stmt->execute([$_REQUEST["l"]]); +} +$result = $stmt->fetchAll(); + +$feed = new Feed(); + +$channel = new Channel(); +$channel + ->title("GHRSS") + ->description("Trending Repos from Github") + ->url( "https://www.maximilianmoehring.com/things/ghrss/" ) + ->pubDate(strtotime(date("r", time()))) + ->lastBuildDate(strtotime(date("r", time()))) + ->ttl(5) + ->appendTo($feed); + +foreach($result as $item) { + $item_out = new Item(); + + $item_out + ->title($item["title"]) + ->description( "
" . $item["synopsis"] . "
" . $item["language"] . " / " . $item["update_period"] . " / " . $item["stars"] . " Stars
+
+ + +{% endblock %} diff --git a/views/things/pizza b/views/things/pizza new file mode 160000 index 0000000..94a3255 --- /dev/null +++ b/views/things/pizza @@ -0,0 +1 @@ +Subproject commit 94a325594c8a9e124ea75f2885e82786fb2172bc diff --git a/views/things/untrack b/views/things/untrack new file mode 160000 index 0000000..b0acc3b --- /dev/null +++ b/views/things/untrack @@ -0,0 +1 @@ +Subproject commit b0acc3b919f85211bf1824c5481cafa27d8a29e6 diff --git a/views/things/zeitumstellung b/views/things/zeitumstellung new file mode 160000 index 0000000..3828fca --- /dev/null +++ b/views/things/zeitumstellung @@ -0,0 +1 @@ +Subproject commit 3828fcac7c7cb75e88ca0ce10fa451ad22fc387f -- cgit v1.2.3