Update index.php

Make a constant called IN_INDEX for checking the index