prep("api_key_$api_key", ' SELECT user_id FROM mangadex_users WHERE activation_key = ? LIMIT 1 ', [$api_key], 'fetchColumn', '', 3600); $user = new User($user__id, 'user_id'); if (!$user->user_id) { http_response_code(401); exit('Invalid RSS key. Due to the volume of bots flooding the server with RSS requests, now you need to sign up to use RSS.'); } else { header('Content-Type: application/rss+xml; charset=UTF-8'); if (isset($_GET["follows"])) $search["manga_ids_array"] = array_keys($user->get_followed_manga_ids_key_pair(), 1); if (isset($_GET["manga_id"]) && $_GET["manga_id"] > 0) $search["manga_id"] = $_GET["manga_id"]; //manga_id if (isset($_GET["user_id"]) && $_GET["user_id"] > 0) $search["user_id"] = $_GET["user_id"]; //user_id if (isset($_GET["group_id"]) && $_GET["group_id"] > 0) $search["group_id"] = $_GET["group_id"]; //group_id if ($user->default_lang_ids) $search["multi_lang_id"] = $user->default_lang_ids; if (!$user->show_unavailable) { $search["available"] = 1; } if (isset($_GET["h"]) && $_GET["h"] == 0) $search["manga_hentai"] = 0; elseif (isset($_GET["h"]) && $_GET["h"] == 2) $search["manga_hentai"] = 1; $search['exclude_delayed'] = 1; $search["chapter_deleted"] = 0; $blocked_groups = $user->get_blocked_groups(); if ($blocked_groups) $search['blocked_groups'] = array_keys($blocked_groups); $limit = 100; $current_page = 1; $order = "upload_timestamp DESC"; try { $chapters = new Chapters($search); $chapters_obj = $chapters->query_read($order, $limit, $current_page); } catch (\PDOException $e) { $chapters = (object)['num_rows' => 0]; $chapters_obj = []; } //visit_log_cumulative($ip, $table = "rss"); ?> MangaDex RSS The latest MangaDex releases en 30 <?= str_replace(['&','<', '>'], '', html_entity_decode($chapter->manga_name)) ?> - <?= ($chapter->volume == "" || $chapter->volume == 0) ? "" : "Volume $chapter->volume, " ?><?= ($chapter->chapter != "") ? "Chapter $chapter->chapter" : "" ?><?= (empty($chapter->volume) && empty($chapter->chapter)) ? str_replace(['&','<', '>'], '', html_entity_decode($chapter->title)) : ""?> chapter/chapter_id ?> title/manga_id ?> upload_timestamp) ?> Group: '], '', html_entity_decode($chapter->group_name)) ?>group_name_2 ? " | " . str_replace(['&','<', '>'], '', html_entity_decode($chapter->group_name_2)) : "" ?>group_name_3 ? " | " . str_replace(['&','<', '>'], '', html_entity_decode($chapter->group_name_3)) : "" ?> - Uploader: username ?> - Language: lang_name ?> chapter/chapter_id ?>