From 5fbdc9aceaeb9679173af51c2332bf26a1a5fe79 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 5 May 2005 06:08:33 +0000 Subject: [PATCH] =?utf8?q?Se=20hace=20que=20por=20default=20se=20muestre?= =?utf8?q?=20el=20log=20del=20d=C3=ADa=20actual.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/admin.log.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'); -- 2.43.0