// // "Summalizer" Webalizer Summary Generator // by Jeff Tickle // Copyright (c) 2008 Appalachian State University // Licensed under the MIT License (see below) // // Problem: We have somewhere around a bazillion websites, each of which has its // own webalizer configuration and history files. For the Annual // Report, the boss wants a report of our top sites by page views and // by visits. There are some awesome contributed scripts, but I // couldn't find one that exactly matches our problem (at least not one // that works with stuff other than some HP web applicance). // // Solution: ./summalizer.sh // // For help, try ./summalizer.sh --help // // This script relies on the 'webalizer.hist' files that your stats directories // contain, and assumes you have a bunch of separate config files that provide // these. If you only have one config file and one webalizer.hist, this script // is overkill. // // NOTE: This is a SCRIPT intended to be run from the COMMAND LINE. I don't // know what will happen if you put it in a web-readable directory. More than // likely it just wouldn't work, but I'm not responsible if it messes something // up. // // If you make any improvements, I'd love to hear about them. // // // Here's a shameless plug: This is a small script, but our pride and joy is: // phpWebSite Content Management System (http://phpwebsite.appstate.edu) // // // The MIT License // // Copyright (c) 2008 Appalachian State University // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE.