X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/271d752bc3321b73e78343ed03935dd46b5fb551..6cc7f7c916da362c797ddbcf599c75229bfc9b6d:/src/admin.log.php?ds=sidebyside diff --git a/src/admin.log.php b/src/admin.log.php index 7863e97..df0854f 100644 --- a/src/admin.log.php +++ b/src/admin.log.php @@ -20,7 +20,7 @@ p($_SESSION['user']->toHtml()); $desde = 0; $mes = date('m'); -$dia = 1; +$dia = date('d'); $anio = date('Y'); // Cargo datos que vienen por GET (si corresponde) if (isset($_GET['admin_anio']) and isset($_GET['admin_mes']) @@ -31,7 +31,8 @@ if (isset($_GET['admin_anio']) and isset($_GET['admin_mes']) $anio = intval($_GET['admin_anio']); } -if (check_fecha($anio, $mes, $dia)) $desde = mktime(0, 0, 0, $mes, $dia, $anio); +if (!isset($_GET['admin_todo']) and check_fecha($anio, $mes, $dia)) + $desde = mktime(0, 0, 0, $mes, $dia, $anio); $log = new LogMsg($_SESSION['user'], $desde); listar($log, 'admin.log.php');