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
Switch to threaded view of this topic Create a new topic Submit Reply
Getting rid of "Time taken to generate" [message #16571] Sun, 08 February 2004 05:47 Go to next message
Skee is currently offline  Skee   Romania
Messages: 1
Registered: February 2004
Karma: 0
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.
Re: Getting rid of "Time taken to generate" [message #16593 is a reply to message #16571] Mon, 09 February 2004 19:15 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There is an option on the global control panel to turn this off for everyone except the admins.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sat Nov 09 17:35:16 GMT 2024

Total time taken to generate the page: 0.02697 seconds