Zach Shepherd's WordPress Blog

Just another WordPress weblog

Friday, September 11, 2009

lilurl

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:

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

posted by Zach at 1:46 pm  

Powered by WordPress