Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/02/2023 in all areas

  1. Once again: the "latest version" of Webalizer, this 2.23-08 that you found, is ten years old. https://webalizer.net/news.html Webalizer is dead, and the longer you insist on using it the worse things will be for you. No updates. No features. You're going to fall further and further behind on the sorts of things everybody else is using because they're using modern tools. Changing software sucks, I know, but it's very much worth the temporary discomfort.
    1 point
  2. What you downloaded is the source code of the software. You need to compile it to get an actual program you can use. You can do that relatively easily on Linux since that's the environment it was designed for. Whether it can be done and how difficult it would be to do on Windows is unknown. Something like MinGW might help. A .md file is just a text file. Any text editor will open and display it just fine. It might not open with a simple double-click as the .md extension probably is not registered, but you can always open the editor and use it's file->open command (or just rename the file to .txt and double-click).
    1 point
  3. This is going to be a little more complicated with your date string, because you will need to turn the date string back into a valid javascript date, so that you set your form date element value. See if you can figure out how to do that. I'll give you a hint, on how to strip out the <br> tag from the date string, leaving you only with the text. function MyFunction(col, time) { const tbl = document.getElementById("myTable"); let dateValue = tbl.rows[0].cells[col].innerHTML; console.log('dateValue: ' + dateValue); dateValue = dateValue.replace('<br>', ' '); let dateEl = document.getElementsByName("tDatum"); let timeEl = document.getElementsByName("tVreme"); dateEl[0].value = dateValue; timeEl[0].value = time; } Another hint: google for javascript Date.parse()
    1 point
  4. <body> Timeslot : <input id='timeslot' value=''> <br><br> <a href="#" class='tslot' data-timeslot="2023-07-02 19:00" >19:00</a> </body> script <script type='text/javascript'> $(function() { // when page has loaded $(".tslot").click(function() { // define click event listener let timeslot = $(this).data("timeslot") $("#timeslot").val(timeslot) }) }) </script>
    1 point
  5. As has been said already, Webalizer is pretty much a dead project. The FTP server is apparently no longer running so you cannot download from it. If you really want a copy you can get it from the internet archive using the wayback machine. https://web.archive.org/web/20150905053743/http://www.webalizer.org/download.html Unless there is some specific reason you must use Webalizer though, you should probably look into a modern alternative.
    1 point
  6. I would create a hidden input named "timeslot" in the form. Add a "data-timeslot" attribute to each of your timeslot links with a datetime value for the slot EG... <td><a href="#" onclick="MyFunction();return false;" data-timeslot="<?=$ts->format('Y-m-d H:i')?>" ><?=$ts->format('H:i \h')?></a></td> Have MyFunction() put the data value into the form field. In your timeslots() function I would use a DatePeriod object instead of a for() loop function timeslots($duration, $cleanup, $start, $end){ $start = new DateTime($start); $end = new DateTime($end); $duration += $cleanup; $interval = new DateInterval("PT".$duration."M"); $slots = []; $dp = new DatePeriod($start, $interval, $end); return $dp; } Don't use PHP_SELF. Just leave out the page reference - default is self)
    1 point
  7. I'm with @requinix -- Webalizer is pretty much a dead product. I believe that AWStats is the defacto standard FOSS web log reporting tool, being that it is typically bundled with CPanel. It's probably the closest thing to what Webalizer was, only it continues to be maintained and enhanced. It's a package of perl scripts, and is highly portable, as it mainly requires perl, and has documentation for installation, and in your case, has a windows installer. There are many log analysis systems that go far beyond the web, and for that reason, are often used instead of AWStats, and of course a lot of people just use google analytics or commercial alternatives. Most large commercial websites use multiple services to provide different types of analysis, including bug logging, which is not something traditional web analytics products try to track or categorize. With that said, there are numerous alternatives to awstats you might want to investigate. GoAccess is one that I'd recommend looking into. It also has to be said, that these products go through your http logs, and as the old saying goes, are subject to the possibility of GIGO (garbage in/garbage out), by which I mean, that they work with the data available to them in the http logs. In many cases, the default settings for apache or IIS are not sufficient to support accurate or enhanced reporting, depending on your environment. Often you need to modify the log format (as in for example, using enhanced log format) and/or creating a custom log format, that bakes in data specific to your system like specific cookies or non-default client IP settings. That's up to you, as well as automating ingestion of log files, or movement of log files from another server to an intranet or your workstation.
    1 point
  8. Webalizer? You mean this one? Whose homepage dates to 2014, and tells you to download it over FTP?
    1 point
This leaderboard is set to New York/GMT-05:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.