Changeset 885

Show
Ignore:
Timestamp:
02/16/08 15:13:26 (10 months ago)
Author:
_ck_
Message:

bug fix to hide output in some different situations

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-benchmark/trunk/_bb-benchmark.php

    r876 r885  
    66Author: _ck_ 
    77Author URI: http://bbShowcase.org 
    8 Version: 0.18 
     8Version: 0.19 
    99 
    1010License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ 
     
    27270.17    : double dashes break html comments and make them visible -- replaced as - - 
    28280.18    : add hook to admin panel for plugin admin testing 
     290.19    : bug fix to hide output in some different situations 
    2930*/ 
    3031 
    3132function bb_benchmark_output() { 
    32 // if (bb_current_user_can( 'administrate' ) )  :  
     33if (bb_current_user_can( 'administrate' ) )  :  
    3334                $timer_stop=bb_timer_stop(0);    
    3435                global $bbdb;                    
    3536                 
    36         echo "<!-- \n === benchmark & query results === \n\n";  
     37        echo " <!-- \n === benchmark & query results === \n\n";  
    3738                                                                 
    3839                if (function_exists("shell_exec")  && $test=@shell_exec("uptime")) {echo $test."\n\n";} 
     
    5051         
    5152        echo "total query count: ".$bbdb->num_queries." \n\n";                   
    52         echo "To see full bb-benchmark results here put the following line into your config.php\ndefine('SAVEQUERIES', true);\n\n -->"; 
     53        echo "To see full bb-benchmark results here put the following line into your config.php\ndefine('SAVEQUERIES', true);\n\n --> "; 
    5354 
    5455        else : 
     
    8182        } echo "\n".count($included_files)." files, ".round($totalsize/1024,2)." Kb\n"; 
    8283 
    83         echo "-->"; 
     84        echo " --> "; 
    8485                 
    8586        endif; 
    8687 
    87 // endif;      
     88endif;         
    8889} 
    8990add_action('bb_foot', 'bb_benchmark_output'); 
  • bb-benchmark/trunk/readme.txt

    r876 r885  
    11=== bbPress Benchmark === 
    2 Tags: performance, speed, benchmark, mysql, queries, cache, caching, fast, faster, _ck_ 
     2Tags: _ck_, performance, speed, benchmark, mysql, queries, cache, caching, faster 
    33Contributors: _ck_ 
    44Requires at least: 0.8 
     
    6262* 0.17  : double dashes break html comments and make them visible -- replaced as - - 
    6363* 0.18  : added hook to admin panel for plugin admin testing 
    64  
     64* 0.19  : important bug fix to hide output again in certain situations