Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.7.16

Version Description

show submitter information in popup (Country, CountryCode, City, Latitude, Longitude)

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.7.16
Comparing to
See all releases

Code changes from version 1.7.15 to 1.7.16

admin/controllers/FMControllerExtensions_fm.php ADDED
@@ -0,0 +1 @@
 
0
  ////////////////////////////////////////////////////////////////////////////////////////
1
  // Events //
2
  ////////////////////////////////////////////////////////////////////////////////////////
3
  ////////////////////////////////////////////////////////////////////////////////////////
4
  // Constants //
5
  ////////////////////////////////////////////////////////////////////////////////////////
6
  ////////////////////////////////////////////////////////////////////////////////////////
7
  // Variables //
8
  ////////////////////////////////////////////////////////////////////////////////////////
9
  ////////////////////////////////////////////////////////////////////////////////////////
10
  // Constructor & Destructor //
11
  ////////////////////////////////////////////////////////////////////////////////////////
12
  public function __construct() {
13
  }
14
  ////////////////////////////////////////////////////////////////////////////////////////
15
  // Public Methods //
16
  ////////////////////////////////////////////////////////////////////////////////////////
17
  public function execute() {
18
  $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
19
  if (method_exists($this, $task)) {
20
  $this->$task($id);
21
  }
22
  else {
23
  $this->display();
24
  }
25
  }
26
  public function display() {
27
  require_once WD_FM_DIR . "/admin/models/FMModelExtensions_fm.php";
28
  $model = new FMModelExtensions_fm();
29
  require_once WD_FM_DIR . "/admin/views/FMViewExtensions_fm.php";
30
  $view = new FMViewExtensions_fm($model);
31
  $view->display();
32
  }
33
  ////////////////////////////////////////////////////////////////////////////////////////
34
  // Getters & Setters //
35
  ////////////////////////////////////////////////////////////////////////////////////////
36
  ////////////////////////////////////////////////////////////////////////////////////////
37
  // Private Methods //
38
  ////////////////////////////////////////////////////////////////////////////////////////
39
  ////////////////////////////////////////////////////////////////////////////////////////
40
  // Listeners //
41
  ////////////////////////////////////////////////////////////////////////////////////////
1
+ <?php
2
  ////////////////////////////////////////////////////////////////////////////////////////
3
  // Events //
4
  ////////////////////////////////////////////////////////////////////////////////////////
5
  ////////////////////////////////////////////////////////////////////////////////////////
6
  // Constants //
7
  ////////////////////////////////////////////////////////////////////////////////////////
8
  ////////////////////////////////////////////////////////////////////////////////////////
9
  // Variables //
10
  ////////////////////////////////////////////////////////////////////////////////////////
11
  ////////////////////////////////////////////////////////////////////////////////////////
12
  // Constructor & Destructor //
13
  ////////////////////////////////////////////////////////////////////////////////////////
14
  public function __construct() {
15
  }
16
  ////////////////////////////////////////////////////////////////////////////////////////
17
  // Public Methods //
18
  ////////////////////////////////////////////////////////////////////////////////////////
19
  public function execute() {
20
  $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
21
  if (method_exists($this, $task)) {
22
  $this->$task($id);
23
  }
24
  else {
25
  $this->display();
26
  }
27
  }
28
  public function display() {
29
  require_once WD_FM_DIR . "/admin/models/FMModelExtensions_fm.php";
30
  $model = new FMModelExtensions_fm();
31
  require_once WD_FM_DIR . "/admin/views/FMViewExtensions_fm.php";
32
  $view = new FMViewExtensions_fm($model);
33
  $view->display();
34
  }
35
  ////////////////////////////////////////////////////////////////////////////////////////
36
  // Getters & Setters //
37
  ////////////////////////////////////////////////////////////////////////////////////////
38
  ////////////////////////////////////////////////////////////////////////////////////////
39
  // Private Methods //
40
  ////////////////////////////////////////////////////////////////////////////////////////
41
  ////////////////////////////////////////////////////////////////////////////////////////
42
  // Listeners //
43
  ////////////////////////////////////////////////////////////////////////////////////////
admin/controllers/FMControllerFromipinfoinpopup.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class FMControllerFromipinfoinpopup {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $this->display();
23
+ }
24
+
25
+ public function display() {
26
+ require_once WD_FM_DIR . "/admin/models/FMModelFromipinfoinpopup.php";
27
+ $model = new FMModelFromipinfoinpopup();
28
+
29
+ require_once WD_FM_DIR . "/admin/views/FMViewFromipinfoinpopup.php";
30
+ $view = new FMViewFromipinfoinpopup($model);
31
+ $view->display();
32
+ }
33
+
34
+ ////////////////////////////////////////////////////////////////////////////////////////
35
+ // Getters & Setters //
36
+ ////////////////////////////////////////////////////////////////////////////////////////
37
+ ////////////////////////////////////////////////////////////////////////////////////////
38
+ // Private Methods //
39
+ ////////////////////////////////////////////////////////////////////////////////////////
40
+ ////////////////////////////////////////////////////////////////////////////////////////
41
+ // Listeners //
42
+ ////////////////////////////////////////////////////////////////////////////////////////
43
+ }
admin/controllers/FMControllerManage_fm.php CHANGED
@@ -328,6 +328,9 @@ function before_reset() {
328
  $requiredmark = (isset($_POST['requiredmark']) ? esc_html(stripslashes($_POST['requiredmark'])) : '*');
329
  $sendemail = (isset($_POST['sendemail']) ? esc_html(stripslashes($_POST['sendemail'])) : 1);
330
  $mail = (isset($_POST['mail']) ? esc_html(stripslashes($_POST['mail'])) : '');
 
 
 
331
  $from_mail = (isset($_POST['from_mail']) ? esc_html(stripslashes($_POST['from_mail'])) : '');
332
  $from_name = (isset($_POST['from_name']) ? esc_html(stripslashes($_POST['from_name'])) : '');
333
  $reply_to = (isset($_POST['reply_to']) ? esc_html(stripslashes($_POST['reply_to'])) : '');
328
  $requiredmark = (isset($_POST['requiredmark']) ? esc_html(stripslashes($_POST['requiredmark'])) : '*');
329
  $sendemail = (isset($_POST['sendemail']) ? esc_html(stripslashes($_POST['sendemail'])) : 1);
330
  $mail = (isset($_POST['mail']) ? esc_html(stripslashes($_POST['mail'])) : '');
331
+ if (isset($_POST['mailToAdd']) && esc_html(stripslashes($_POST['mailToAdd'])) != '') {
332
+ $mail .= esc_html(stripslashes($_POST['mailToAdd'])) . ',';
333
+ }
334
  $from_mail = (isset($_POST['from_mail']) ? esc_html(stripslashes($_POST['from_mail'])) : '');
335
  $from_name = (isset($_POST['from_name']) ? esc_html(stripslashes($_POST['from_name'])) : '');
336
  $reply_to = (isset($_POST['reply_to']) ? esc_html(stripslashes($_POST['reply_to'])) : '');
admin/models/FMModelExtensions_fm.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class FMModelExtensions_fm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ ////////////////////////////////////////////////////////////////////////////////////////
22
+ // Getters & Setters //
23
+ ////////////////////////////////////////////////////////////////////////////////////////
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ // Private Methods //
26
+ ////////////////////////////////////////////////////////////////////////////////////////
27
+ ////////////////////////////////////////////////////////////////////////////////////////
28
+ // Listeners //
29
+ ////////////////////////////////////////////////////////////////////////////////////////
30
+ }
admin/models/FMModelFromipinfoinpopup.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class FMModelFromipinfoinpopup {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Getters & Setters //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ ////////////////////////////////////////////////////////////////////////////////////////
26
+ // Private Methods //
27
+ ////////////////////////////////////////////////////////////////////////////////////////
28
+ ////////////////////////////////////////////////////////////////////////////////////////
29
+ // Listeners //
30
+ ////////////////////////////////////////////////////////////////////////////////////////
31
+ }
admin/models/FMModelSubmissions_fm.php CHANGED
@@ -17,10 +17,10 @@ class FMModelSubmissions_fm {
17
  ////////////////////////////////////////////////////////////////////////////////////////
18
  // Public Methods //
19
  ////////////////////////////////////////////////////////////////////////////////////////
20
- public function check_ip($ip) {
21
  global $wpdb;
22
- $ip = $wpdb->get_var($wpdb->prepare('SELECT ip FROM ' . $wpdb->prefix . 'formmaker_blocked WHERE ip="%s"', $ip));
23
- return $ip;
24
  }
25
 
26
  public function get_form_titles() {
17
  ////////////////////////////////////////////////////////////////////////////////////////
18
  // Public Methods //
19
  ////////////////////////////////////////////////////////////////////////////////////////
20
+ public function blocked_ips() {
21
  global $wpdb;
22
+ $ips = $wpdb->get_col('SELECT ip FROM ' . $wpdb->prefix . 'formmaker_blocked');
23
+ return $ips;
24
  }
25
 
26
  public function get_form_titles() {
admin/views/FMViewExtensions_fm.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class FMViewExtensions_fm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+
16
+ ////////////////////////////////////////////////////////////////////////////////////////
17
+ // Constructor & Destructor //
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ public function __construct($model) {
20
+ $this->model = $model;
21
+ }
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ ?>
27
+ <div id="main_featured_plugins_page">
28
+ <table align="center" width="90%" style="margin-top: 0px;border-bottom: rgb(111, 111, 111) solid 2px;">
29
+ <tr>
30
+ <td colspan="2" style="height: 70px;"><h3 style="margin: 0px;font-family:Segoe UI;padding-bottom: 15px;color: rgb(111, 111, 111); font-size:18pt;">Form Maker Plugins</h3></td>
31
+ <td></td>
32
+ </tr>
33
+ </table>
34
+ <form method="post">
35
+ <ul id="featured-plugins-list">
36
+ <li class="form_maker_import">
37
+ <div class="product">
38
+ <div class="title">
39
+ <strong class="heading">Form Maker Export/Import</strong>
40
+ </div>
41
+ </div>
42
+ <div class="description">
43
+ <p>Form Maker Export/Import WordPress plugin allows exporting and importing forms with/without submissions.</p>
44
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-form/export-import.html" class="download">Download</a>
45
+ </div>
46
+ </li>
47
+ </ul>
48
+ </form>
49
+ </div>
50
+ <?php
51
+ }
52
+ ////////////////////////////////////////////////////////////////////////////////////////
53
+ // Getters & Setters //
54
+ ////////////////////////////////////////////////////////////////////////////////////////
55
+ ////////////////////////////////////////////////////////////////////////////////////////
56
+ // Private Methods //
57
+ ////////////////////////////////////////////////////////////////////////////////////////
58
+ ////////////////////////////////////////////////////////////////////////////////////////
59
+ // Listeners //
60
+ ////////////////////////////////////////////////////////////////////////////////////////
61
+ }
admin/views/FMViewFromipinfoinpopup.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class FMViewFromipinfoinpopup {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+
16
+ ////////////////////////////////////////////////////////////////////////////////////////
17
+ // Constructor & Destructor //
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ public function __construct($model) {
20
+ $this->model = $model;
21
+ }
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ $data_ip = ((isset($_GET['data_ip'])) ? esc_html(stripslashes($_GET['data_ip'])) : 0);
27
+ $query = @unserialize(file_get_contents('http://ip-api.com/php/' . $data_ip));
28
+ if ($query && $query['status'] == 'success' && $query['countryCode']) {
29
+ $country_flag = '<img width="16px" src="' . WD_FM_URL . '/images/flags/' . strtolower($query['countryCode']) . '.png" class="sub-align" alt="' . $query['country'] . '" title="' . $query['country'] . '" />';
30
+ $country = $query['country'] ;
31
+ $countryCode = $query['countryCode'] ;
32
+ $city = $query['city'];
33
+ $timezone = $query['timezone'];
34
+ $lat = $query['lat'];
35
+ $lon = $query['lon'];
36
+ }
37
+ else {
38
+ $country_flag = '';
39
+ $country = '';
40
+ $countryCode = '';
41
+ $city = '';
42
+ $timezone = '';
43
+ $lat = '';
44
+ $lon = '';
45
+ }
46
+ ?>
47
+ <style>
48
+ .admintable {
49
+ height: 100%;
50
+ margin: 0 auto;
51
+ padding: 0;
52
+ width: 100%;
53
+ }
54
+ table.admintable td.key, table.admintable td.paramlist_key {
55
+ background-color: #F6F6F6;
56
+ border-bottom: 1px solid #E9E9E9;
57
+ border-right: 1px solid #E9E9E9;
58
+ color: #666666;
59
+ font-weight: bold;
60
+ margin-right: 10px;
61
+ text-align: right;
62
+ width: 140px;
63
+ }
64
+ </style>
65
+ <table class="admintable">
66
+ <tr>
67
+ <td class="key"><b>IP:</b></td><td><?php echo $data_ip; ?></td>
68
+ </tr>
69
+ <tr>
70
+ <td class="key"><b>Country:</b></td><td><?php echo $country . ' ' . $country_flag; ?></td>
71
+ </tr>
72
+ <tr>
73
+ <td class="key"><b>CountryCode:</b></td><td><?php echo $countryCode; ?></td>
74
+ </tr>
75
+ <tr>
76
+ <td class="key"><b>City:</b></td><td><?php echo $city; ?></td>
77
+ </tr>
78
+ <tr>
79
+ <td class="key"><b>Timezone:</b></td><td><?php echo $timezone; ?></td>
80
+ </tr>
81
+ <tr>
82
+ <td class="key"><b>Latitude:</b></td><td><?php echo $lat; ?></td>
83
+ </tr>
84
+ <tr>
85
+ <td class="key"><b>Longitude:</b></td><td><?php echo $lon; ?></td>
86
+ </tr>
87
+ </table>
88
+ <?php
89
+ die();
90
+ }
91
+
92
+ ////////////////////////////////////////////////////////////////////////////////////////
93
+ // Getters & Setters //
94
+ ////////////////////////////////////////////////////////////////////////////////////////
95
+ ////////////////////////////////////////////////////////////////////////////////////////
96
+ // Private Methods //
97
+ ////////////////////////////////////////////////////////////////////////////////////////
98
+ ////////////////////////////////////////////////////////////////////////////////////////
99
+ // Listeners //
100
+ ////////////////////////////////////////////////////////////////////////////////////////
101
+ }
admin/views/FMViewManage_fm.php CHANGED
@@ -2670,7 +2670,7 @@ class FMViewManage_fm {
2670
  <form class="wrap" method="post" action="admin.php?page=manage_fm" style="float: left; width: 99%;" name="adminForm" id="adminForm">
2671
  <h2><?php echo $page_title; ?></h2>
2672
  <div style="float: right; margin: 0 5px 0 0;">
2673
- <input class="button-secondary" type="submit" onclick="if (spider_check_email('mail') ||
2674
  spider_check_email('from_mail') ||
2675
  spider_check_email('reply_to') ||
2676
  spider_check_email('mail_from_user') ||
@@ -2678,7 +2678,7 @@ class FMViewManage_fm {
2678
  spider_check_email('mail_from_other') ||
2679
  spider_check_email('reply_to_other') ||
2680
  spider_check_email('paypal_email')) {return false;}; set_condition(); spider_set_input_value('task', 'save_options')" value="Save"/>
2681
- <input class="button-secondary" type="submit" onclick="if (spider_check_email('mail') ||
2682
  spider_check_email('from_mail') ||
2683
  spider_check_email('reply_to') ||
2684
  spider_check_email('mail_from_user') ||
@@ -2763,7 +2763,7 @@ class FMViewManage_fm {
2763
  <label for="requiredmark">Required fields mark</label>
2764
  </td>
2765
  <td class="fm_options_value">
2766
- <input id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width:250px;" />
2767
  </td>
2768
  </tr>
2769
  </table>
@@ -2772,7 +2772,7 @@ class FMViewManage_fm {
2772
  <legend style="color: #0B55C4; font-weight: bold;">Email Options</legend>
2773
  <table class="admintable">
2774
  <tr valign="top">
2775
- <td style="padding: 15px;">
2776
  <label>Send E-mail</label>
2777
  </td>
2778
  <td style="padding: 15px;">
@@ -2786,10 +2786,30 @@ class FMViewManage_fm {
2786
  <table class="admintable">
2787
  <tr valign="top">
2788
  <td class="fm_options_label">
2789
- <label for="mail">Email to send submissions to</label>
2790
  </td>
2791
  <td class="fm_options_value">
2792
- <input id="mail" name="mail" value="<?php echo $row->mail; ?>" style="width:250px;" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2793
  </td>
2794
  </tr>
2795
  <tr valign="top">
@@ -2816,7 +2836,7 @@ class FMViewManage_fm {
2816
  <input type="radio" id="other" name="from_mail" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
2817
  <label for="other">Other</label>
2818
  </div>
2819
- <input style="width: <?php echo ($fields_count == 1) ? '250px' : '235px; margin-left: 15px' ?>; display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="mail_from_other" name="mail_from_other" value="<?php echo ($is_other) ? $row->from_mail : ''; ?>" />
2820
  </td>
2821
  </tr>
2822
  <tr valign="top">
@@ -2824,8 +2844,8 @@ class FMViewManage_fm {
2824
  <label for="from_name">From Name</label>
2825
  </td>
2826
  <td class="fm_options_value">
2827
- <input id="from_name" name="from_name" value="<?php echo $row->from_name; ?>" style="width: 230px;" />
2828
- <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none;">
2829
  <?php
2830
  $choise = "document.getElementById('from_name')";
2831
  echo '<div style="position:relative; top:-3px;"><div id="mail_from_labels" class="email_labels" style="display:none;">';
@@ -2875,7 +2895,7 @@ class FMViewManage_fm {
2875
  <input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
2876
  <label for="other1">Other</label>
2877
  </div>
2878
- <input style="width: <?php echo ($fields_count == 1) ? '250px' : '235px; margin-left: 15px'; ?>; display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="reply_to_other" name="reply_to_other" value="<?php echo ($is_other && $row->reply_to) ? $row->reply_to : ''; ?>" />
2879
  </td>
2880
  </tr>
2881
  <tr valign="top">
@@ -2883,7 +2903,7 @@ class FMViewManage_fm {
2883
  <label> CC: </label>
2884
  </td>
2885
  <td class="fm_options_value">
2886
- <input id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc ?>" style="width:250px;" />
2887
  </td>
2888
  </tr>
2889
  <tr valign="top">
@@ -2891,7 +2911,7 @@ class FMViewManage_fm {
2891
  <label> BCC: </label>
2892
  </td>
2893
  <td class="fm_options_value">
2894
- <input id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc ?>" style="width:250px;" />
2895
  </td>
2896
  </tr>
2897
  <tr valign="top">
@@ -2899,8 +2919,8 @@ class FMViewManage_fm {
2899
  <label> Subject: </label>
2900
  </td>
2901
  <td class="fm_options_value">
2902
- <input id="mail_subject" name="mail_subject" value="<?php echo $row->mail_subject ?>" style="width:230px;" />
2903
- <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none;">
2904
  <?php
2905
  $choise = "document.getElementById('mail_subject')";
2906
  echo '<div style="position:relative; top:-3px;"><div id="mail_subject_labels" class="email_labels" style="display:none;">';
@@ -3013,7 +3033,7 @@ class FMViewManage_fm {
3013
  <label for="mail_from_user">Email From</label>
3014
  </td>
3015
  <td class="fm_options_value">
3016
- <input id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
3017
  </td>
3018
  </tr>
3019
  <tr valign="top">
@@ -3021,8 +3041,8 @@ class FMViewManage_fm {
3021
  <label for="mail_from_name_user">From Name</label>
3022
  </td>
3023
  <td class="fm_options_value">
3024
- <input id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 230px;"/>
3025
- <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_name_user_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none;">
3026
  <?php
3027
  $choise = "document.getElementById('mail_from_name_user')";
3028
  echo '<div style="position:relative; top:-3px;"><div id="mail_from_name_user_labels" class="email_labels" style="display:none;">';
@@ -3053,7 +3073,7 @@ class FMViewManage_fm {
3053
  <label for="reply_to_user">Reply to<br />(if different from "Email Form")</label>
3054
  </td>
3055
  <td class="fm_options_value">
3056
- <input id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width:250px;"/>
3057
  </td>
3058
  </tr>
3059
  <tr valign="top">
@@ -3061,7 +3081,7 @@ class FMViewManage_fm {
3061
  <label> CC: </label>
3062
  </td>
3063
  <td class="fm_options_value">
3064
- <input id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user ?>" style="width:250px;" />
3065
  </td>
3066
  </tr>
3067
  <tr valign="top">
@@ -3069,7 +3089,7 @@ class FMViewManage_fm {
3069
  <label> BCC: </label>
3070
  </td>
3071
  <td class="fm_options_value">
3072
- <input id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user ?>" style="width:250px;" />
3073
  </td>
3074
  </tr>
3075
  <tr valign="top">
@@ -3077,8 +3097,8 @@ class FMViewManage_fm {
3077
  <label> Subject: </label>
3078
  </td>
3079
  <td class="fm_options_value">
3080
- <input id="mail_subject_user" name="mail_subject_user" value="<?php echo $row->mail_subject_user ?>" style="width:230px;" />
3081
- <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_user_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none;">
3082
  <?php
3083
  $choise = "document.getElementById('mail_subject_user')";
3084
  echo '<div style="position:relative; top:-3px;"><div id="mail_subject_user_labels" class="email_labels" style="display:none;">';
@@ -3433,8 +3453,8 @@ class FMViewManage_fm {
3433
  ?>
3434
  <div>
3435
  <span style="font-size:13px;">Add Condition<span/>
3436
- <img src="<?php echo WD_FM_URL . '/images/add_condition.png'; ?>" title="add" onclick="add_condition('<?php echo $chose_ids; ?>', '<?php echo addslashes($chose_labels); ?>', '<?php echo $chose_types; ?>', '<?php echo addslashes($chose_paramss); ?>', '<?php echo $all_ids_cond; ?>', '<?php echo addslashes($all_labels_cond); ?>')" style="cursor: pointer; vertical-align: middle; margin-left:15px;">
3437
- </div>
3438
  <?php
3439
 
3440
  for($k=0; $k<$count_of_conditions; $k++)
@@ -3611,7 +3631,7 @@ class FMViewManage_fm {
3611
  <a href="<?php echo add_query_arg(array('action' => 'FormMakerSQLMapping', 'id' => 0, 'form_id' => $row->id, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-secondary thickbox thickbox-preview" id="add_query" title="Add Query" onclick="return false;">
3612
  Add Query
3613
  </a>
3614
- <button class="button-primary thickbox thickbox-preview" onclick="if (spider_check_email('mail') ||
3615
  spider_check_email('from_mail') ||
3616
  spider_check_email('reply_to') ||
3617
  spider_check_email('mail_from_user') ||
2670
  <form class="wrap" method="post" action="admin.php?page=manage_fm" style="float: left; width: 99%;" name="adminForm" id="adminForm">
2671
  <h2><?php echo $page_title; ?></h2>
2672
  <div style="float: right; margin: 0 5px 0 0;">
2673
+ <input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
2674
  spider_check_email('from_mail') ||
2675
  spider_check_email('reply_to') ||
2676
  spider_check_email('mail_from_user') ||
2678
  spider_check_email('mail_from_other') ||
2679
  spider_check_email('reply_to_other') ||
2680
  spider_check_email('paypal_email')) {return false;}; set_condition(); spider_set_input_value('task', 'save_options')" value="Save"/>
2681
+ <input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
2682
  spider_check_email('from_mail') ||
2683
  spider_check_email('reply_to') ||
2684
  spider_check_email('mail_from_user') ||
2763
  <label for="requiredmark">Required fields mark</label>
2764
  </td>
2765
  <td class="fm_options_value">
2766
+ <input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width:250px;" />
2767
  </td>
2768
  </tr>
2769
  </table>
2772
  <legend style="color: #0B55C4; font-weight: bold;">Email Options</legend>
2773
  <table class="admintable">
2774
  <tr valign="top">
2775
+ <td style="padding: 15px; width: 75px;">
2776
  <label>Send E-mail</label>
2777
  </td>
2778
  <td style="padding: 15px;">
2786
  <table class="admintable">
2787
  <tr valign="top">
2788
  <td class="fm_options_label">
2789
+ <label for="mailToAdd">Email to send submissions to</label>
2790
  </td>
2791
  <td class="fm_options_value">
2792
+ <input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
2793
+ <input type="hidden" id="mail" name="mail" value="<?php echo $row->mail . ($row->mail && (substr($row->mail, -1) != ',') ? ',' : ''); ?>" />
2794
+ <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>"
2795
+ style="vertical-align: middle; cursor: pointer;"
2796
+ title="Add more emails"
2797
+ onclick="if (spider_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_FM_URL; ?>')" />
2798
+ <div id="cfm_mail_div">
2799
+ <?php
2800
+ $mail_array = explode(',', $row->mail);
2801
+ foreach ($mail_array as $mail) {
2802
+ if ($mail && $mail != ',') {
2803
+ ?>
2804
+ <div class="fm_mail_input">
2805
+ <?php echo $mail; ?>
2806
+ <img src="<?php echo WD_FM_URL; ?>/images/delete.png" class="fm_delete_img" onclick="fm_delete_mail(this, '<?php echo $mail; ?>')" title="Delete Email" />
2807
+ </div>
2808
+ <?php
2809
+ }
2810
+ }
2811
+ ?>
2812
+ </div>
2813
  </td>
2814
  </tr>
2815
  <tr valign="top">
2836
  <input type="radio" id="other" name="from_mail" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
2837
  <label for="other">Other</label>
2838
  </div>
2839
+ <input type="text" style="width: <?php echo ($fields_count == 1) ? '250px' : '235px; margin-left: 15px' ?>; display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="mail_from_other" name="mail_from_other" value="<?php echo ($is_other) ? $row->from_mail : ''; ?>" />
2840
  </td>
2841
  </tr>
2842
  <tr valign="top">
2844
  <label for="from_name">From Name</label>
2845
  </td>
2846
  <td class="fm_options_value">
2847
+ <input type="text" id="from_name" name="from_name" value="<?php echo $row->from_name; ?>" style="width: 250px;" />
2848
+ <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_labels').style.display='block';" style="vertical-align: middle; cursor: pointer;display:inline-block; margin:0px; float:none;">
2849
  <?php
2850
  $choise = "document.getElementById('from_name')";
2851
  echo '<div style="position:relative; top:-3px;"><div id="mail_from_labels" class="email_labels" style="display:none;">';
2895
  <input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
2896
  <label for="other1">Other</label>
2897
  </div>
2898
+ <input type="text" style="width: <?php echo ($fields_count == 1) ? '250px' : '235px; margin-left: 15px'; ?>; display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="reply_to_other" name="reply_to_other" value="<?php echo ($is_other && $row->reply_to) ? $row->reply_to : ''; ?>" />
2899
  </td>
2900
  </tr>
2901
  <tr valign="top">
2903
  <label> CC: </label>
2904
  </td>
2905
  <td class="fm_options_value">
2906
+ <input type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc ?>" style="width:250px;" />
2907
  </td>
2908
  </tr>
2909
  <tr valign="top">
2911
  <label> BCC: </label>
2912
  </td>
2913
  <td class="fm_options_value">
2914
+ <input type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc ?>" style="width:250px;" />
2915
  </td>
2916
  </tr>
2917
  <tr valign="top">
2919
  <label> Subject: </label>
2920
  </td>
2921
  <td class="fm_options_value">
2922
+ <input type="text" id="mail_subject" name="mail_subject" value="<?php echo $row->mail_subject ?>" style="width:250px;" />
2923
+ <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_labels').style.display='block';" style="vertical-align: middle;cursor: pointer; display:inline-block; margin:0px; float:none;">
2924
  <?php
2925
  $choise = "document.getElementById('mail_subject')";
2926
  echo '<div style="position:relative; top:-3px;"><div id="mail_subject_labels" class="email_labels" style="display:none;">';
3033
  <label for="mail_from_user">Email From</label>
3034
  </td>
3035
  <td class="fm_options_value">
3036
+ <input type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
3037
  </td>
3038
  </tr>
3039
  <tr valign="top">
3041
  <label for="mail_from_name_user">From Name</label>
3042
  </td>
3043
  <td class="fm_options_value">
3044
+ <input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 250px;"/>
3045
+ <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_name_user_labels').style.display='block';" style="vertical-align: middle;cursor: pointer; display:inline-block; margin:0px; float:none;">
3046
  <?php
3047
  $choise = "document.getElementById('mail_from_name_user')";
3048
  echo '<div style="position:relative; top:-3px;"><div id="mail_from_name_user_labels" class="email_labels" style="display:none;">';
3073
  <label for="reply_to_user">Reply to<br />(if different from "Email Form")</label>
3074
  </td>
3075
  <td class="fm_options_value">
3076
+ <input type="text" id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width:250px;"/>
3077
  </td>
3078
  </tr>
3079
  <tr valign="top">
3081
  <label> CC: </label>
3082
  </td>
3083
  <td class="fm_options_value">
3084
+ <input type="text" id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user ?>" style="width:250px;" />
3085
  </td>
3086
  </tr>
3087
  <tr valign="top">
3089
  <label> BCC: </label>
3090
  </td>
3091
  <td class="fm_options_value">
3092
+ <input type="text" id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user ?>" style="width:250px;" />
3093
  </td>
3094
  </tr>
3095
  <tr valign="top">
3097
  <label> Subject: </label>
3098
  </td>
3099
  <td class="fm_options_value">
3100
+ <input type="text" id="mail_subject_user" name="mail_subject_user" value="<?php echo $row->mail_subject_user ?>" style="width:250px;" />
3101
+ <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_user_labels').style.display='block';" style="vertical-align: middle; cursor: pointer; display:inline-block; margin:0px; float:none;">
3102
  <?php
3103
  $choise = "document.getElementById('mail_subject_user')";
3104
  echo '<div style="position:relative; top:-3px;"><div id="mail_subject_user_labels" class="email_labels" style="display:none;">';
3453
  ?>
3454
  <div>
3455
  <span style="font-size:13px;">Add Condition<span/>
3456
+ <img src="<?php echo WD_FM_URL . '/images/add_condition.png'; ?>" title="add" onclick="add_condition('<?php echo $chose_ids; ?>', '<?php echo htmlspecialchars(addslashes($chose_labels)); ?>', '<?php echo $chose_types; ?>', '<?php echo addslashes($chose_paramss); ?>', '<?php echo $all_ids_cond; ?>', '<?php echo htmlspecialchars(addslashes($all_labels_cond)); ?>')" style="cursor: pointer; vertical-align: middle; margin-left:15px;">
3457
+ </div>
3458
  <?php
3459
 
3460
  for($k=0; $k<$count_of_conditions; $k++)
3631
  <a href="<?php echo add_query_arg(array('action' => 'FormMakerSQLMapping', 'id' => 0, 'form_id' => $row->id, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-secondary thickbox thickbox-preview" id="add_query" title="Add Query" onclick="return false;">
3632
  Add Query
3633
  </a>
3634
+ <button class="button-primary thickbox thickbox-preview" onclick="if (spider_check_email('mailToAdd') ||
3635
  spider_check_email('from_mail') ||
3636
  spider_check_email('reply_to') ||
3637
  spider_check_email('mail_from_user') ||
admin/views/FMViewSubmissions_fm.php CHANGED
@@ -50,6 +50,7 @@ class FMViewSubmissions_fm {
50
  $group_id_s = $this->model->sort_group_ids(count($sorted_label_names),$group_ids);
51
  $ka_fielderov_search = (($lists['ip_search'] || $lists['startdate'] || $lists['enddate']) ? TRUE : FALSE);
52
  $is_stats = false;
 
53
 
54
  ?>
55
  <script type="text/javascript">
@@ -286,7 +287,7 @@ class FMViewSubmissions_fm {
286
  <span class="sorting-indicator"></span>
287
  </a>
288
  </th>
289
- <th scope="col" id="submitterip_fc" class="table_large_col submitterip_fc <?php if ($order_by == "ip")echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_ip;?>>
290
  <a href="" onclick="spider_set_input_value('order_by', 'ip');
291
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'ip') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
292
  spider_form_submit(event, 'admin_form')">
@@ -356,7 +357,7 @@ class FMViewSubmissions_fm {
356
  </tr>
357
  </table>
358
  </th>
359
- <th class="table_large_col submitterip_fc" <?php echo $style_ip; ?>>
360
  <input type="text" name="ip_search" id="ip_search" value="<?php echo $lists['ip_search']; ?>" onChange="this.form.submit();" />
361
  </th>
362
  <?php
@@ -424,13 +425,6 @@ class FMViewSubmissions_fm {
424
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
425
  $temp = $this->model->array_for_group_id($group_id_s[$www], $rows);
426
  $data = $temp[0];
427
- $query = @unserialize(file_get_contents('http://ip-api.com/php/' . $data->ip));
428
- if ($query && $query['status'] == 'success' && $query['countryCode']) {
429
- $country_flag = '<img src="' . WD_FM_URL . '/images/flags/' . strtolower($query['countryCode']) . '.png" class="sub-align" alt="' . $query['country'] . '" title="' . $query['country'] . '" />';
430
- }
431
- else {
432
- $country_flag = '';
433
- }
434
  ?>
435
  <tr <?php echo $alternate; ?>>
436
  <td class="table_small_col count_col sub-align"><?php echo $www + 1; ?></td>
@@ -461,14 +455,8 @@ class FMViewSubmissions_fm {
461
  spider_form_submit(event, 'admin_form');" ><?php echo $data->date ;?>
462
  </a>
463
  </td>
464
- <td class="table_large_col submitterip_fc sub-align" id="submitterip_fc" <?php echo $style_ip; ?>>
465
- <a href="" onclick="spider_set_input_value('task', 'edit');
466
- spider_set_input_value('current_id', <?php echo $data->group_id; ?>);
467
- spider_form_submit(event, 'admin_form');" class="sub-align" <?php echo ($this->model->check_ip($data->ip) == NULL) ? '' : 'style="color: #FF0000;"'; ?>><?php echo $data->ip; ?>
468
- </a>
469
- <?php
470
- echo $country_flag;
471
- ?>
472
  </td>
473
  <?php
474
  for ($h = 0; $h < $m; $h++) {
50
  $group_id_s = $this->model->sort_group_ids(count($sorted_label_names),$group_ids);
51
  $ka_fielderov_search = (($lists['ip_search'] || $lists['startdate'] || $lists['enddate']) ? TRUE : FALSE);
52
  $is_stats = false;
53
+ $blocked_ips = $this->model->blocked_ips();
54
 
55
  ?>
56
  <script type="text/javascript">
287
  <span class="sorting-indicator"></span>
288
  </a>
289
  </th>
290
+ <th scope="col" id="submitterip_fc" class="table_medium_col_uncenter submitterip_fc <?php if ($order_by == "ip")echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_ip;?>>
291
  <a href="" onclick="spider_set_input_value('order_by', 'ip');
292
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'ip') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
293
  spider_form_submit(event, 'admin_form')">
357
  </tr>
358
  </table>
359
  </th>
360
+ <th class="table_medium_col_uncenter submitterip_fc" <?php echo $style_ip; ?>>
361
  <input type="text" name="ip_search" id="ip_search" value="<?php echo $lists['ip_search']; ?>" onChange="this.form.submit();" />
362
  </th>
363
  <?php
425
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
426
  $temp = $this->model->array_for_group_id($group_id_s[$www], $rows);
427
  $data = $temp[0];
 
 
 
 
 
 
 
428
  ?>
429
  <tr <?php echo $alternate; ?>>
430
  <td class="table_small_col count_col sub-align"><?php echo $www + 1; ?></td>
455
  spider_form_submit(event, 'admin_form');" ><?php echo $data->date ;?>
456
  </a>
457
  </td>
458
+ <td class="table_medium_col_uncenter submitterip_fc sub-align" id="submitterip_fc" <?php echo $style_ip; ?>>
459
+ <a class="thickbox-preview" href="<?php echo add_query_arg(array('action' => 'fromipinfoinpopup', 'data_ip' => $data->ip, 'width' => '400', 'height' => '300', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" title="Show submitter information"><?php echo $data->ip; ?></a>
 
 
 
 
 
 
460
  </td>
461
  <?php
462
  for ($h = 0; $h < $m; $h++) {
css/form_maker_featured_plugins.css CHANGED
@@ -46,6 +46,12 @@
46
  #main_featured_plugins_page #featured-plugins-list li.spider-calendar .product {background:url("images/spider.calendar.jpg") left center no-repeat;}
47
  #main_featured_plugins_page #featured-plugins-list li.zoom .product {background:url("images/zoom.jpg") left center no-repeat;}
48
 
 
 
 
 
 
 
49
 
50
  #main_featured_plugins_page #featured-plugins-list li .title .heading {
51
  display:block;
@@ -53,6 +59,7 @@
53
  font-size:24px;
54
  color:#014f73;
55
  margin:30px 0px -10px 20px;
 
56
  }
57
 
58
  #main_featured_plugins_page #featured-plugins-list li .title p {
46
  #main_featured_plugins_page #featured-plugins-list li.spider-calendar .product {background:url("images/spider.calendar.jpg") left center no-repeat;}
47
  #main_featured_plugins_page #featured-plugins-list li.zoom .product {background:url("images/zoom.jpg") left center no-repeat;}
48
 
49
+ #main_featured_plugins_page #featured-plugins-list li.form_maker_import .product {
50
+ background: #cacaca url("images/form_make_import.png") left 11px no-repeat;
51
+ background-size: 100px 110px;
52
+ border-top-left-radius: 3px;
53
+ border-bottom-left-radius: 3px;
54
+ }
55
 
56
  #main_featured_plugins_page #featured-plugins-list li .title .heading {
57
  display:block;
59
  font-size:24px;
60
  color:#014f73;
61
  margin:30px 0px -10px 20px;
62
+ line-height: 24px;
63
  }
64
 
65
  #main_featured_plugins_page #featured-plugins-list li .title p {
css/form_maker_frontend.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  .wdform_row .wdform-field .wdform_map {
2
  width: inherit !important;
3
  }
1
+ .wdform_map img {
2
+ max-width: none !important;
3
+ }
4
+
5
  .wdform_row .wdform-field .wdform_map {
6
  width: inherit !important;
7
  }
css/form_maker_tables.css CHANGED
@@ -100,6 +100,9 @@ table.admintable td.paramlist_key {
100
  text-align: right;
101
  width: 200px;
102
  }
 
 
 
103
  .submenu-box {
104
  background-color: #F4F4F4;
105
  border: 1px solid #CCCCCC;
@@ -582,3 +585,13 @@ div.wd_preview a {
582
  border: 1px solid #cccccc !important;
583
  padding: 15px;
584
  }
 
 
 
 
 
 
 
 
 
 
100
  text-align: right;
101
  width: 200px;
102
  }
103
+ table.admintable {
104
+ width: 100%;
105
+ }
106
  .submenu-box {
107
  background-color: #F4F4F4;
108
  border: 1px solid #CCCCCC;
585
  border: 1px solid #cccccc !important;
586
  padding: 15px;
587
  }
588
+ .fm_options_label {
589
+ width: 170px;
590
+ }
591
+ .fm_delete_img {
592
+ cursor: pointer;
593
+ margin: 0 0 0 2px;
594
+ padding: 0;
595
+ vertical-align: middle;
596
+ }
597
+
css/images/form_make_import.png ADDED
Binary file
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.7.15
7
  * Author: http://web-dorado.com/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
@@ -35,6 +35,9 @@ function form_maker_options_panel() {
35
  $featured_plugins_page = add_submenu_page('manage_fm', 'Featured Plugins', 'Featured Plugins', 'manage_options', 'featured_plugins_fm', 'form_maker');
36
  add_action('admin_print_styles-' . $featured_plugins_page, 'form_maker_featured_plugins_styles');
37
 
 
 
 
38
  $uninstall_page = add_submenu_page('manage_fm', 'Uninstall', 'Uninstall', 'manage_options', 'uninstall_fm', 'form_maker');
39
  add_action('admin_print_styles-' . $uninstall_page, 'form_maker_styles');
40
  add_action('admin_print_scripts-' . $uninstall_page, 'form_maker_scripts');
@@ -44,7 +47,7 @@ add_action('admin_menu', 'form_maker_options_panel');
44
  function form_maker() {
45
  require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
46
  $page = WDW_FM_Library::get('page');
47
- if (($page != '') && (($page == 'manage_fm') || ($page == 'submissions_fm') || ($page == 'blocked_ips_fm') || ($page == 'themes_fm') || ($page == 'licensing_fm') || ($page == 'featured_plugins_fm') || ($page == 'uninstall_fm') || ($page == 'formmakerwindow'))) {
48
  require_once (WD_FM_DIR . '/admin/controllers/FMController' . ucfirst(strtolower($page)) . '.php');
49
  $controller_class = 'FMController' . ucfirst(strtolower($page));
50
  $controller = new $controller_class();
@@ -58,18 +61,14 @@ add_action('wp_ajax_generete_xml', 'form_maker_ajax'); // Export xml.
58
  add_action('wp_ajax_FormMakerPreview', 'form_maker_ajax');
59
  add_action('wp_ajax_formmakerwdcaptcha', 'form_maker_ajax'); // Generete captcha image and save it code in session.
60
  add_action('wp_ajax_nopriv_formmakerwdcaptcha', 'form_maker_ajax'); // Generete captcha image and save it code in session for all users.
61
- // add_action('wp_ajax_paypal_info', 'form_maker_ajax'); // Paypal info in submissions page.
62
  add_action('wp_ajax_fromeditcountryinpopup', 'form_maker_ajax'); // Open country list.
63
  add_action('wp_ajax_product_option', 'form_maker_ajax'); // Open product options on add paypal field.
64
  add_action('wp_ajax_frommapeditinpopup', 'form_maker_ajax'); // Open map in submissions.
 
65
  add_action('wp_ajax_show_matrix', 'form_maker_ajax'); // Edit matrix in submissions.
66
  add_action('wp_ajax_FormMakerEditCSS', 'form_maker_ajax'); // Edit css from form options.
67
  add_action('wp_ajax_FormMakerSQLMapping', 'form_maker_ajax'); // Add/Edit SQLMaping from form options.
68
 
69
- // add_action('wp_ajax_checkpaypal', 'form_maker_ajax'); // Notify url from Paypal Sandbox.
70
- // add_action('wp_ajax_nopriv_checkpaypal', 'form_maker_ajax'); // Notify url from Paypal Sandbox for all users.
71
-
72
-
73
  function form_maker_ajax() {
74
  require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
75
  $page = WDW_FM_Library::get('action');
@@ -162,7 +161,7 @@ if (class_exists('WP_Widget')) {
162
  // Activate plugin.
163
  function form_maker_activate() {
164
  $version = get_option("wd_form_maker_version");
165
- $new_version = '1.7.14';
166
  if (!$version) {
167
  add_option("wd_form_maker_version", $new_version, '', 'no');
168
  global $wpdb;
3
  * Plugin Name: Form Maker
4
  * Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.7.16
7
  * Author: http://web-dorado.com/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
35
  $featured_plugins_page = add_submenu_page('manage_fm', 'Featured Plugins', 'Featured Plugins', 'manage_options', 'featured_plugins_fm', 'form_maker');
36
  add_action('admin_print_styles-' . $featured_plugins_page, 'form_maker_featured_plugins_styles');
37
 
38
+ $extensions_page = add_submenu_page('manage_fm', 'Form Maker plugins', 'Form Maker plugins', 'manage_options', 'extensions_fm', 'form_maker');
39
+ add_action('admin_print_styles-' . $extensions_page, 'form_maker_featured_plugins_styles');
40
+
41
  $uninstall_page = add_submenu_page('manage_fm', 'Uninstall', 'Uninstall', 'manage_options', 'uninstall_fm', 'form_maker');
42
  add_action('admin_print_styles-' . $uninstall_page, 'form_maker_styles');
43
  add_action('admin_print_scripts-' . $uninstall_page, 'form_maker_scripts');
47
  function form_maker() {
48
  require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
49
  $page = WDW_FM_Library::get('page');
50
+ if (($page != '') && (($page == 'manage_fm') || ($page == 'submissions_fm') || ($page == 'blocked_ips_fm') || ($page == 'themes_fm') || ($page == 'licensing_fm') || ($page == 'featured_plugins_fm') || ($page == 'uninstall_fm') || ($page == 'formmakerwindow') || ($page == 'extensions_fm'))) {
51
  require_once (WD_FM_DIR . '/admin/controllers/FMController' . ucfirst(strtolower($page)) . '.php');
52
  $controller_class = 'FMController' . ucfirst(strtolower($page));
53
  $controller = new $controller_class();
61
  add_action('wp_ajax_FormMakerPreview', 'form_maker_ajax');
62
  add_action('wp_ajax_formmakerwdcaptcha', 'form_maker_ajax'); // Generete captcha image and save it code in session.
63
  add_action('wp_ajax_nopriv_formmakerwdcaptcha', 'form_maker_ajax'); // Generete captcha image and save it code in session for all users.
 
64
  add_action('wp_ajax_fromeditcountryinpopup', 'form_maker_ajax'); // Open country list.
65
  add_action('wp_ajax_product_option', 'form_maker_ajax'); // Open product options on add paypal field.
66
  add_action('wp_ajax_frommapeditinpopup', 'form_maker_ajax'); // Open map in submissions.
67
+ add_action('wp_ajax_fromipinfoinpopup', 'form_maker_ajax'); // Open ip in submissions.
68
  add_action('wp_ajax_show_matrix', 'form_maker_ajax'); // Edit matrix in submissions.
69
  add_action('wp_ajax_FormMakerEditCSS', 'form_maker_ajax'); // Edit css from form options.
70
  add_action('wp_ajax_FormMakerSQLMapping', 'form_maker_ajax'); // Add/Edit SQLMaping from form options.
71
 
 
 
 
 
72
  function form_maker_ajax() {
73
  require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
74
  $page = WDW_FM_Library::get('action');
161
  // Activate plugin.
162
  function form_maker_activate() {
163
  $version = get_option("wd_form_maker_version");
164
+ $new_version = '1.7.16';
165
  if (!$version) {
166
  add_option("wd_form_maker_version", $new_version, '', 'no');
167
  global $wpdb;
js/form_maker_manage.js CHANGED
@@ -346,8 +346,26 @@ function refresh_old() {
346
  document.getElementById('form_front').value = document.getElementById('take').innerHTML;
347
  }
348
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
349
  function form_maker_options_tabs(id) {
350
- if (spider_check_email('mail') || spider_check_email('from_mail') || spider_check_email('reply_to') || spider_check_email('mail_from_user') || spider_check_email('reply_to_user') || spider_check_email('mail_from_other') || spider_check_email('reply_to_other') || spider_check_email('paypal_email')) {
351
  return false;
352
  }
353
  jQuery("#fieldset_id").val(id);
346
  document.getElementById('form_front').value = document.getElementById('take').innerHTML;
347
  }
348
 
349
+
350
+ function cfm_create_input(toAdd_id, value_id, parent_id, cfm_url) {
351
+ var value = jQuery("#" + value_id).val();
352
+ if (value) {
353
+ jQuery("#" + value_id).attr("style", "width: 250px;");
354
+ var mail_div = jQuery("<div>").attr("class", "fm_mail_div").prependTo("#" + parent_id).text(value);
355
+ jQuery("<img>").attr("src", cfm_url + "/images/delete.png").attr("class", "fm_delete_img").attr("onclick", "fm_delete_mail(this, '" + value + "')").attr("title", "Delete Email").appendTo(mail_div);
356
+ jQuery("#" + value_id).val("");
357
+ jQuery("#" + toAdd_id).val(jQuery("#" + toAdd_id).val() + value + ",");
358
+ }
359
+ }
360
+ function fm_delete_mail(img, value) {
361
+ jQuery(img).parent().remove();
362
+ jQuery("#mail").val(jQuery("#mail").val().replace(value + ',', ''));
363
+ }
364
+
365
+
366
+
367
  function form_maker_options_tabs(id) {
368
+ if (spider_check_email('mailToAdd') || spider_check_email('from_mail') || spider_check_email('reply_to') || spider_check_email('mail_from_user') || spider_check_email('reply_to_user') || spider_check_email('mail_from_other') || spider_check_email('reply_to_other') || spider_check_email('paypal_email')) {
369
  return false;
370
  }
371
  jQuery("#fieldset_id").val(id);
readme.txt CHANGED
@@ -3,16 +3,15 @@ Contributors: webdorado
3
  Donate link: http://web-dorado.com/products/wordpress-form.html
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario
5
  Requires at least: 3.0
6
- Tested up to: 3.9.1
7
- Stable tag: 1.7.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  WordPress Form Maker is a fresh and innovative form builder. This form builder is for generating various kinds of forms.
12
 
13
  == Description ==
14
-
15
- ### [WordPress Form Maker](http://web-dorado.com/products/wordpress-form.html)
16
  [Demo](http://wpdemo.web-dorado.com/)
17
  [Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=Form_maker)
18
  [User Manual](http://web-dorado.com/wordpress-form-maker-guide-1.html)
@@ -51,7 +50,8 @@ Survey tools are also very convenient for adding rating systems for the posts, e
51
 
52
  * WordPress 3.0+
53
  * Multiple pre-installed sample forms
54
- * Responsive layout and design
 
55
  * Twelve form fields with detailed parameters for creating forms
56
  * Custom HTML with standard editor
57
  * Text Input form fields (included 10 different types)
@@ -109,8 +109,9 @@ Survey tools are also very convenient for adding rating systems for the posts, e
109
  * Possibility to have pre-filled texts serving as instructions for the textarea and other text fields.
110
  * Date picker in the form of drop-down menu for easier date selection.
111
  * Submissions section displays the amount of entries, as well as views and conversion rate for each separate form.
112
- * Conditional fileds.
113
  * CC and BCC mail options for sending out the submitted form
 
114
 
115
  Upgrade to [WordPress Form Maker Pro](http://web-dorado.com/products/wordpress-form.html) to add features:
116
 
@@ -214,6 +215,12 @@ In case you are upgrading your Form Maker to paid version, but still want to pre
214
 
215
  == Changelog ==
216
 
 
 
 
 
 
 
217
  = 1.7.14 =
218
  csv, xml export mark on map
219
 
3
  Donate link: http://web-dorado.com/products/wordpress-form.html
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario
5
  Requires at least: 3.0
6
+ Tested up to: 4.0
7
+ Stable tag: 1.7.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  WordPress Form Maker is a fresh and innovative form builder. This form builder is for generating various kinds of forms.
12
 
13
  == Description ==
14
+ [WordPress Form Maker](http://web-dorado.com/products/wordpress-form.html)
 
15
  [Demo](http://wpdemo.web-dorado.com/)
16
  [Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=Form_maker)
17
  [User Manual](http://web-dorado.com/wordpress-form-maker-guide-1.html)
50
 
51
  * WordPress 3.0+
52
  * Multiple pre-installed sample forms
53
+ * Responsive layout and design
54
+ * Limited up to 7 fields to add
55
  * Twelve form fields with detailed parameters for creating forms
56
  * Custom HTML with standard editor
57
  * Text Input form fields (included 10 different types)
109
  * Possibility to have pre-filled texts serving as instructions for the textarea and other text fields.
110
  * Date picker in the form of drop-down menu for easier date selection.
111
  * Submissions section displays the amount of entries, as well as views and conversion rate for each separate form.
112
+ * Conditional fileds.
113
  * CC and BCC mail options for sending out the submitted form
114
+ * 37 responsive theme with customizable design
115
 
116
  Upgrade to [WordPress Form Maker Pro](http://web-dorado.com/products/wordpress-form.html) to add features:
117
 
215
 
216
  == Changelog ==
217
 
218
+ = 1.7.16 =
219
+ show submitter information in popup (Country, CountryCode, City, Latitude, Longitude)
220
+
221
+ = 1.7.15 =
222
+ bug fixed
223
+
224
  = 1.7.14 =
225
  csv, xml export mark on map
226
 
session/index.html DELETED
@@ -1 +0,0 @@
1
- <html><body bgcolor="#FFFFFF"></body></html>