public_html/wp-content/plugins/google-document-embedder/gviewer.php
/**
 * Activate the plugin
 *
 * @since   0.2
 * @return  void
 * @note	This function must remain in this file
 */
Activate the plugin
@since   0.2
@return  void
@note        This function must remain in this file
Activate the plugin @since 0 . 2 @return void @note This function must remain in this file
function gde_activate( $network_wide ) {
	if ( ! ( phpversion() >= '5.2.0' ) ) {
		wp_die( 'Your server is running PHP version ' . phpversion() . ' but this plugin requires at least 5.2.0' );
	}
	$gde_db_ver = "1.2";
	if ( $network_wide ) {
		wp_die("Network activation is not supported at this time. Please activate individually until an update is available.");
	}
	require_once( plugin_dir_path( __FILE__ ) . 'libs/lib-setup.php' );
	if ( gde_db_tables( $gde_db_ver ) ) {
		gde_setup();
	} else {
		gde_dx_log("Table creation failed; setup halted");
		wp_die( __("Setup wasn't able to create the required database tables.", 'google-document-embedder') );
	}
}
function gde_activate ( $ network_wide ) { if ( ! ( phpversion ( ) >= '5.2.0' ) ) { wp_die ( 'Your server is running PHP version ' . phpversion ( ) . ' but this plugin requires at least 5.2.0' ) ; } $ gde_db_ver = " 1.2 " ; if ( $ network_wide ) { wp_die ( " Network activation is not supported at this time. Please activate individually until an update is available. " ) ; } require_once ( plugin_dir_path ( __FILE__ ) . 'libs/lib-setup.php' ) ; if ( gde_db_tables ( $ gde_db_ver ) ) { gde_setup ( ) ; } else { gde_dx_log ( " Table creation failed; setup halted " ) ; wp_die ( __ ( " Setup wasn't able to create the required database tables. " , 'google-document-embedder' ) ) ; } }
Activate the plugin
 @since   0.2
 @return  void
 @note        This function must remain in this file
Activate the plugin @since 0 . 2 @return void @note This function must remain in this file
// check for sufficient php version (minimum supports json_encode) // set db schema version for this release - global not available here // check for network-wide activation (currently not supported) // create/update profile db, if necessary