I rolled back my database to a snapshot from last night before I made any changes. There’s still no access to wp-admin.
I’ve undone the change I made to index.php, it’s still no good. There’s something in the html files which must have been changed when I updated through the admin interface.