Fix deprecated function use in index.php.
Merge pull request #28 from timhunt/master

Fix deprecated function use in index.php.