if (!$try)
{
echo '
';
if (file_exists("Packages/uninstall.txt"))
{
echo '
' . $txt['yse175'] . '
';
echo htmlspecialchars(implode("", file("Packages/uninstall.txt")));
echo '
';
unlink("Packages/uninstall.txt");
}
if (file_exists("Packages/uninstall.php"))
{
echo '
' . $txt['yse173'] . '
';
include("Packages/uninstall.php");
unlink("Packages/uninstall.php");
echo '
';
}
if (file_exists("Packages/uninstall.sql"))
{
$fullfile = implode("", file("Packages/uninstall.sql"));
$fullfile = str_replace("", $db_prefix, $fullfile);
echo '
' . $txt['yse175b'] . '
';
echo htmlspecialchars($fullfile);
echo '
' . $txt['yse175c'] . '
';
$SQL_query = mysql_query($fullfile);
if (($SQL_error = mysql_error()) != '')
echo "$txt[yse175d] $SQL_error";
else if (mysql_affected_rows() != 0 || mysql_num_rows() != 0)
echo "$txt[yse175e]";
else
{
echo "";
while ($SQL_row = mysql_fetch_row($SQL_query))
{
foreach($SQL_row as $SQL_printing)
print "$SQL_printing ";
print "
\n";
}
}
print "
";
// Done
unlink("Packages/uninstall.sql");
}
}