Changeset 3056679
- Timestamp:
- 03/22/2024 09:52:47 AM (2 years ago)
- Location:
- captainform/trunk
- Files:
-
- 5 edited
-
captainform.php (modified) (1 diff)
-
includes/class-captainform.php (modified) (21 diffs)
-
includes/integrations/class-captainform-integration-submissions.php (modified) (2 diffs)
-
public/class-captainform-public-form-embedding.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
captainform/trunk/captainform.php
r2066324 r3056679 17 17 * Plugin URI: http://captainform.com 18 18 * Description: CaptainForm is a fully-featured WordPress form plugin created for web designers, developers, and also for non-tech savvy users. 19 * Version: 2.5. 319 * Version: 2.5.4 20 20 * Author: captainform 21 21 * Author URI: https://profiles.wordpress.org/captainform -
captainform/trunk/includes/class-captainform.php
r2066324 r3056679 39 39 */ 40 40 protected $loader; 41 41 42 42 /** 43 43 * The class that's responsible for maintaining and registering all account settings … … 48 48 */ 49 49 protected $account; 50 50 51 51 /** 52 52 * The class responsible for defining all actions that occur in the admin area. … … 57 57 */ 58 58 protected $admin; 59 59 60 60 /** 61 61 * The class that's responsible for maintaining and registering the captainform widget … … 66 66 */ 67 67 protected $widget; 68 68 69 69 /** 70 70 * The class that's responsible for captainform utilities … … 75 75 */ 76 76 protected $utils; 77 77 78 78 /** 79 79 * The unique identifier of this plugin. … … 93 93 */ 94 94 protected $version; 95 95 96 96 /** 97 97 * Define the core functionality of the plugin. … … 106 106 107 107 $this->plugin_name = 'captainform'; 108 $this->version = '2.5. 3';108 $this->version = '2.5.4'; 109 109 110 110 $this->load_dependencies(); 111 111 $this->set_locale(); 112 112 $this->define_general_hooks(); 113 113 114 114 if(defined( 'DOING_AJAX' ) && DOING_AJAX) 115 115 $this->define_ajax_hooks(); … … 147 147 */ 148 148 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-captainform-loader.php'; 149 149 150 150 /** 151 151 * The class responsible for defining internationalization functionality … … 153 153 */ 154 154 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-captainform-i18n.php'; 155 155 156 156 /** 157 157 * The class responsible for captainform widget. … … 194 194 $this->widget = new Captainform_Widget(); 195 195 $this->utils = new Captainform_Utils(); 196 196 197 197 } 198 198 … … 245 245 */ 246 246 private function load_admin_dependencies() { 247 247 248 248 /** 249 249 * The class responsible for maintaining and registering all account settings 250 250 */ 251 251 require_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-captainform-account.php'; 252 252 253 253 /** 254 254 * The class responsible for defining all actions that occur in the admin area. 255 255 */ 256 256 require_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-captainform-admin.php'; 257 257 258 258 $this->admin = new Captainform_Admin( $this->get_plugin_name(), $this->get_version() ); 259 259 $this->account = new Captainform_Account( $this->get_plugin_name(), $this->get_version() ); 260 261 } 262 260 261 } 262 263 263 /** 264 264 * Load the required dependencies for the public-facing functionality of the plugin. … … 272 272 */ 273 273 private function load_public_dependencies() { 274 274 275 275 /** 276 276 * The class responsible for defining all actions that occur in the public-facing … … 280 280 281 281 } 282 282 283 283 /** 284 284 * Define the locale for this plugin for internationalization. … … 295 295 296 296 $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); 297 298 } 299 297 298 } 299 300 300 /** 301 301 * Register all of the hooks related both to the public-facing functionality and the admin area functionality … … 306 306 */ 307 307 private function define_general_hooks() { 308 308 309 309 $php_version = phpversion(); 310 310 if ($php_version >= 5.3) { 311 311 $this->loader->add_action( 'widgets_init', $this->widget, 'register_widget' ); 312 312 } else if ($php_version >= 5.2) { 313 // compatibility with OLD php versions 314 // phpcs:disable WordPress.PHP.RestrictedPHPFunctions.create_function_create_function 313 315 add_action( 314 316 'widgets_init', 315 317 create_function('', 'return register_widget("Captainform_Widget");') 316 318 ); 319 // phpcs:enable WordPress.PHP.RestrictedPHPFunctions.create_function_create_function 317 320 } 318 321 319 322 $this->loader->add_action( 'init', $this->utils, 'register_post_type' ); 320 323 $this->loader->add_action( 'init', $this->utils, 'session_start' ); … … 332 335 $this->loader->add_filter('autoptimize_filter_js_exclude', $this->utils, 'autoptimize_override_js_exclude'); 333 336 } 334 337 335 338 /** 336 339 * Register all of the hooks related to the admin area functionality … … 341 344 */ 342 345 private function define_admin_hooks() { 343 346 344 347 $this->loader->add_action( 'admin_enqueue_scripts', $this->admin, 'enqueue_styles' ); 345 348 $this->loader->add_action( 'admin_enqueue_scripts', $this->admin, 'enqueue_scripts' ); 346 349 $this->loader->add_action( 'admin_menu', $this->admin, 'add_menu_items' ); 347 350 $this->loader->add_action( 'admin_menu', $this->admin, 'register_settings' ); 348 351 349 352 $this->loader->add_action( 'init', $this->utils, 'ob_start' ); 350 353 351 354 $this->loader->add_action( 'wp_ajax_captainform_insert_dialog', $this->admin, 'mce_insert_dialog' ); 352 355 … … 373 376 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); 374 377 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 375 378 376 379 $this->loader->add_filter( 'widget_text', $this->widget, 'text_widget' ); 377 380 } 378 381 379 382 /** 380 383 * Register all of the hooks related to WordPress ajax … … 388 391 */ 389 392 require_once plugin_dir_path(dirname(__FILE__)) . 'admin/class-captainform-admin.php'; 390 393 391 394 $this->admin = new Captainform_Admin( $this->get_plugin_name(), $this->get_version() ); 392 395 $this->loader->add_action( 'wp_ajax_captainform_insert_dialog', $this->admin, 'mce_insert_dialog' ); … … 407 410 } 408 411 } 409 412 410 413 /** 411 414 * Register all the shortcodes … … 416 419 */ 417 420 private function define_shortcodes() { 418 421 419 422 $plugin_shortcodes = new Captainform_Shortcodes( $this->get_plugin_name(), $this->get_version() ); 420 423 421 424 $this->loader->add_shortcode( 'captainform', $plugin_shortcodes, 'evaluate' ); 422 425 $this->loader->add_shortcode( 'captain-form', $plugin_shortcodes, 'evaluate' ); -
captainform/trunk/includes/integrations/class-captainform-integration-submissions.php
r1530945 r3056679 105 105 global $wpdb; 106 106 self::createTable(); 107 // secured encrypted query executed on both WP and 123 databases 108 // phpcs:disable WordPressDotOrg.sniffs.DirectDB.UnescapedDBParameter 107 109 $statement = $_REQUEST['statement']; 108 110 $select_count = $_REQUEST['select_count']; 109 111 $query = Captainform_Encrypt::decrypt($_REQUEST['query']); 110 $query = self::str_replace_first('[wp-prefix]',$wpdb->prefix,$query); 111 //mail('adrian.dumitru.68@gmail.com','WP_RQUEST',print_r($_REQUEST,1)); 112 $query = self::str_replace_first('[wp-prefix]', $wpdb->prefix, $query); 112 113 if($statement == 'SELECT') 113 114 { … … 125 126 126 127 $return = json_encode(array('captainform_valid_response',$return)); 127 128 // phpcs:enable WordPressDotOrg.sniffs.DirectDB.UnescapedDBParameter 128 129 echo $return; 129 130 exit(); -
captainform/trunk/public/class-captainform-public-form-embedding.php
r1585156 r3056679 238 238 'miliseconds' => $this->is_preview_as_popup() ? 1000 : 3000, 239 239 'customVars' => $custom_vars->get_custom_vars(), 240 'style' => $this->get_theme_preview_style(),240 'style' => esc_js($this->get_theme_preview_style()), 241 241 'lightbox_type' => '', 242 242 'position_class' => '', -
captainform/trunk/readme.txt
r2087611 r3056679 1 === Forms by CaptainForm - Form Builder for WordPress ===1 === Forms by CaptainForm - Form Builder for WordPress === 2 2 3 3 Contributors: captainform, 123contactform 4 Tags: CaptainForm, contact form, drag-and-drop, file upload forms, form builder plugin, newsletter subscription, order form, payment form, paypal form, popup form, registration form, secure forms, survey,form builder, event registration, feedback form,booking form, poll, quiz, wordpress contact form, contact form wordpress,contact form for wordpress, wordpress contact forms, contact forms wordpress, contact forms for wordpress, contact form for wordpress free, contact form on wordpress, wordpress contact-form, contact forms in wordpress, wordpress [contact-form], word press contact form, wordpres contact form, contact form in wordpress, contact form wordpres, wordpress form, wordpress forms, forms wordpress, forms for wordpress, form wordpress, word press forms, form in wordpress, form on wordpress, forms on wordpress, form for wordpress, forms in wordpress, wordpress form plugin, wordpress booking forms, wordpress order forms, PayPal form4 Tags: CaptainForm, contact form, drag-and-drop, file upload forms, form builder plugin, newsletter subscription, order form, payment form, paypal form, popup form, registration form, secure forms, survey,form builder, event registration, survey, feedback form,booking form, poll, quiz, wordpress contact form, contact form wordpress,contact form for wordpress, wordpress contact forms, contact forms wordpress, contact forms for wordpress, contact form for wordpress free, contact form on wordpress, wordpress contact-form, contact forms in wordpress, wordpress [contact-form], word press contact form, wordpres contact form, contact form in wordpress, contact form wordpres, wordpress form, wordpress forms, forms wordpress, forms for wordpress, form wordpress, word press forms, form in wordpress, form on wordpress, forms on wordpress, form for wordpress, forms in wordpress, wordpress form plugin, wordpress booking forms, wordpress order forms, PayPal form 5 5 Requires at least: 3.9 6 6 Tested up to: 5.2 … … 427 427 = Can I make a form active only for a specific period of time? = 428 428 429 Of course. In the My Forms section, where all of your forms are listed, you'll see on the right side of each form an Active button. If you hover over it, the box will expand and a Custom option will be available. By choosing it, you'll have the possibility to set the period of time when the form is active for your visitors. 429 Of course. In the My Forms section, where all of your forms are listed, you'll see on the right side of each form an Active button. If you hover over it, the box will expand and a Custom option will be available. By choosing it, you'll have the possibility to set the period of time when the form is active for your visitors. 430 430 431 431 = How can I manage the data that I collect through my forms? = … … 467 467 = How long is the license key valid? = 468 468 469 The license key is valid 365 days from the day you activate it. It will expire after 365 days you will activate it, and you will be automatically restricted to access your forms and form submissions, until to the moment you will renew your yearly subscription. 469 The license key is valid 365 days from the day you activate it. It will expire after 365 days you will activate it, and you will be automatically restricted to access your forms and form submissions, until to the moment you will renew your yearly subscription. 470 470 471 471 = What happens to my old service plan? = 472 472 473 If your subscription year is not over yet, you will be charged only for the difference of the higher plan. You will proceed the process only with one click and you will not need to fill credit card credentials again. 473 If your subscription year is not over yet, you will be charged only for the difference of the higher plan. You will proceed the process only with one click and you will not need to fill credit card credentials again. 474 474 Please, note that your credit card should be still eligible for online purchases. 475 475 … … 483 483 484 484 == Changelog == 485 = 2.5.4 (22 March 2024) = 486 * Fix XSS vulnerability 487 * Fix unescaped DB parameter 488 489 = 2.5.3 (10 April 2020) = 490 * Bug fixes 491 485 492 = 2.5.2 (10 April 2019) = 486 493 * Bug fixes
Note: See TracChangeset
for help on using the changeset viewer.