75 |
75 |
76 function echo_stage_success($stage_id, $stage_name) |
76 function echo_stage_success($stage_id, $stage_name) |
77 { |
77 { |
78 global $neutral_color; |
78 global $neutral_color; |
79 $neutral_color = ( $neutral_color == 'A' ) ? 'C' : 'A'; |
79 $neutral_color = ( $neutral_color == 'A' ) ? 'C' : 'A'; |
80 echo '<tr><td style="width: 500px; background-color: #' . "{$neutral_color}{$neutral_color}FF{$neutral_color}{$neutral_color}" . '; padding: 0 5px;">' . htmlspecialchars($stage_name) . '</td><td style="padding: 0 5px;"><img alt="Done" src="../images/good.gif" /></td></tr>' . "\n"; |
80 echo '<tr><td style="width: 500px; background-color: #' . "{$neutral_color}{$neutral_color}FF{$neutral_color}{$neutral_color}" . '; padding: 0 5px;">' . htmlspecialchars($stage_name) . '</td><td style="padding: 0 5px;"><img alt="Done" src="../images/check.png" /></td></tr>' . "\n"; |
81 flush(); |
81 flush(); |
82 } |
82 } |
83 |
83 |
84 function echo_stage_failure($stage_id, $stage_name, $failure_explanation, $resume_stack) |
84 function echo_stage_failure($stage_id, $stage_name, $failure_explanation, $resume_stack) |
85 { |
85 { |
86 global $neutral_color; |
86 global $neutral_color; |
87 global $lang; |
87 global $lang; |
88 |
88 |
89 $neutral_color = ( $neutral_color == 'A' ) ? 'C' : 'A'; |
89 $neutral_color = ( $neutral_color == 'A' ) ? 'C' : 'A'; |
90 echo '<tr><td style="width: 500px; background-color: #' . "FF{$neutral_color}{$neutral_color}{$neutral_color}{$neutral_color}" . '; padding: 0 5px;">' . htmlspecialchars($stage_name) . '</td><td style="padding: 0 5px;"><img alt="Failed" src="../images/bad.gif" /></td></tr>' . "\n"; |
90 echo '<tr><td style="width: 500px; background-color: #' . "FF{$neutral_color}{$neutral_color}{$neutral_color}{$neutral_color}" . '; padding: 0 5px;">' . htmlspecialchars($stage_name) . '</td><td style="padding: 0 5px;"><img alt="Failed" src="../images/checkbad.png" /></td></tr>' . "\n"; |
91 flush(); |
91 flush(); |
92 close_install_table(); |
92 close_install_table(); |
93 $post_data = ''; |
93 $post_data = ''; |
94 $mysql_error = mysql_error(); |
94 $mysql_error = mysql_error(); |
95 foreach ( $_POST as $key => $value ) |
95 foreach ( $_POST as $key => $value ) |