Skip to content

Commit

Permalink
Changed wording in installer and added an install error log file
Browse files Browse the repository at this point in the history
  • Loading branch information
wilpig committed Dec 29, 2012
1 parent 83f833a commit acf7eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Empty file added install.err
Empty file.
6 changes: 5 additions & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,17 @@ function applyupdate ($updatefile){
<body>
<?php
if(isset($results)){
$fh=fopen('install.err', 'a');
fwrite($fh, date("Y-m-d g:i:s a\n"));
foreach($results as $key => $value){
foreach($value as $status => $message){
if($status==1){$class="error";}else{$class="success";}
print "<h1 class=\"$class\">$message</h1>";
fwrite($fh, $message);
}
}
print "<p class=\"$class\">If all updates have completed. Please remove install.php to return to normal functionality.</p><p>Reload the page to try loading sql updates again or to go on to the installer</p>";
fclose($fh);
print "<p>If any red errors are showing that does not necessarily mean it failed to load. Press F5 to reload this page until it goes to the configuration screen</p>";
}else{
echo '<p class="success">All is well. Please remove install.php to return to normal functionality</p>';
}
Expand Down

0 comments on commit acf7eff

Please sign in to comment.