Out of nowhere, a client was suddenly unable to log into their control panel. They get this code:
<?php
error_reporting(0);
$pathinfo = pathinfo(__FILE__);
$ext = ‘.’.$pathinfo[‘extension’];
require ‘./core/core.system’.$ext;
?>
And the website was no longer working. The home page shows the php code instead of the site.
They were running 1.6.7, so I took the opportunity to update the site to the current 2.5.2 version (hoping it was a corrupt file which would be replaced), but when I navigate to the admin.php page to start the upgrade (after all of the appropriate files have been uploaded), I get the same php on the home page instead of the upgrade page.
I would very much appreciate some insight as I am at a complete loss. Thank you!