1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

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 .= "done.\n";
$log .= "Update complete. I am now running on the latest version of $sitename."; $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>")); 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)); $code = substr($newcode, strpos($newcode, $settings_separator));
$result = $settings . $code; $result = $settings . $code;
$log .= "done.\n"; $log .= "done.\n";
header("content-type: text/php");
echo("$log\n\n"); $log .= "Saving...";
exit($result); 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; break;