diff options
| author | horus | 2022-10-31 12:24:35 +0100 |
|---|---|---|
| committer | horus | 2022-10-31 12:24:35 +0100 |
| commit | 3c4aa25af0cd6f56db85d503ab552d39b81b5c17 (patch) | |
| tree | c9e7e8de0be62e7f1389a8c19485a6ca29806497 /views/tools | |
| parent | f0c30d3bf798d52d5c2b14b0a2a12167ed7c2d72 (diff) | |
| download | moehring-3c4aa25af0cd6f56db85d503ab552d39b81b5c17.tar.gz | |
renamed to things
Diffstat (limited to 'views/tools')
| m--------- | views/tools/bpm | 0 | ||||
| m--------- | views/tools/faces | 0 | ||||
| -rw-r--r-- | views/tools/ghrss/composer.json | 5 | ||||
| -rw-r--r-- | views/tools/ghrss/composer.lock | 84 | ||||
| -rw-r--r-- | views/tools/ghrss/feed.php | 47 | ||||
| -rw-r--r-- | views/tools/ghrss/ghrss.db.php | 14 | ||||
| -rw-r--r-- | views/tools/ghrss/index.html | 32 | ||||
| m--------- | views/tools/pizza | 0 | ||||
| m--------- | views/tools/untrack | 0 | ||||
| m--------- | views/tools/zeitumstellung | 0 |
10 files changed, 0 insertions, 182 deletions
diff --git a/views/tools/bpm b/views/tools/bpm deleted file mode 160000 -Subproject e0acc0b7877a48f8add10515ac89643b2ec9629 diff --git a/views/tools/faces b/views/tools/faces deleted file mode 160000 -Subproject b629f6b83bc1fa43788e9b09d96bcf9cff92b2c diff --git a/views/tools/ghrss/composer.json b/views/tools/ghrss/composer.json deleted file mode 100644 index ba92705..0000000 --- a/views/tools/ghrss/composer.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "require": { - "tronice/php-rss-writer": "^1.6" - } -} diff --git a/views/tools/ghrss/composer.lock b/views/tools/ghrss/composer.lock deleted file mode 100644 index 1fc94a1..0000000 --- a/views/tools/ghrss/composer.lock +++ /dev/null @@ -1,84 +0,0 @@ -{ - "_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/tools/ghrss/feed.php b/views/tools/ghrss/feed.php deleted file mode 100644 index 7276200..0000000 --- a/views/tools/ghrss/feed.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php - -use DiDom\Document; -use Suin\RSSWriter\Channel; -use Suin\RSSWriter\Feed; -use Suin\RSSWriter\Item; - -require_once __DIR__ . '/ghrss.db.php'; -require_once __DIR__ . '/vendor/autoload.php'; - -header("content-type: application/rss+xml"); - -if ( isset($_REQUEST["l"]) && "" != $_REQUEST["l"] ) { - $stmt = $db->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/tools/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( "<p>" . $item["synopsis"] . "<br><em>" . $item["language"] . " / " . $item["update_period"] . " / " . $item["stars"] . " Stars</em></p>" ) - ->url($item["url"]) - ->pubDate(strtotime(date($item["created_at"]))) - ->author($item["owner"]) - ->appendTo($channel); -} - -echo $feed; - diff --git a/views/tools/ghrss/ghrss.db.php b/views/tools/ghrss/ghrss.db.php deleted file mode 100644 index d96f881..0000000 --- a/views/tools/ghrss/ghrss.db.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - -require_once __DIR__ . '/db_passwd.php'; - -/** - * password is set in db_passwd.php - * - * $db_passwd = ""; - */ - -$db_name = "ghrss"; -$db_user = "ghrss_crawler"; - -$db = new PDO('mysql:host=192.168.122.1;dbname='.$db_name, $db_user, $db_passwd); diff --git a/views/tools/ghrss/index.html b/views/tools/ghrss/index.html deleted file mode 100644 index 1e64fa3..0000000 --- a/views/tools/ghrss/index.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "snippets/layout.html" %} - -{% block description %} -{% endblock %} - -{% block title %} -GHRSS - Trending Repos -{% endblock %} - -{% block css %} -{% endblock %} - -{% block main %} -<div class="container" id="index"> - - <div class="flavor-text"> - <h1>Trending Repos from Github as RSS-Feed</h1> - <em>Choose your language, get the result of <a href="https://github.com/trending">github.com/trending</a> as RSS-Feed</em> - </div> - <ul> - {% for entry in data %} - <li> - <a class="" href="/feed/ghrss?l={{ entry.name }}">{{ entry.name | e }}</a> - </li> - {% endfor %} - <!-- a class="dropdown-item" href="/feed/">Give Me All Languages</a--> - </ul> - <p> - </p> - -</div> -{% endblock %} diff --git a/views/tools/pizza b/views/tools/pizza deleted file mode 160000 -Subproject 94a325594c8a9e124ea75f2885e82786fb2172b diff --git a/views/tools/untrack b/views/tools/untrack deleted file mode 160000 -Subproject b0acc3b919f85211bf1824c5481cafa27d8a29e diff --git a/views/tools/zeitumstellung b/views/tools/zeitumstellung deleted file mode 160000 -Subproject 3828fcac7c7cb75e88ca0ce10fa451ad22fc387 |
