kidoblivious
New member
Here are 4 little scripts I wrote to beautify the clan snapshots directory. They won't work unless you are serving it up on a (Apache) web server with php and mod_rewrite - this however isn't a tutorial on installing them (I must emphasize this is no big shakes if you are thinking about it.)
What it does
index.php colours each record depending on month of the year and provides handy access to the internal directories mafia makes for the snapshots through the other scripts. (Tested for usefulness to red/green colourblind people on Mister Flopsy, feedback gratefully received.)
ascensions.php gives the saved ascensions for your clannies and their links to the KoLDB.
profiles.php gives the saved profiles of the clannies and links for each of them to the jicken wings DC database.
kolchar.inc collects the small bits of common code together in a useful place.
Installing it
Simply copy them into your clan snapshot directory (and change the owner to www and make sure the files are readable!) and browse to there!
If your (apache)webserver doesn't serve up index.php by default you add (modify) these lines in /etc/httpd.conf
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
To support ascensions.php and profiles.php add these lines to your /etc/httpd.conf (they are what depends on mod_rewrite; there are other solutions to do this but this is mine
RedirectMatch ^/snapshots/(.+)/ascensions/$ "/snapshots/ascensions.php?dir=$1"
RedirectMatch ^/snapshots/(.+)/profiles/$ "/snapshots/profiles.php?dir=$1"
Change /snapshots/ to match your snapshot directory.
If you would like to see the working instance I am not shy, it is at http://www.kidoblivious.no-ip.org/SomethingLounge/snapshots/clan/
These scripts are neither 100% secure nor 100% bug-proof so you may want to think twice about copying them onto your web server and letting the world access them without first reading them to be sure they're doing what I tell you they're doing, and that I'm not some measly malware spreader.
Comments welcomed.
What it does
index.php colours each record depending on month of the year and provides handy access to the internal directories mafia makes for the snapshots through the other scripts. (Tested for usefulness to red/green colourblind people on Mister Flopsy, feedback gratefully received.)
ascensions.php gives the saved ascensions for your clannies and their links to the KoLDB.
profiles.php gives the saved profiles of the clannies and links for each of them to the jicken wings DC database.
kolchar.inc collects the small bits of common code together in a useful place.
Installing it
Simply copy them into your clan snapshot directory (and change the owner to www and make sure the files are readable!) and browse to there!
If your (apache)webserver doesn't serve up index.php by default you add (modify) these lines in /etc/httpd.conf
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
To support ascensions.php and profiles.php add these lines to your /etc/httpd.conf (they are what depends on mod_rewrite; there are other solutions to do this but this is mine

RedirectMatch ^/snapshots/(.+)/ascensions/$ "/snapshots/ascensions.php?dir=$1"
RedirectMatch ^/snapshots/(.+)/profiles/$ "/snapshots/profiles.php?dir=$1"
Change /snapshots/ to match your snapshot directory.
If you would like to see the working instance I am not shy, it is at http://www.kidoblivious.no-ip.org/SomethingLounge/snapshots/clan/
These scripts are neither 100% secure nor 100% bug-proof so you may want to think twice about copying them onto your web server and letting the world access them without first reading them to be sure they're doing what I tell you they're doing, and that I'm not some measly malware spreader.
Comments welcomed.