Esempio n. 1
0
 public function after()
 {
     $firebugEnabled = ProfilerToolbar::cfg('firebug.enabled');
     $firebugShowEverywhere = ProfilerToolbar::cfg('firebug.showEverywhere');
     if ($this->request->is_initial() && $firebugEnabled && $firebugShowEverywhere) {
         ProfilerToolbar::firebug();
     }
 }
Esempio n. 2
0
<?php

defined('SYSPATH') or die('No direct script access.');
// include vendor FireBug
if (ProfilerToolbar::cfg('firebug.enabled') && !class_exists('FirePHP')) {
    require_once Kohana::find_file('vendor/FirePHPCore', 'FirePHP.class', 'php');
}
// include vendor GeShi for code highlight
if (!class_exists('GeSHi') && (ProfilerToolbar::cfg('html.highlightSQL') || ProfilerToolbar::cfg('errorPage.highlightSQL') || ProfilerToolbar::cfg('errorPage.highlightPHP'))) {
    require_once Kohana::find_file('vendor/geshi', 'geshi', 'php');
}
Esempio n. 3
0
    echo View::factory('PTB/items/sql')->render();
}
?>
    <?php 
if (ProfilerToolbar::cfg('html.showCache')) {
    echo View::factory('PTB/items/cache')->render();
}
?>
    <?php 
if (ProfilerToolbar::cfg('html.showVars')) {
    echo View::factory('PTB/items/vars')->render();
}
?>
    <?php 
if (ProfilerToolbar::cfg('html.showRoutes')) {
    echo View::factory('PTB/items/route')->render();
}
?>
    <?php 
if (ProfilerToolbar::cfg('html.showIncFiles')) {
    echo View::factory('PTB/items/files')->render();
}
?>
    <?php 
if (ProfilerToolbar::cfg('html.showCustom')) {
    echo View::factory('PTB/items/custom')->render();
}
?>
  </div>
</div>
<!-- ============================= /PROFILER TOOLBAR ============================= -->
Esempio n. 4
0
<?php

if (isset(Request::$initial) && Request::$initial->is_ajax()) {
    echo "{$class} [ {$code} ]\n{$message}";
} else {
    ?>

<?php 
    $highlightSQL = ProfilerToolbar::cfg('errorPage.highlightSQL');
    $highlightPHP = ProfilerToolbar::cfg('errorPage.highlightPHP');
    ?>

<?php 
    $error_id = uniqid('error');
    ?>
  <style type="text/css">
    body{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAAAAACMmsGiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUCB1jUlGRkWH6CQRMf//y8oJZAFUaCmUwcfODAAAAAElFTkSuQmCC);}
    #ptb_err{font-size: 10pt; font-family:sans-serif; text-align: left; color: gray; margin-top: 30px;}
    #ptb_err a{color:gray;}
    #ptb_err pre{}
    #ptb_err pre.source{overflow: auto; white-space: pre-wrap; font-size: 9pt; line-height: 12pt; margin: 4px 0; border-radius: 3px; padding: 4px 5px 4px 8px; background-color: /*#171717*/#242323; color: white;}
    #ptb_err pre.source span.line { display: block; }
    #ptb_err pre.source span.highlight { background: #414040; }
    #ptb_err pre.source span.line span.num { color: #666; }
    #ptb_err .head{margin-bottom: 4px; background: #8C0B0B; color:white; padding: 10px; border-radius: 3px;}
    #ptb_err .head .type{font-weight: bold; margin: 0;}
    #ptb_err .head .message{margin: 3px 0 0 0;}
    #ptb_err .content{padding: 0 10px; margin: 10px 0 0 0;}
    #ptb_err .content .filePath{margin: 0;}
    #ptb_err .content .filePath .lineNum{}
    #ptb_err .content ol.trace{padding: 0 0 0 10px;}
Esempio n. 5
0
 public function after()
 {
     if ($this->request->is_initial() && ProfilerToolbar::cfg('firebug.enabled') && ProfilerToolbar::cfg('firebug.showEverywhere')) {
         ProfilerToolbar::firebug();
     }
 }
Esempio n. 6
0
<?php

$SHOW_EXPLAIN = ProfilerToolbar::cfg('html.showSqlExplain');
$highlightSQL = ProfilerToolbar::cfg('html.highlightSQL');
?>

<div id="ptb_data_cont_sql" class="ptb_data_cont" style="display: none;">
	<?php 
if (empty(ProfilerToolbar::$DATA_SQL)) {
    ?>
		<ul class="ptb_tabs">
			<li id="ptb_tab_sql_default">default <span>(0)</span></li>
		</ul>
		<div id="ptb_tab_cont_sql_default" class="ptb_tab_cont">
			<table>
				<tr>
					<td colspan="5" class="empty">—</td>
				</tr>
			</table>
		</div>
	<?php 
} else {
    ?>
		<ul class="ptb_tabs">
			<?php 
    foreach (ProfilerToolbar::$DATA_SQL as $k => $v) {
        ?>
				<li id="ptb_tab_sql<?php 
        echo $k;
        ?>
"><?php