Buttered URLs
So I recently took Shaun's Lessn and extended it a bit. I was not using MySQL for one, and also I wanted stats (and so did others). It's a pretty quick and dirty hack to lessn but so far seems to be working good. I added an install.php that will just run the needed SQL queries to set it up too, you can do install.php?start=1 if you already have regular lessn installed. This should execute the stats table creation queries along with adding a custom url field to the existing urls table.
Requirements
- PHP 5.1+ with PDO (typical on most hosts, but probably missing drivers on say your local OS X machine)
- MySQL or PostgreSQL (SQLite is probably easily doable)
Installation
- Upload it, make sure .htaccess is included if you use apache
- Edit -/config.php to reflect your database settings & admin user/pass prefrences
- Run install by visiting http://example.com/install.php
- If upgrading from regular lessn, http://example.com/install.php?start=1