Changeset 1323
- Timestamp:
- 02/14/2009 02:47:39 AM (13 months ago)
- Files:
-
- 1 modified
-
branches/1.1.6.6/setup/header.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1.6.6/setup/header.php
r1322 r1323 2 2 3 3 // stuff 4 function test($text, $condition, $errorText = "<em class=\"error\">Please use your browser's back button to correct any errors on the previous page.</em>", $stopOnError = 1) {5 print("$text ");4 function test($text, $condition, $errorText = '<em class="error">Please use your browser\'s back button to correct any errors on the previous page.</em>', $stopOnError = 1) { 5 echo $text; 6 6 if ($condition) 7 7 { 8 print("<span class=\"ok\">OK</span><br />\n");8 echo ' <span class="ok">OK</span><br />'."\n"; 9 9 } 10 10 else 11 11 { 12 print("<span class=\"failed\">FAILED</span>");13 if ($errorText) print(": ".$errorText);14 print("<br />\n");12 echo ' <span class="failed">FAILED</span>'; 13 if ($errorText) echo '<p>'.$errorText.'</p>'."\n"; 14 echo '<br />'."\n"; 15 15 if ($stopOnError) 16 16 { … … 185 185 } 186 186 187 /* inline system messages */188 187 em.error { 189 188 border: 2px solid #A33;