= 90 ) { return true; } return false; } static function missing_affiliate_ids() { $networks = get_option( 'dfrapi_networks', array() ); if ( !empty( $networks ) ) { foreach ( $networks['ids'] as $network ) { if ( empty( $network['aid'] ) ) { return true; } } } return false; } static function check_gmt_time() { $gmt_time = gmdate( 'Gis' ); if ( $gmt_time > 80000 && $gmt_time < 82000 ) { return true; } return false; } static function unapproved_zanox_merchants_exist() { global $wpdb; $results = $wpdb->get_results( "SELECT option_name FROM $wpdb->options WHERE option_value = 'dfrapi_unapproved_zanox_merchant' ", OBJECT ); if ( !empty( $results ) ) { return TRUE; } return FALSE; } } // class Dfrapi_Env } // class_exists check