verify_nonce ($_GET["anonce"], 'cpappb_actions_list'); // Save the option for active addons delete_option( 'cpappb_addons_active_list' ); if( !empty( $_GET[ 'cpappb_addons_active_list' ] ) && is_array( $_GET[ 'cpappb_addons_active_list' ] ) ) { update_option( 'cpappb_addons_active_list', $_GET[ 'cpappb_addons_active_list' ] ); } // Get the list of active addons $cpappb_addons_active_list = get_option( 'cpappb_addons_active_list', array() ); } if (isset($_GET['a']) && $_GET['a'] == '1' && $current_user_access) { $this->verify_nonce ($_GET["anonce"], 'cpappb_actions_list'); define('CP_APPBOOK_DEFAULT_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) ); define('CP_APPBOOK_DEFAULT_fp_destination_emails', CP_APPBOOK_DEFAULT_fp_from_email); $wpdb->insert( $wpdb->prefix.$this->table_items, array( 'form_name' => stripcslashes($_GET["name"]), 'form_structure' => $this->get_option('form_structure', CP_APPBOOK_DEFAULT_form_structure), 'fp_from_email' => $this->get_option('fp_from_email', CP_APPBOOK_DEFAULT_fp_from_email), 'fp_destination_emails' => $this->get_option('fp_destination_emails', CP_APPBOOK_DEFAULT_fp_destination_emails), 'fp_subject' => $this->get_option('fp_subject', CP_APPBOOK_DEFAULT_fp_subject), 'fp_inc_additional_info' => $this->get_option('fp_inc_additional_info', CP_APPBOOK_DEFAULT_fp_inc_additional_info), 'fp_return_page' => $this->get_option('fp_return_page', CP_APPBOOK_DEFAULT_fp_return_page), 'fp_message' => $this->get_option('fp_message', CP_APPBOOK_DEFAULT_fp_message), 'fp_emailformat' => $this->get_option('fp_emailformat', CP_APPBOOK_DEFAULT_email_format), 'cu_enable_copy_to_user' => $this->get_option('cu_enable_copy_to_user', CP_APPBOOK_DEFAULT_cu_enable_copy_to_user), 'cu_user_email_field' => $this->get_option('cu_user_email_field', CP_APPBOOK_DEFAULT_cu_user_email_field), 'cu_subject' => $this->get_option('cu_subject', CP_APPBOOK_DEFAULT_cu_subject), 'cu_message' => $this->get_option('cu_message', CP_APPBOOK_DEFAULT_cu_message), 'cu_emailformat' => $this->get_option('cu_emailformat', CP_APPBOOK_DEFAULT_email_format), 'vs_use_validation' => $this->get_option('vs_use_validation', CP_APPBOOK_DEFAULT_vs_use_validation), 'vs_text_is_required' => $this->get_option('vs_text_is_required', CP_APPBOOK_DEFAULT_vs_text_is_required), 'vs_text_is_email' => $this->get_option('vs_text_is_email', CP_APPBOOK_DEFAULT_vs_text_is_email), 'vs_text_datemmddyyyy' => $this->get_option('vs_text_datemmddyyyy', CP_APPBOOK_DEFAULT_vs_text_datemmddyyyy), 'vs_text_dateddmmyyyy' => $this->get_option('vs_text_dateddmmyyyy', CP_APPBOOK_DEFAULT_vs_text_dateddmmyyyy), 'vs_text_number' => $this->get_option('vs_text_number', CP_APPBOOK_DEFAULT_vs_text_number), 'vs_text_digits' => $this->get_option('vs_text_digits', CP_APPBOOK_DEFAULT_vs_text_digits), 'vs_text_max' => $this->get_option('vs_text_max', CP_APPBOOK_DEFAULT_vs_text_max), 'vs_text_min' => $this->get_option('vs_text_min', CP_APPBOOK_DEFAULT_vs_text_min), 'cv_enable_captcha' => $this->get_option('cv_enable_captcha', CP_APPBOOK_DEFAULT_cv_enable_captcha), 'cv_width' => $this->get_option('cv_width', CP_APPBOOK_DEFAULT_cv_width), 'cv_height' => $this->get_option('cv_height', CP_APPBOOK_DEFAULT_cv_height), 'cv_chars' => $this->get_option('cv_chars', CP_APPBOOK_DEFAULT_cv_chars), 'cv_font' => $this->get_option('cv_font', CP_APPBOOK_DEFAULT_cv_font), 'cv_min_font_size' => $this->get_option('cv_min_font_size', CP_APPBOOK_DEFAULT_cv_min_font_size), 'cv_max_font_size' => $this->get_option('cv_max_font_size', CP_APPBOOK_DEFAULT_cv_max_font_size), 'cv_noise' => $this->get_option('cv_noise', CP_APPBOOK_DEFAULT_cv_noise), 'cv_noise_length' => $this->get_option('cv_noise_length', CP_APPBOOK_DEFAULT_cv_noise_length), 'cv_background' => $this->get_option('cv_background', CP_APPBOOK_DEFAULT_cv_background), 'cv_border' => $this->get_option('cv_border', CP_APPBOOK_DEFAULT_cv_border), 'cv_text_enter_valid_captcha' => $this->get_option('cv_text_enter_valid_captcha', CP_APPBOOK_DEFAULT_cv_text_enter_valid_captcha) ) ); $message = "Item added"; } else if (isset($_GET['u']) && $_GET['u'] != '' && $current_user_access) { $this->verify_nonce ($_GET["anonce"], 'cpappb_actions_list'); $wpdb->query( $wpdb->prepare('UPDATE `'.$wpdb->prefix.$this->table_items.'` SET form_name=%s WHERE id=%d', $_GET["name"], $_GET['u']) ); $message = "Item updated"; } else if (isset($_GET['d']) && $_GET['d'] != '' && $current_user_access) { $this->verify_nonce ($_GET["anonce"], 'cpappb_actions_list'); $wpdb->query( $wpdb->prepare('DELETE FROM `'.$wpdb->prefix.$this->table_items.'` WHERE id=%d', $_GET['d']) ); $message = "Item deleted"; } else if (isset($_GET['c']) && $_GET['c'] != '' && $current_user_access) { $this->verify_nonce ($_GET["anonce"], 'cpappb_actions_list'); $myrows = $wpdb->get_row( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix.$this->table_items." WHERE id=%d", $_GET['c']) , ARRAY_A); unset($myrows["id"]); $myrows["form_name"] = 'Cloned: '.$myrows["form_name"]; $wpdb->insert( $wpdb->prefix.$this->table_items, $myrows); $message = "Item duplicated/cloned"; } else if (isset($_GET['ac']) && $_GET['ac'] == 'st' && $current_user_access) { $this->verify_nonce ($_GET["anonce"], 'cpappb_actions_list'); update_option( 'CP_APPB_LOAD_SCRIPTS', ($_GET["scr"]=="1"?"0":"1") ); if ($_GET["chs"] != '') { $target_charset = esc_sql($_GET["chs"]); $tables = array( $wpdb->prefix.$this->table_messages, $wpdb->prefix.$this->table_items ); foreach ($tables as $tab) { $myrows = $wpdb->get_results( "DESCRIBE {$tab}" ); foreach ($myrows as $item) { $name = $item->Field; $type = $item->Type; if (preg_match("/^varchar\((\d+)\)$/i", $type, $mat) || !strcasecmp($type, "CHAR") || !strcasecmp($type, "TEXT") || !strcasecmp($type, "MEDIUMTEXT")) { $wpdb->query("ALTER TABLE {$tab} CHANGE {$name} {$name} {$type} COLLATE {$target_charset}"); } } } } $message = "Troubleshoot settings updated"; } else if (isset($_POST["cp_cpappb_rep_enable"]) && $current_user_access) { $this->verify_nonce ($_POST["anonce"], 'cpappb_actions_list'); update_option( 'cp_cpappb_rep_enable', $_POST["cp_cpappb_rep_enable"]); update_option( 'cp_cpappb_rep_days', $_POST["cp_cpappb_rep_days"]); update_option( 'cp_cpappb_rep_hour', $_POST["cp_cpappb_rep_hour"]); update_option( 'cp_cpappb_rep_emails', $_POST["cp_cpappb_rep_emails"]); update_option( 'cp_cpappb_fp_from_email', $_POST["cp_cpappb_fp_from_email"]); update_option( 'cp_cpappb_rep_subject', $_POST["cp_cpappb_rep_subject"]); update_option( 'cp_cpappb_rep_emailformat', $_POST["cp_cpappb_rep_emailformat"]); update_option( 'cp_cpappb_rep_message', $_POST["cp_cpappb_rep_message"]); $message = "Report settings updated"; } if ($message) echo "

".$message."

"; $nonce = wp_create_nonce( 'cpappb_actions_list' ); ?>

plugin_name; ?>

/

get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_items ); foreach ($myrows as $item) if ($current_user_access || @in_array($current_user->ID, unserialize($item->cp_user_access))) { ?>
   
id; ?>                 [shorttag; ?> id="id; ?>"]

:


Automatic email reports for ALL forms: Send submissions in CSV format via email

          :           :
)

.

Important!: Use this area only if you are experiencing conflicts with third party plugins, with the theme scripts or with the character encoding.

:

*

:

*


:


$obj ) { print '
'.$obj->get_addon_description().'
'; } ?>

The following addons are available in the commercial versions of the plugin:

The add-on adds support for PayPal Standard payments
The add-on allows to protect the forms with reCAPTCHA service of Google
The add-on allows create SalesForce leads with the submitted information
The add-on adds support for Skrill payments
The add-on allows to add the uploaded files to the Media Library, and the support for new mime types
The add-on allows put the submitted information to a webhook URL, and integrate the forms with the Zapier service
The add-on allows integrate the forms with WooCommerce products
get_addon_settings(); } ?>
[] | []