Coder Social home page Coder Social logo

awstatstotals's Introduction

AWStats Totals

AWStats Totals is a simple php script to view the AWStats totals (Unique visitors, Number of visits, Pages, Hits and Bandwidth) of multiple sites. The page has a month selection input form and you can sort on each column. It also includes a php wrapper script.

awstatstotals's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

joshin42

awstatstotals's Issues

Installation instruction

Hi,

I use the 1.81 version of the awstatstotal. I just loaded the awstatstotal.php before, and it gave back the HTML page with the available stats.
I can see you redesigned the current awstatstotal, but unfortunately I am lack of PHP knowledge, and I cannot make it working.
I have updated the awstatstotal.php file DirData, AWStatsURL, DirLang. But I cannot directly call the PHP to present the awstats as before.

I can see in the embedded instructions I need to create a new file and refer it, but I couldn't make. :(

Can you help me how I can make it work? I have the folder, where the awstatstotals.php and awstats.php are located and it is available from the webserver.

Undefined variables 1.20 - unique_total - etc.

Hi.

after update from 1.19 to 1.20 we see php warnings.
So, no totals at bottom of page for all vhosts are shown.

We changed local variables for example ($unique_total) to ($this->unique_total) and it is working now.

Lines:
139-146 + 163-173 + 570-580

Warning: Undefined variable $unique_total in /xxx/awstatstotals.class.php on line 569

Warning: Undefined variable $visits_total in /xxx/awstatstotals.class.php on line 570

Warning: Undefined variable $pages_total in /xxx/awstatstotals.class.php on line 571

Warning: Undefined variable $hits_total in /xxx/awstatstotals.class.php on line 572

Warning: Undefined variable $bandwidth_total in /xxx/awstatstotals.class.php on line 573

Problem with data subdirectories: numbers are not calculated

Hi,

I have a rather large number of websites and in order to keep some overview, I structured the AWstats data directory like this:

data/
├── www01.example.com
│   ├── awstats022024.www01.example.com.txt
│   └── awstats032024.www01.example.com.txt
├── www02.example.com
│   ├── awstats022024.www02.example.com.txt
│   └── awstats032024.www02.example.com.txt
└── www03.example.com
    ├── awstats022024.www03.example.com.txt
    └── awstats032024.www03.example.com.txt

This structure was no problem with awstatstotals.php version 1.18. The configs and numbers are shown on the page. However, version 1.22 does show the configs, but all numbers are zeros.

The parse_dir method does scan the data directory recursively and it finds all database files. It takes the (full) path into account. The problem is that in numerous places, the method make_filename is called. This method synthesizes the filename using the name of the config, the year and the month. The method kind of assumes that the database files are all in the $DirData directory, but that is obviously not true for nested data directories. Since make_filename does not take the actual path to the database file into account, the files cannot be found, resulting in the numbers not being able to be calculated. I asked myself: why would one synthesize the filename while the filename is already available (in $files)?

I began writing a patch for fixing the problem, but I found some methods in the class that make an easy fix hard. For example, the year_data method. Looking into it, I found that this method is declared, but not used. And I found a couple of more of these methods:

  • errors404_list
  • month_data
  • pages_url_list
  • year_data

So I was wondering, what is the deal with these methods? Are they in the class for future use? If not, could they be removed.

If I would fix the problem, would you like a patch file or rather an PR?

-Remy

"Feature" request for new releases

Hi,

if possible, could you please git tag releases? And would it be possible to include the CHANGELOG in the repository as well?

Thanks!

-Remy

Wrong version number in README.md

Hi,

The README.md file says that the version number is 1.21. However, the VERSION constant in awstatstotals.php says 1.22. The Telartis website also says 1.22.

-Remy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.