FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Getting rid of "Time taken to generate"
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Getting rid of "Time taken to generate" [message #16571] Sun, 08 February 2004 05:47 Go to previous message
Skee is currently offline  Skee   Romania
Messages: 1
Registered: February 2004
Karma:
Junior Member

How can i disable the display of the "Time taken to generate the page" message on every page?
I've looked through the code and found this code:

if (_uid && $usr->users_opt & 1048576) {
	$page_gen_end = gettimeofday();
	$page_gen_time = sprintf('%.5f', ($page_gen_end['sec'] - $PAGE_TIME['sec'] + (($page_gen_end['usec'] - $PAGE_TIME['usec'])/1000000)));
	$page_stats = '<br /><div align="left" class="SmallText">Total time taken to generate the page: '.$page_gen_time.' seconds</div>';
} else if ($FUD_OPT_2 & 2) {
	$page_gen_end = gettimeofday();
	$page_gen_time = sprintf('%.5f', ($page_gen_end['sec'] - $PAGE_TIME['sec'] + (($page_gen_end['usec'] - $PAGE_TIME['usec'])/1000000)));
	$page_stats = '<br /><div align="left" class="SmallText">Total time taken to generate the page: '.$page_gen_time.' seconds</div>';
} else {
	$page_stats = '';


I've checked my GLOBALS.php and found that my $FUD_OPT_2 = 1078423614; unfortunately I don't know how to interpret $FUD_OPT_2 & 2, so don't know what to change it to.
Of course, I could be completely wrong on this, there could be an option in the config that i simply haven't seen. Smile

Any help would be greatly appreciated.

Thanks in advance,
Skee.
[Message index]
 
Read Message
Read Message
Previous Topic: changing from png's to gif's
Next Topic: More category- og forum-levels
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 12 20:51:53 GMT 2024

Total time taken to generate the page: 0.07372 seconds