Changeset 1684
- Timestamp:
- 01/06/2008 02:31:17 AM (9 months ago)
- Location:
- trunk/system
- Files:
-
- 5 modified
-
config/profiler.php (modified) (1 diff)
-
i18n/en_US/profiler.php (modified) (1 diff)
-
i18n/nl_NL/profiler.php (modified) (1 diff)
-
libraries/Profiler.php (modified) (2 diffs)
-
views/kohana_profiler.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/config/profiler.php
r1668 r1684 21 21 */ 22 22 $config['session'] = TRUE; 23 24 /** 25 * Show cookie data. 26 */ 27 $config['cookie'] = TRUE; -
trunk/system/i18n/en_US/profiler.php
r1297 r1684 11 11 'no_queries' => 'No queries', 12 12 'no_database' => 'Database not loaded', 13 'cookie_data' => 'Cookie Data', 14 'no_cookie' => 'No cookie data', 13 15 ); -
trunk/system/i18n/nl_NL/profiler.php
r1524 r1684 11 11 'no_queries' => 'Geen queries', 12 12 'no_database' => 'Database niet geladen', 13 'cookie_data' => 'Cookie Data', 14 'no_cookie' => 'Geen cookie data', 13 15 ); -
trunk/system/libraries/Profiler.php
r1522 r1684 78 78 } 79 79 80 if (Config::item('profiler.cookie')) 81 { 82 $data['cookie'] = TRUE; 83 } 84 80 85 // Load the profiler view 81 86 $view = new View('kohana_profiler', $data); 82 87 83 88 // Return rendered view if $return is TRUE 84 89 if ($return == TRUE) … … 89 94 { 90 95 // Closing body tag was found, insert the profiler data before it 91 Kohana::$output = str_ replace('</body>', $view->render().'</body>', Kohana::$output);96 Kohana::$output = str_ireplace('</body>', $view->render().'</body>', Kohana::$output); 92 97 } 93 98 else -
trunk/system/views/kohana_profiler.php
r1606 r1684 65 65 background-color: #CCE8FB; 66 66 } 67 #kp-cookiedata th 68 { 69 background-color: #FFF4D7; 70 } 67 71 #kohana-profiler .kp-column 68 72 { … … 237 241 <?php endif; ?> 238 242 243 <?php if (isset($cookie)): ?> 244 <table id="kp-cookiedata"> 245 <tr> 246 <th colspan="2"><?php echo Kohana::lang('profiler.cookie_data') ?></th> 247 </tr> 248 <?php 249 250 if (count($_COOKIE) == 0): 251 252 ?> 253 <tr><td colspan="2"><?php echo Kohana::lang('profiler.no_cookie') ?></td></tr> 254 <?php 255 256 else: 257 text::alternate(); 258 foreach($_COOKIE as $name => $value): 259 260 ?> 261 <tr<?php echo text::alternate('', ' class="kp-altrow"') ?>> 262 <td class="kp-name"><?php echo $name ?></td> 263 <td> 264 <?php echo (is_array($value)) ? '<pre>'.html::specialchars(print_r($value, TRUE)).'</pre>' : html::specialchars($value) ?> 265 </td> 266 </tr> 267 <?php 268 269 endforeach; 270 endif; 271 272 ?> 273 </table> 274 <?php endif; ?> 275 239 276 </div>
