public_html/wp-content/plugins/google-document-embedder/functions.php
/**
 * GDE Extended Logging
 *
 * @since   2.5.0.1
 * @return  bool Whether or not log write was successful
 */
GDE Extended Logging
@since   2.5.0.1
@return  bool Whether or not log write was successful
GDE Extended Logging @since 2 . 5 . 0 . 1 @return bool Whether or not log write was successful
function gde_dx_log( $text ) {
	global $gdeoptions, $wpdb;
	if ( GDE_DX_LOGGING > 0 || ( isset( $gdeoptions['error_log'] ) && $gdeoptions['error_log'] == "yes" ) ) {
		add_action( 'activated_plugin', 'gde_save_error' );
		$table = $wpdb->base_prefix . 'gde_dx_log';
		if ( gde_dx_log_create() ) {
			$blogid = get_current_blog_id();
			$text = date( "d-m-Y, H:i:s" ) . " - $text";
			if ( ! $wpdb->insert(
					$table,
					array(
						'blogid' 	=>	$blogid,
						'data'		=>	$text
					),
					array(
						'%d', '%s'
					)
				) ) {
				return false;
			} else {
				return true;
			}
		} else {
			return false;
		}
	} else {
		return false;
	}
}
function gde_dx_log ( $ text ) { global $ gdeoptions , $ wpdb ; if ( GDE_DX_LOGGING > 0 || ( isset ( $ gdeoptions [ 'error_log' ] ) && $ gdeoptions [ 'error_log' ] == " yes " ) ) { add_action ( 'activated_plugin' , 'gde_save_error' ) ; $ table = $ wpdb -> base_prefix . 'gde_dx_log' ; if ( gde_dx_log_create ( ) ) { $ blogid = get_current_blog_id ( ) ; $ text = date ( " d-m-Y, H:i:s " ) . "  -  $ text " ; if ( ! $ wpdb -> insert ( $ table , array ( 'blogid' => $ blogid , 'data' => $ text ) , array ( '%d' , '%s' ) ) ) { return false ; } else { return true ; } } else { return false ; } } else { return false ; } }
GDE Extended Logging
 @since   2.5.0.1
 @return  bool Whether or not log write was successful
GDE Extended Logging @since 2 . 5 . 0 . 1 @return bool Whether or not log write was successful
// filter to trap any "unexpected output" to log // create/update table if necessary, then write to log // write to log // couldn't write to db // can't create db table // logging disabled