芝麻web文件管理V1.00
编辑当前文件:/home/projzpbv/www/wp-content/plugins/calculated-fields-form/inc/cpcff_trial.php
_install_plugin(); } } // End init private function _install_plugin() { try { $response = wp_remote_get( $this->_url . '?action=check', array( 'body' => array( 'u' => CPCFF_AUXILIARY::site_url() ), 'sslverify' => false, 'timeout' => CP_CALCULATEDFIELDSF_TIMEOUT ) ); if ( ! is_wp_error( $response ) ) { $body = wp_remote_retrieve_body( $response ); if ( 'ok' != $body ) { update_option( 'cff-t-t', $body ); } else { include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; wp_cache_flush(); $installer = new Plugin_Upgrader(); $installed = $installer->install( $this->_url, array( 'overwrite_package' => true ) ); if ( $installed ) { update_option( 'cff-t-d', time() ); print ''; exit; } } } } catch ( Exception $err ) { print esc_html( $err->getMessage() ); exit; } } // End _install_plugin } // End Class CPCFF_TRIAL new CPCFF_TRIAL(); }