public_html/wp-content/plugins/google-document-embedder/functions.php
/**
 * Check health of database tables
 *
 * @since   2.5.0.3
 * @return  mixed
 * @note	Verbose text used in debug information
 */
Check health of database tables
@since   2.5.0.3
@return  mixed
@note        Verbose text used in debug information
Check health of database tables @since 2 . 5 . 0 . 3 @return mixed @note Verbose text used in debug information
function gde_debug_tables( $table = array('gde_profiles', 'gde_secure'), $verbose = false ) {
	global $wpdb;
	if ( is_array( $table ) ) {
		$ok = true;
		foreach ( $table as $t ) {
			$t = $wpdb->prefix . $t;
			if ( $wpdb->get_var( "SHOW TABLES LIKE '$t'" ) == $t ) {
			} else {
				$ok = false;
				gde_dx_log($t . " table missing");
				break;
			}
		}
	} else {
		$ok = true;
		$table = $wpdb->prefix . $table;
		if ( $wpdb->get_var( "SHOW TABLES LIKE '$table'" ) == $table ) {
			$s = "OK ";
			$c = $wpdb->get_var( "SELECT COUNT(*) FROM $table WHERE 1=1" );
			$s = $s . "($c items)";
		} else {
			$s = "NOT OK ($table missing)";
			$ok = false;
		}
	}
	if ( ! $verbose ) {
		return $ok;
	} else {
		return $s;
	}
}
function gde_debug_tables ( $ table = array ( 'gde_profiles' , 'gde_secure' ) , $ verbose = false ) { global $ wpdb ; if ( is_array ( $ table ) ) { $ ok = true ; foreach ( $ table as $ t ) { $ t = $ wpdb -> prefix . $ t ; if ( $ wpdb -> get_var ( " SHOW TABLES LIKE ' $ t ' " ) == $ t ) { } else { $ ok = false ; gde_dx_log ( $ t . "  table missing " ) ; break ; } } } else { $ ok = true ; $ table = $ wpdb -> prefix . $ table ; if ( $ wpdb -> get_var ( " SHOW TABLES LIKE ' $ table ' " ) == $ table ) { $ s = " OK  " ; $ c = $ wpdb -> get_var ( " SELECT COUNT(*) FROM  $ table  WHERE 1=1 " ) ; $ s = $ s . " ( $ c  items) " ; } else { $ s = " NOT OK ( $ table  missing) " ; $ ok = false ; } } if ( ! $ verbose ) { return $ ok ; } else { return $ s ; } }
Check health of database tables
 @since   2.5.0.3
 @return  mixed
 @note        Verbose text used in debug information
Check health of database tables @since 2 . 5 . 0 . 3 @return mixed @note Verbose text used in debug information
// table good