Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by damicatz damicatz is offline
Developer Last Online: Oct 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-03-2001 Last Update: Never Installs: 6
 
No support by the author.

Requested in : https://vborg.vbsupport.ru/showthrea...threadid=32106

EDIT : View my latest post for an update to this hack

This hack makes it so whenever there is a database error, the user who got the error's IP is logged and then included in the error e-mail that is sent to the administrator.

There is no demo currently.

Instructions are attached

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-04-2001, 03:37 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I've installed this. Now I just have to wait for an error so I can see what, exactly, the results of this hack are. I know what this does in theory, I just want to see some actual results. Does anyone know how to simulate a database error?
Reply With Quote
  #3  
Old 11-04-2001, 03:38 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JJR512
OK, I've installed this. Now I just have to wait for an error so I can see what, exactly, the results of this hack are. I know what this does in theory, I just want to see some actual results. Does anyone know how to simulate a database error?
shutdown mysql and let visitors hit an error lol
Reply With Quote
  #4  
Old 11-04-2001, 03:43 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL

I'm on a shared server, so I can't do that...but how about mis-naming the database name in the config.php file, would that do it?
Reply With Quote
  #5  
Old 11-04-2001, 04:30 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it would,



That's how I tested it, I just stopped the service but you could also just misname in config.php
Reply With Quote
  #6  
Old 11-04-2001, 06:25 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I gonna install it and let you soon know if it works, i receive more then 20 emails a day with the error: MySQL Server Gone Away so.... You will get soon a reply if it works
Reply With Quote
  #7  
Old 11-04-2001, 06:38 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hold on I just made a new version,

This one also sends the User ID of the user who got that error as well.

I know what you mean, maybe it's best to take out the please refresh part in the database error. Whenever there's a database error I get about 20,000 error e-mails because people love to just sit there and click refresh over and over for about an hour.

One thing of note about the new version, it can only return the UserId in some cases, if your database is completly down it probably won't be able to retrive the UserID.

*Goes to finish Announcement View Counter Hack :d*
Reply With Quote
  #8  
Old 11-04-2001, 07:09 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1st version worked good and the 2nd aswell, thnx.

And yes, very annoying that ppl refresh the error. I taked out that refresh text.
Reply With Quote
  #9  
Old 11-30-2001, 06:07 PM
Dark Blaze's Avatar
Dark Blaze Dark Blaze is offline
 
Join Date: Nov 2001
Location: World Wide Web
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great. Now I'll be able to tell who keeps getting these errors

Could you have it to also show the username?

Well done with the hack
Reply With Quote
  #10  
Old 11-30-2001, 10:13 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Dark Blaze
This is great. Now I'll be able to tell who keeps getting these errors

Could you have it to also show the username?

Well done with the hack
When there's a database error it's hard to get the username, because well there's a database error.

I can get the userid when the user table isn't broken but if it' something like the entire database is down it wouldn't work.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04760 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete