Updated build

This commit is contained in:
Starbeamrainbowlabs 2015-03-14 18:39:02 +00:00
parent 0e88b7cbeb
commit e423397dc0
2 changed files with 10 additions and 4 deletions

View File

@ -819,7 +819,7 @@ switch($_GET["action"])
$log .= "done.\n";
$log .= "Update complete. I am now running on the latest version of $sitename.";
$log .= "The version number that I have updated to can be found on the credits or help ages."
$log .= "The version number that I have updated to can be found on the credits or help ages.";
exit(renderpage("Update - Success", "<ul><li>" . implode("</li><li>", explode("\n", $log)) . "</li></ul>"));

View File

@ -935,9 +935,15 @@ switch($_GET["action"])
$code = substr($newcode, strpos($newcode, $settings_separator));
$result = $settings . $code;
$log .= "done.\n";
header("content-type: text/php");
echo("$log\n\n");
exit($result);
$log .= "Saving...";
file_put_contents(__FILE__, $result);
$log .= "done.\n";
$log .= "Update complete. I am now running on the latest version of $sitename.";
$log .= "The version number that I have updated to can be found on the credits or help ages.";
exit(renderpage("Update - Success", "<ul><li>" . implode("</li><li>", explode("\n", $log)) . "</li></ul>"));
break;