Update index.php

Moved code from index2.php to index.php