diff --git a/debug.log b/debug.log deleted file mode 100644 index 589f384..0000000 --- a/debug.log +++ /dev/null @@ -1,14 +0,0 @@ -2026-02-21 17:52:10 - Items case hit -2026-02-21 17:52:37 - Items case hit -2026-02-21 17:53:18 - Items case hit -2026-02-21 18:10:28 - Items case hit -2026-02-21 18:21:01 - Items case hit -2026-02-21 18:23:51 - Items case hit -2026-02-21 18:36:35 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"project-uuid","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} -2026-02-21 18:37:30 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"project-uuid","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} -2026-02-21 18:42:10 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"project-uuid","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} -2026-02-21 18:43:51 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} -2026-02-21 18:44:10 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} -2026-02-22 02:55:16 - Items case hit -2026-02-22 02:55:31 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} -2026-02-22 02:58:39 - Items case hit diff --git a/index.php b/index.php index 2edf0a4..fb8b3cb 100644 --- a/index.php +++ b/index.php @@ -257,12 +257,39 @@ function numberToWordsArabic($num) { } function renderPagination($currentPage, $totalPages) { - if ($totalPages <= 1) return ''; - $query = $_GET; unset($query['p']); $url = 'index.php?' . http_build_query($query) . '&p='; + $limit = isset($_GET['limit']) ? (int)$_GET['limit'] : 20; + $limitHtml = " +
+ + +
+ + "; + + if ($totalPages <= 1) return $limitHtml; + $html = '