Update index.php

Fix warning for ereg_replace with PHP >= 5.5