|
WikiSimpleLog<< | Cookbook-V1 | >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
Wiki Simple LogGoalI run different Pmwikis on my server, where the main activity is not at all related to these wikis. Of course, I obtain from my provider the log of activities (starting with the previous day), but sorting take too long. I wanted to have an overview of activty for each of my wikis. This log gives (almost in real time) for each call to the wiki: SolutionI installed a php module in my script directory called from the local.php file. This module use two external files (located, in my case, in the same directory as pmwiki.php): one is a simple text file logcounter.txt, the other being the log, visitors.htm which can be called directly over the net. FilesSave the following script to wikisimplelog.php You will also need to create two empty files logcounter.txt and visitors.htm. Installationmodify your local.php in adding towards the end: include_once("/your_path/wikisimplelog.php");
ConfigurationNo further configuration. Examples1/ open gate: this link will lead you to a page on my site. When you click the link within that page you will access the visitor log, where the last entry should be your trace. 2/ closed group Choose your own alias, and use the password demo and click here. Again you could visit the log where the last line (reload!) should give you back the same informations plus your alias. UpdatesKT: I made a few minor cosmetical updates to this utility:
Here it is: Attach:visitors.tar.gz
History
Contributor(s)
Comments, Bugs
pmwiki-2.2.0-beta68 -- Last modified by {{}}?
|