From cafbd947bc57c6b1145e842a33094d2b653034ba Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Wed, 20 Jul 2022 23:54:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BC?= =?UTF-8?q?=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Core/MQTasks.class.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/core/lib/Core/MQTasks.class.php b/core/lib/Core/MQTasks.class.php index 4a51bb6..5ba3634 100644 --- a/core/lib/Core/MQTasks.class.php +++ b/core/lib/Core/MQTasks.class.php @@ -199,7 +199,24 @@ /** @var DB $DB */ $DB = DB::getInstance(); - $file = file_get_contents('http://rzhunemogu.ru/RandJSON.aspx?CType=11'); + /** + * CType = ? + * 1 - Анекдот; + * 2 - Рассказы; + * 3 - Стишки; + * 4 - Афоризмы; + * 5 - Цитаты; + * 6 - Тосты; + * 8 - Статусы; + * 11 - Анекдот (+18); + * 12 - Рассказы (+18); + * 13 - Стишки (+18); + * 14 - Афоризмы (+18); + * 15 - Цитаты (+18); + * 16 - Тосты (+18); + * 18 - Статусы (+18); + */ + $file = file_get_contents('http://rzhunemogu.ru/RandJSON.aspx?CType=1'); $file = \iconv('windows-1251//IGNORE', 'UTF-8//IGNORE', $file); $file = str_replace('{"content":"', '', $file); $file = str_replace('"}', '', $file);