Massive update to index.php