Adds phpdoc comments

main
Yasen Pramatarov 2024-11-27 16:26:55 +02:00
parent 06bf414f41
commit 4f5557f6ca
1 changed files with 7 additions and 4 deletions

View File

@ -1,8 +1,11 @@
<?php
//
// logs listings
//
/**
* Logs Listings
*
* This page ("logs") retrieves and displays logs for a specified user within a time range.
* It supports pagination and filtering, and generates a widget to display the logs.
*/
// specify time range
include '../app/helpers/time_range.php';
@ -13,7 +16,7 @@ $browse_page = $_REQUEST['p'] ?? 1;
$browse_page = (int)$browse_page;
$offset = ($browse_page -1) * $items_per_page;
// user or system
// logs scope: user or system
$scope = 'user';
// prepare the result