Update index.php

rights and input enable needs documentation
(initialization from array might be clearer, diffs show out more.