Tree [b17771] master /

File Date Author Commit
index.php 2010-07-07 Daniel Folkinshteyn Daniel Folkinshteyn [81074c] make channel logs links dynamic
readme.txt 2011-01-26 Daniel Folkinshteyn Daniel Folkinshteyn [f55fdd] Create a readme file to help people set this up.
viewfactoids.php 2014-03-18 Daniel Folkinshteyn Daniel Folkinshteyn [b17771] Use explode() instead of split() since latter i...

Read Me

These files provide an interface to the channel logs and the factoids db for the gribble-fork of supybot. To set these up, follow these instructions.

* Place the two php files into some directory that your web server can serve. We will refer to the path as $webdir.
* Create a 'factoids' directory inside $webdir
* Create symlinks to your factoids databases inside $webdir/factoids. If you serve factoids for multiple channels, it is recommended to name your symlinks with channel name. So e.g., you might do something like this, from within $webdir/factoids:
   ln -s /path/to/Factoids.db \#yourchannel
* The index.php will automatically index the files in $webdir/factoids and show a list of available factoids.
* After you are done, make the $webdir/factoids directory non-writable by you. Otherwise, the viewfactoids.php can create empty files when it tries to read nonexistent databases. To do this, run, from within $webdir:
  chmod ugo-w factoids
* The index.php can also index your channel logs. To allow for that, create the $webdir/channellogs directory, and inside it, make symlinks to the directories of your channellogs.
* The index.php further is hardcoded to link to #sourceforge pisg stats. You probably want to edit that out of index.php.