From 9b6663f87a7e679ffba691cf516191fc840cf978 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 24 Nov 2009 19:20:36 -0800 Subject: Update to Kohana r4684 which is now Kohana 2.4 and has substantial changes. --- system/views/kohana/error.php | 252 +++++++++++++++++++++++++++++++++ system/views/kohana/error_disabled.php | 19 +++ system/views/kohana/template.php | 6 +- system/views/kohana_error_disabled.php | 17 --- system/views/kohana_error_page.php | 27 ---- system/views/kohana_errors.css | 21 --- system/views/kohana_profiler.php | 37 ----- system/views/kohana_profiler_table.css | 53 ------- system/views/kohana_profiler_table.php | 25 ---- system/views/profiler/profiler.php | 37 +++++ system/views/profiler/table.css | 53 +++++++ system/views/profiler/table.php | 24 ++++ 12 files changed, 388 insertions(+), 183 deletions(-) create mode 100644 system/views/kohana/error.php create mode 100644 system/views/kohana/error_disabled.php delete mode 100644 system/views/kohana_error_disabled.php delete mode 100644 system/views/kohana_error_page.php delete mode 100644 system/views/kohana_errors.css delete mode 100644 system/views/kohana_profiler.php delete mode 100644 system/views/kohana_profiler_table.css delete mode 100644 system/views/kohana_profiler_table.php create mode 100644 system/views/profiler/profiler.php create mode 100644 system/views/profiler/table.css create mode 100644 system/views/profiler/table.php (limited to 'system/views') diff --git a/system/views/kohana/error.php b/system/views/kohana/error.php new file mode 100644 index 00000000..b40c0f8a --- /dev/null +++ b/system/views/kohana/error.php @@ -0,0 +1,252 @@ + + + +
+

+ + [ ]: + + + + +

+
+

+ +[ ] + +

+ + +
 $row) : ?>
+ + + +
    + $step): ?> +
  1. +

    + + + + [ ] + + [ ] + + + {} + + + » + ( +) +

    + + + + + + +
  2. + + +
+ + +
+

+ +
diff --git a/system/views/kohana/error_disabled.php b/system/views/kohana/error_disabled.php new file mode 100644 index 00000000..1024eb1e --- /dev/null +++ b/system/views/kohana/error_disabled.php @@ -0,0 +1,19 @@ + + + + + + <?php echo htmlspecialchars(__('Unable to Complete Request'), ENT_QUOTES, Kohana::CHARSET) ?> + + +
+

+

+home page or try again.', + array('%site%' => htmlspecialchars(url::site(), ENT_QUOTES, Kohana::CHARSET), '%uri%' => htmlspecialchars(url::site(Router::$current_uri), ENT_QUOTES, Kohana::CHARSET))); +?> +

+
+ + diff --git a/system/views/kohana/template.php b/system/views/kohana/template.php index b090fd88..84ddbff5 100644 --- a/system/views/kohana/template.php +++ b/system/views/kohana/template.php @@ -5,7 +5,7 @@ - <?php echo html::specialchars($title) ?> + <?php echo html::chars(__($title)) ?> - -<?php echo $error ?> - - -
-

-

-
- - \ No newline at end of file diff --git a/system/views/kohana_error_page.php b/system/views/kohana_error_page.php deleted file mode 100644 index 944064cc..00000000 --- a/system/views/kohana_error_page.php +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - -<?php echo $error ?> - - - -
-

-

- -

- -

- -

- - -

-
- - \ No newline at end of file diff --git a/system/views/kohana_errors.css b/system/views/kohana_errors.css deleted file mode 100644 index 1341f57d..00000000 --- a/system/views/kohana_errors.css +++ /dev/null @@ -1,21 +0,0 @@ -div#framework_error { background:#fff; border:solid 1px #ccc; font-family:sans-serif; color:#111; font-size:14px; line-height:130%; } -div#framework_error h3 { color:#fff; font-size:16px; padding:8px 6px; margin:0 0 8px; background:#f15a00; text-align:center; } -div#framework_error a { color:#228; text-decoration:none; } -div#framework_error a:hover { text-decoration:underline; } -div#framework_error strong { color:#900; } -div#framework_error p { margin:0; padding:4px 6px 10px; } -div#framework_error tt, -div#framework_error pre, -div#framework_error code { font-family:monospace; padding:2px 4px; font-size:12px; color:#333; - white-space:pre-wrap; /* CSS 2.1 */ - white-space:-moz-pre-wrap; /* For Mozilla */ - word-wrap:break-word; /* For IE5.5+ */ -} -div#framework_error tt { font-style:italic; } -div#framework_error tt:before { content:">"; color:#aaa; } -div#framework_error code tt:before { content:""; } -div#framework_error pre, -div#framework_error code { background:#eaeee5; border:solid 0 #D6D8D1; border-width:0 1px 1px 0; } -div#framework_error .block { display:block; text-align:left; } -div#framework_error .stats { padding:4px; background: #eee; border-top:solid 1px #ccc; text-align:center; font-size:10px; color:#888; } -div#framework_error .backtrace { margin:0; padding:0 6px; list-style:none; line-height:12px; } \ No newline at end of file diff --git a/system/views/kohana_profiler.php b/system/views/kohana_profiler.php deleted file mode 100644 index da77a669..00000000 --- a/system/views/kohana_profiler.php +++ /dev/null @@ -1,37 +0,0 @@ - - -
-render(); -} -?> -

Profiler executed in s

-
\ No newline at end of file diff --git a/system/views/kohana_profiler_table.css b/system/views/kohana_profiler_table.css deleted file mode 100644 index 6e7601c9..00000000 --- a/system/views/kohana_profiler_table.css +++ /dev/null @@ -1,53 +0,0 @@ -#kohana-profiler .kp-table -{ - font-size: 1.0em; - color: #4D6171; - width: 100%; - border-collapse: collapse; - border-top: 1px solid #E5EFF8; - border-right: 1px solid #E5EFF8; - border-left: 1px solid #E5EFF8; - margin-bottom: 10px; -} -#kohana-profiler .kp-table td -{ - background-color: #FFFFFF; - border-bottom: 1px solid #E5EFF8; - padding: 3px; - vertical-align: top; -} -#kohana-profiler .kp-table .kp-title td -{ - font-weight: bold; - background-color: inherit; -} -#kohana-profiler .kp-table .kp-altrow td -{ - background-color: #F7FBFF; -} -#kohana-profiler .kp-table .kp-totalrow td -{ - background-color: #FAFAFA; - border-top: 1px solid #D2DCE5; - font-weight: bold; -} -#kohana-profiler .kp-table .kp-column -{ - width: 100px; - border-left: 1px solid #E5EFF8; - text-align: center; -} -#kohana-profiler .kp-table .kp-data, #kohana-profiler .kp-table .kp-name -{ - background-color: #FAFAFB; - vertical-align: top; -} -#kohana-profiler .kp-table .kp-name -{ - width: 200px; - border-right: 1px solid #E5EFF8; -} -#kohana-profiler .kp-table .kp-altrow .kp-data, #kohana-profiler .kp-table .kp-altrow .kp-name -{ - background-color: #F6F8FB; -} \ No newline at end of file diff --git a/system/views/kohana_profiler_table.php b/system/views/kohana_profiler_table.php deleted file mode 100644 index b6b46530..00000000 --- a/system/views/kohana_profiler_table.php +++ /dev/null @@ -1,25 +0,0 @@ - - - - > - $column) - { - $class = empty($column['class']) ? '' : ' class="'.$column['class'].'"'; - $style = empty($column['style']) ? '' : ' style="'.$column['style'].'"'; - $value = $row['data'][$index]; - $value = (is_array($value) OR is_object($value)) ? '
'.html::specialchars(print_r($value, TRUE)).'
' : html::specialchars($value); - echo '', $value, ''; - } - ?> - - -
\ No newline at end of file diff --git a/system/views/profiler/profiler.php b/system/views/profiler/profiler.php new file mode 100644 index 00000000..7b9ae951 --- /dev/null +++ b/system/views/profiler/profiler.php @@ -0,0 +1,37 @@ + + +
+render(); +} +?> +

number_format($execution_time, 3))) ?>

+
\ No newline at end of file diff --git a/system/views/profiler/table.css b/system/views/profiler/table.css new file mode 100644 index 00000000..41a1c9a3 --- /dev/null +++ b/system/views/profiler/table.css @@ -0,0 +1,53 @@ +#kohana-profiler .kp-table +{ + font-size: 1.0em; + color: #4D6171; + width: 100%; + border-collapse: collapse; + border-top: 1px solid #E5EFF8; + border-right: 1px solid #E5EFF8; + border-left: 1px solid #E5EFF8; + margin-bottom: 10px; +} +#kohana-profiler .kp-table td +{ + background-color: #FFFFFF; + border-bottom: 1px solid #E5EFF8; + padding: 3px; + vertical-align: top; +} +#kohana-profiler .kp-table .kp-title td +{ + font-weight: bold; + background-color: inherit; +} +#kohana-profiler .kp-table .kp-altrow td +{ + background-color: #F7FBFF; +} +#kohana-profiler .kp-table .kp-totalrow td +{ + background-color: #FAFAFA; + border-top: 1px solid #D2DCE5; + font-weight: bold; +} +#kohana-profiler .kp-table .kp-column +{ + width: 100px; + border-left: 1px solid #E5EFF8; + text-align: center; +} +#kohana-profiler .kp-table .kp-data, #kohana-profiler .kp-table .kp-name +{ + background-color: #FAFAFB; + vertical-align: top; +} +#kohana-profiler .kp-table .kp-name +{ + width: 200px; + border-right: 1px solid #E5EFF8; +} +#kohana-profiler .kp-table .kp-altrow .kp-data, #kohana-profiler .kp-table .kp-altrow .kp-name +{ + background-color: #F6F8FB; +} \ No newline at end of file diff --git a/system/views/profiler/table.php b/system/views/profiler/table.php new file mode 100644 index 00000000..7cdf79dd --- /dev/null +++ b/system/views/profiler/table.php @@ -0,0 +1,24 @@ + + + + > + $column) + { + $class = empty($column['class']) ? '' : ' class="'.$column['class'].'"'; + $style = empty($column['style']) ? '' : ' style="'.$column['style'].'"'; + $value = $row['data'][$index]; + $value = (is_array($value) OR is_object($value)) ? '
'.htmlspecialchars(print_r($value, TRUE), ENT_QUOTES, Kohana::CHARSET).'
' : htmlspecialchars($value, ENT_QUOTES, Kohana::CHARSET); + echo '' . wordwrap($value, 100, '
', true) . ''; + } + ?> + + +
-- cgit v1.2.3