@@ 493-502 (lines=10) @@ | ||
490 | .'<legend style="color:#000;"> '.$this->CI->lang->line('profiler_config').' (<span style="cursor: pointer;" onclick="var s=document.getElementById(\'ci_profiler_config_table\').style;s.display=s.display==\'none\'?\'\':\'none\';this.innerHTML=this.innerHTML==\''.$this->CI->lang->line('profiler_section_show').'\'?\''.$this->CI->lang->line('profiler_section_hide').'\':\''.$this->CI->lang->line('profiler_section_show').'\';">'.$this->CI->lang->line('profiler_section_show')."</span>)</legend>\n\n\n" |
|
491 | .'<table style="width:100%;display:none;" id="ci_profiler_config_table">'."\n"; |
|
492 | ||
493 | foreach ($this->CI->config->config as $config => $val) |
|
494 | { |
|
495 | if (is_array($val) OR is_object($val)) |
|
496 | { |
|
497 | $val = print_r($val, TRUE); |
|
498 | } |
|
499 | ||
500 | $output .= '<tr><td style="padding:5px;vertical-align:top;color:#900;background-color:#ddd;">' |
|
501 | .$config.' </td><td style="padding:5px;color:#000;background-color:#ddd;">'.htmlspecialchars($val)."</td></tr>\n"; |
|
502 | } |
|
503 | ||
504 | return $output."</table>\n</fieldset>"; |
|
505 | } |
|
@@ 525-534 (lines=10) @@ | ||
522 | .'<legend style="color:#000;"> '.$this->CI->lang->line('profiler_session_data').' (<span style="cursor: pointer;" onclick="var s=document.getElementById(\'ci_profiler_session_data\').style;s.display=s.display==\'none\'?\'\':\'none\';this.innerHTML=this.innerHTML==\''.$this->CI->lang->line('profiler_section_show').'\'?\''.$this->CI->lang->line('profiler_section_hide').'\':\''.$this->CI->lang->line('profiler_section_show').'\';">'.$this->CI->lang->line('profiler_section_show').'</span>)</legend>' |
|
523 | .'<table style="width:100%;display:none;" id="ci_profiler_session_data">'; |
|
524 | ||
525 | foreach ($this->CI->session->userdata() as $key => $val) |
|
526 | { |
|
527 | if (is_array($val) OR is_object($val)) |
|
528 | { |
|
529 | $val = print_r($val, TRUE); |
|
530 | } |
|
531 | ||
532 | $output .= '<tr><td style="padding:5px;vertical-align:top;color:#900;background-color:#ddd;">' |
|
533 | .$key.' </td><td style="padding:5px;color:#000;background-color:#ddd;">'.htmlspecialchars($val)."</td></tr>\n"; |
|
534 | } |
|
535 | ||
536 | return $output."</table>\n</fieldset>"; |
|
537 | } |