diff options
-rw-r--r-- | alpine/irc/log/ircdaily.php | 2 | ||||
-rw-r--r-- | alpine/irc/log/readme.md | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/alpine/irc/log/ircdaily.php b/alpine/irc/log/ircdaily.php index 3389e5f..2078d03 100644 --- a/alpine/irc/log/ircdaily.php +++ b/alpine/irc/log/ircdaily.php @@ -23,7 +23,7 @@ $logname = $arr_logname[0]; $YYMM = date('Y-m'); $date = 1; if (! empty($_GET['dt'])) { $date = (int) $_GET['dt']; } -if ($date <= 1 || $date >= 32) $date = 1; +if ($date <= 1 || $date >= 32) $date = (int) date('d'); if ($date <= 9) $date = '0'.$date; //print_r($logname); exit; diff --git a/alpine/irc/log/readme.md b/alpine/irc/log/readme.md new file mode 100644 index 0000000..253acbd --- /dev/null +++ b/alpine/irc/log/readme.md @@ -0,0 +1,16 @@ + + +- get-irclog.sh + - this will generate files like "alpine-devel-2024-11.log.html" + for different log types. + +- ircdaily.php + - source this file to type name, eg devel.php, like: + ``` + <?php + include_once('ircdaily.php'); + ``` + and place it in folder with html logs. + + + |