View Single Post
  #7  
Old 02-06-2011, 05:03 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hippy View Post
the "Error 005". would happen when ?

I see the line is still $vs['start'] = $gametime;
if that error never happened should it still be changed to $vs['start'] = $gametime - 1.0;
Sorry, I don't remember the details. I think it only happened with IE in certain circumstances, maybe only with certain games (but I do remember that I was able to get it to happen when I wanted). I guess if no one's ever complained then there's probably no reason to change it. It's a hack - something later is subtracted from the gametime (or the other way around) and if it's 0 it causes an error, so I made sure it was never 0. I don't even know if that was a reasonable way to fix it, for all I know I was just disabling a check that was put in there for a reason I don't understand.

Quote:
please explain a little more about exec_shut_down();
I am not sure if it's still needed

what was it doing with out it before.. thanks
To keep the session from timing out, init.php calls $vbulletin->session->do_lastvisit_update(). I guess for guests it works OK, but for logged in users it updates the session table with the current time, but it does it with db->shutdown_query(), which just queues it up to be run at shutdown (I don't know why - to speed up page loading maybe?). Anyway, it turns out that it's usually called by print_output() which isn't called in holdsession.php. I remember all that pretty well because I spent hours trying to figure out why the session was timing out even though holdsession.php was being requested. But like I said, that was 3.8 code so if you're working on version 4 it might not be true any more.

I suppose it's also possible I made a mistake somewhere alone the line...
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01197 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete