vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   DB Error Notification Restrictor (https://vborg.vbsupport.ru/showthread.php?t=110574)

Scott MacVicar 03-15-2006 10:00 PM

DB Error Notification Restrictor
 
While doing some dev work I was getting annoyed with my second SQL server disappearing and me getting 100 emails telling me so, now the problem was the database couldn't be connected to so I couldn't store the time the error occured.

I did think of a text file but I wanted emails for different types of errors so I decided to use SQLite, I also didn't want to have to deal with file locking and parsing.

You will need PHP 5+

You will need to do the following:

* Create a cache folder in your main vBulletin directory
* Chmod cache folder to 666
* Upload blank index.html to the cache folder
* Upload db_error_install.php to your install folder
* Run db_error_install.php
* Edit class_core.php as in the text file

If there is something like this already, apologies.

Xenon 03-16-2006 05:56 PM

thx, will try out that one, i am annoyed of that msgs as well ^^

Scott MacVicar 03-16-2006 06:01 PM

You can use PHP 4 too if the SQLite extension from Pecl is installed http://pecl.php.net/package/SQLite

Snake 03-16-2006 06:05 PM

This is so useful. Thanks Scott! :)

DementedMindz 03-16-2006 06:30 PM

thanks :)

Paul M 03-16-2006 11:47 PM

Marco did one a few months ago which I use (file based). :)

Scott MacVicar 03-17-2006 01:02 AM

I didn't know, apologies to Marco for producing something so similar.

COBRAws 03-17-2006 03:55 AM

no more spam war *YAY* xD

Kihon Kata 03-17-2006 02:49 PM

I am running 4. How can I tell if SQLite extension from Pecl is installed on my server?

Scott MacVicar 03-17-2006 05:18 PM

Look in your phpinfo it should show it there.


All times are GMT. The time now is 10:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02306 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete