diff options
Diffstat (limited to 'installer/views')
-rw-r--r-- | installer/views/installer.html.php | 14 | ||||
-rw-r--r-- | installer/views/installer.txt.php | 7 |
2 files changed, 11 insertions, 10 deletions
diff --git a/installer/views/installer.html.php b/installer/views/installer.html.php index 34bcb56c..ed372600 100644 --- a/installer/views/installer.html.php +++ b/installer/views/installer.html.php @@ -1,15 +1,15 @@ -<?php defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> - + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - + <title>Gallery3 Requirements Verification</title> - + <style type="text/css"> body { width: 42em; margin: 0 auto; font-family: sans-serif; font-size: 90%; } - + #tests table { border-collapse: collapse; width: 100%; } #tests table th, #tests table td { padding: 0.2em 0.4em; text-align: left; vertical-align: top; } @@ -27,14 +27,14 @@ <body> <? foreach (self::$messages as $section) : ?> <h1><?php print $section["header"] ?></h1> - + <p><?php print $section["description"] ?></p> <div id="tests"> <table cellspacing="0"> <?php foreach ($section["msgs"] as $header => $msg): ?> - + <tr> <th><?php echo $header ?></th> <td class="<?php echo empty($msg["error"]) ? "pass" : "fail" ?>"> diff --git a/installer/views/installer.txt.php b/installer/views/installer.txt.php index 3b6f0512..e7dc155f 100644 --- a/installer/views/installer.txt.php +++ b/installer/views/installer.txt.php @@ -1,4 +1,5 @@ -<?php defined("SYSPATH") or die("No direct script access."); +<?php defined("SYSPATH") or die("No direct script access.") ?> +<? function green_start() { return "\x1B[32m"; } @@ -16,7 +17,7 @@ function magenta_start() { } function print_msg($header, $msg, $error) { - $format = "| %-21.21s | %-81.81s |\n"; + $format = "| %-21.21s | %-81.81s |\n"; foreach (explode("\n", wordwrap($msg, 72)) as $text) { if ($error) { printf($format, $header, red_start() . $text . color_end()); @@ -36,7 +37,7 @@ foreach (self::$messages as $section) { echo "+", str_repeat("-", 98), "+\n"; foreach ($section["msgs"] as $header => $msg) { - print_msg($header, $msg["text"], $msg["error"]); + print_msg($header, $msg["text"], $msg["error"]); } } |