backupbuddy_backup/wp-content/plugins/backupbuddy/classes/core.php
/* kick_db()
	 *
	 * Attempt to verify the database server is still alive and functioning.  If not, try to re-establish connection.
	 *
	 */
kick_db()
Attempt to verify the database server is still alive and functioning.  If not, try to re-establish connection.
kick_db () Attempt to verify the database server is still alive and functioning . If not try to re - establish connection .
public static function kick_db() {
		$kick_db = true; 
		if ( $kick_db === true ) {
			@include_once( pb_backupbuddy::plugin_path() . '/lib/wpdbutils/wpdbutils.php' );
			if ( class_exists( 'pluginbuddy_wpdbutils' ) ) {
				global $wpdb;
				$dbhelper = new pluginbuddy_wpdbutils( $wpdb );
				if ( !$dbhelper->kick() ) {
					pb_backupbuddy::status( 'error', __('Database Server has gone away, unable to update remote destination transfer status. This is most often caused by mysql running out of memory or timing out far too early. Please contact your host.', 'it-l10n-backupbuddy' ) );
				}
			} else {
				pb_backupbuddy::status( 'details', __('Database Server connection status unverified.', 'it-l10n-backupbuddy' ) );
			}
		}
	}
public static function kick_db ( ) { $ kick_db = true ; if ( $ kick_db === true ) { @ include_once ( pb_backupbuddy :: plugin_path ( ) . '/lib/wpdbutils/wpdbutils.php' ) ; if ( class_exists ( 'pluginbuddy_wpdbutils' ) ) { global $ wpdb ; $ dbhelper = new pluginbuddy_wpdbutils ( $ wpdb ) ; if ( ! $ dbhelper -> kick ( ) ) { pb_backupbuddy :: status ( 'error' , __ ( 'Database Server has gone away, unable to update remote destination transfer status. This is most often caused by mysql running out of memory or timing out far too early. Please contact your host.' , 'it-l10n-backupbuddy' ) ) ; } } else { pb_backupbuddy :: status ( 'details' , __ ( 'Database Server connection status unverified.' , 'it-l10n-backupbuddy' ) ) ; } } }
kick_db()
 Attempt to verify the database server is still alive and functioning.
kick_db () Attempt to verify the database server is still alive and functioning .
// Change true to false for debugging purposes to disable kicker. // Need to make sure the database connection is active. Sometimes it goes away during long bouts doing other things -- sigh. // This is not essential so use include and not require (suppress any warning) // This is the database object we want to use // Get our helper object and let it use us to output status messages // If we cannot kick the database into life then signal the error and return false which will stop the backup // Otherwise all is ok and we can just fall through and let the function return true // Utils not available so cannot verify database connection status - just notify