Update index.php for type=0