Zach Shepherd's WordPress Blog

Just another WordPress weblog

Friday, September 11, 2009


For some reason, I decided that I wanted a simple, easy url shortener for personal use. I spent 5 minutes installing lilurl and another 5 minutes hacking in a simple password field (so that only I and people I know can use it).

The hack:

> // Password
> define('MD5_PASS', '5f4dcc3b5aa765d61d8327deb882cf99');
diff -r lilurl/index.php
>  if ( md5($_POST['password']) != MD5_PASS ) { die('Incorrect Password'); }
>   <br />
>   <label for="password">Enter your password:</label>
>   <input type="password" name="password" id="password" />

posted by Zach at 1:46 pm  

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress