Contact Form 7, Fast Secure Contact Form, JetPack Contact Form and Gravity Forms. Includes exports and short codes. | Data | Short Codes | Settings | Reference Text Domain: contact-form-7-to-database-extension License: GPL3 */ $CF7DBPlugin_minimalRequiredPhpVersion = '5.0'; /** * echo error message indicating wrong minimum PHP version required */ function CF7DBPlugin_noticePhpVersionWrong() { global $CF7DBPlugin_minimalRequiredPhpVersion; echo '
' . __('Error: plugin "Contact Form to DB Extension" requires a newer version of PHP to be running.', 'contact-form-7-to-database-extension'). '
' . __('Minimal version of PHP required: ', 'contact-form-7-to-database-extension') . '' . $CF7DBPlugin_minimalRequiredPhpVersion . '' . '
' . __('Your server\'s PHP version: ', 'contact-form-7-to-database-extension') . '' . phpversion() . '' . '
'; } /** * Check the PHP version and give a useful error message if the user's version is less than the required version * @return boolean true if version check passed. If false, triggers an error which WP will handle, by displaying * an error message on the Admin page */ function CF7DBPlugin_PhpVersionCheck() { global $CF7DBPlugin_minimalRequiredPhpVersion; if (version_compare(phpversion(), $CF7DBPlugin_minimalRequiredPhpVersion) < 0) { add_action('admin_notices', 'CF7DBPlugin_noticePhpVersionWrong'); return false; } return true; } /** * Initialize internationalization (i18n) for this plugin. * References: * http://codex.wordpress.org/I18n_for_WordPress_Developers * http://www.wdmac.com/how-to-create-a-po-language-translation#more-631 * @return void */ function CF7DBPlugin_i18n_init() { $pluginDir = dirname(plugin_basename(__FILE__)); load_plugin_textdomain('contact-form-7-to-database-extension', false, $pluginDir . '/languages/'); } ////////////////////////////////// // Run initialization ///////////////////////////////// // Initialize i18n add_action('plugins_loaded','CF7DBPlugin_i18n_init'); // Run the version check. // If it is successful, continue with initialization for this plugin if (CF7DBPlugin_PhpVersionCheck()) { // Only load and run the init function if we know PHP version can parse it include_once('CF7DBPlugin_init.php'); CF7DBPlugin_init(__FILE__); }