diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-01-19 03:31:13 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-19 03:31:13 +0000 |
| commit | 46d010e89d280d391935648f1f713fc784042050 (patch) | |
| tree | 0d887e6ab08867821546de8463883baaf2dd305b /installer/views/installer.txt.php | |
| parent | ad71e4263ef61efa0720ea6f08d6a9c582684c9b (diff) | |
Simplification pass over the installer:
- Flattened the directory structure
- Greatly simplified structure in installer; it now only reports environmental
checks that fail. Simplified code that prints exceptions. Use only mysql
calls for the installer, but select mysqli automatically if it's available.
Drop the response file; that's easily replicated with flag support
- Create a random password for the admin user
- Delete unused controllers
- Invert the form of the database config template to be mostly non-PHP
with just a few PHP calls
Diffstat (limited to 'installer/views/installer.txt.php')
| -rw-r--r-- | installer/views/installer.txt.php | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/installer/views/installer.txt.php b/installer/views/installer.txt.php deleted file mode 100644 index 986b9297..00000000 --- a/installer/views/installer.txt.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access.") ?> -<?php -function green_start() { - return "\x1B[32m"; -} - -function color_end() { - return "\x1B[0m"; -} - -function red_start() { - return "\x1B[31m"; -} - -function magenta_start() { - return "\x1B[35m"; -} - -function print_msg($header, $msg, $error) { - $format = "| %-21.21s | %-81.81s |\n"; - foreach (explode("\n", wordwrap($msg, 72)) as $text) { - if ($error) { - printf($format, $header, red_start() . $text . color_end()); - } else { - printf($format, $header, green_start() . $text . color_end()); - } - $header = ""; - } -} - -foreach (self::$messages as $section) { - echo "+", str_repeat("-", 98), "+\n"; - printf("| %-96.96s |\n", $section["header"]); - foreach (explode("\n", wordwrap($section["description"], 92)) as $text) { - printf("| %-96.96s |\n", $text); - } - echo "+", str_repeat("-", 98), "+\n"; - - foreach ($section["msgs"] as $header => $msg) { - print_msg($header, $msg["text"], $msg["error"]); - } -} - -echo "+", str_repeat("-", 98), "+\n"; - -if (self::$config_errors) { - printf("| %-96.96s |\n", magenta_start() . - "Please fix the identified issues before attempting the install" . color_end()); - echo "+", str_repeat("-", 98), "+\n"; -} -flush();
\ No newline at end of file |
