Create toadd_index.php

Add all the PHP code and the button to logout.