Code deduplication/tidying

- Move default pagination/sort/search query variable mapping to pagination_head.php
- Remove user_logs.php
This commit is contained in:
Marcus Hill
2022-04-14 19:49:18 +01:00
parent ca629801af
commit b4f2fdd03d
50 changed files with 92 additions and 1359 deletions

View File

@@ -1,4 +1,11 @@
<?php
/*
* Pagination Body/Footer
* Displays page number buttons
*
* Should not be accessed directly, but called from other pages
* Relies upon the $num_rows variable being set correctly
*/
$total_found_rows = $num_rows[0];
$total_pages = ceil($total_found_rows / $_SESSION['records_per_page']);