From 882c0eb89b375cbfdd9c04b236cbab0d3f39a128 Mon Sep 17 00:00:00 2001 From: horus Date: Wed, 26 Oct 2022 01:23:50 +0200 Subject: integrates ghrss --- functions.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 9bd65e4..8a31111 100644 --- a/functions.php +++ b/functions.php @@ -23,3 +23,9 @@ function str_ends_with( $haystack, $needle) { } return substr($haystack, -$len) === $needle; } + +function get_ghrss_feeds() { + require_once __DIR__ . '/views/tools/ghrss/ghrss.db.php'; + $result = $db->query("SELECT name FROM language ORDER BY name;"); + return $result->fetchAll(); +} -- cgit v1.2.3