I can't find the text in that .php file. There's something completely different instead. I'm using the latest version of SMF. I *think* this is the right spot - it starts on line 144. But as you can see, it's nothing like the code in the first post...
function PackageInstallTest()
{
global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;
// You have to specify a file!!
if (!isset($_REQUEST['package']) || $_REQUEST['package'] == '')
redirectexit('action=packages');
$context['filename'] = preg_replace('~[\.]+~', '.', $_REQUEST['package']);
require_once($sourcedir . '/Subs-Package.php');
// Load up the package FTP information?
if (isset($_SESSION['pack_ftp']))
packageRequireFTP($scripturl . '?action=packages;sa=' . $_REQUEST['sa'] . ';package=' . $_REQUEST['package']);