Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form by WD – responsive drag & drop contact form builder tool |
Version | 1.7.16 |
Comparing to | |
See all releases |
Code changes from version 1.7.15 to 1.7.16
- admin/controllers/FMControllerFromipinfoinpopup_fmc.php +43 -0
- admin/controllers/FMControllerManage_fmc.php +3 -0
- admin/models/FMModelFromipinfoinpopup_fmc.php +31 -0
- admin/models/FMModelManage_fmc.php +1 -1
- admin/models/FMModelSubmissions_fmc.php +3 -3
- admin/views/FMViewFromipinfoinpopup_fmc.php +102 -0
- admin/views/FMViewManage_fmc.php +47 -23
- admin/views/FMViewSubmissions_fmc.php +5 -17
- contact-form-maker.php +3 -2
- css/form_maker_frontend.css +4 -0
- css/form_maker_tables.css +14 -0
- js/form_maker_manage.js +17 -1
- readme.txt +2 -2
- session/index.html +0 -1
admin/controllers/FMControllerFromipinfoinpopup_fmc.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class FMControllerFromipinfoinpopup_fmc {
|
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_FMC_DIR . "/admin/models/FMModelFromipinfoinpopup_fmc.php";
|
27 |
+
$model = new FMModelFromipinfoinpopup_fmc();
|
28 |
+
|
29 |
+
require_once WD_FMC_DIR . "/admin/views/FMViewFromipinfoinpopup_fmc.php";
|
30 |
+
$view = new FMViewFromipinfoinpopup_fmc($model);
|
31 |
+
$view->display();
|
32 |
+
}
|
33 |
+
|
34 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
+
// Getters & Setters //
|
36 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
+
// Private Methods //
|
39 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
+
// Listeners //
|
42 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
+
}
|
admin/controllers/FMControllerManage_fmc.php
CHANGED
@@ -309,6 +309,9 @@ function before_reset() {
|
|
309 |
$requiredmark = (isset($_POST['requiredmark']) ? esc_html(stripslashes($_POST['requiredmark'])) : '*');
|
310 |
$sendemail = (isset($_POST['sendemail']) ? esc_html(stripslashes($_POST['sendemail'])) : 1);
|
311 |
$mail = (isset($_POST['mail']) ? esc_html(stripslashes($_POST['mail'])) : '');
|
|
|
|
|
|
|
312 |
$from_mail = (isset($_POST['from_mail']) ? esc_html(stripslashes($_POST['from_mail'])) : '');
|
313 |
$from_name = (isset($_POST['from_name']) ? esc_html(stripslashes($_POST['from_name'])) : '');
|
314 |
$reply_to = (isset($_POST['reply_to']) ? esc_html(stripslashes($_POST['reply_to'])) : '');
|
309 |
$requiredmark = (isset($_POST['requiredmark']) ? esc_html(stripslashes($_POST['requiredmark'])) : '*');
|
310 |
$sendemail = (isset($_POST['sendemail']) ? esc_html(stripslashes($_POST['sendemail'])) : 1);
|
311 |
$mail = (isset($_POST['mail']) ? esc_html(stripslashes($_POST['mail'])) : '');
|
312 |
+
if (isset($_POST['mailToAdd']) && esc_html(stripslashes($_POST['mailToAdd'])) != '') {
|
313 |
+
$mail .= esc_html(stripslashes($_POST['mailToAdd'])) . ',';
|
314 |
+
}
|
315 |
$from_mail = (isset($_POST['from_mail']) ? esc_html(stripslashes($_POST['from_mail'])) : '');
|
316 |
$from_name = (isset($_POST['from_name']) ? esc_html(stripslashes($_POST['from_name'])) : '');
|
317 |
$reply_to = (isset($_POST['reply_to']) ? esc_html(stripslashes($_POST['reply_to'])) : '');
|
admin/models/FMModelFromipinfoinpopup_fmc.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class FMModelFromipinfoinpopup_fmc {
|
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/FMModelManage_fmc.php
CHANGED
@@ -117,7 +117,7 @@ class FMModelManage_fmc {
|
|
117 |
$labels = array();
|
118 |
$paramss = array();
|
119 |
$fields = explode('*:*new_field*:*', $row->form_fields);
|
120 |
-
$fields = array_slice($fields, 0, count($fields) - 1);
|
121 |
foreach ($fields as $field) {
|
122 |
$temp=explode('*:*id*:*',$field);
|
123 |
array_push($ids, $temp[0]);
|
117 |
$labels = array();
|
118 |
$paramss = array();
|
119 |
$fields = explode('*:*new_field*:*', $row->form_fields);
|
120 |
+
$fields = array_slice($fields, 0, count($fields) - 1);
|
121 |
foreach ($fields as $field) {
|
122 |
$temp=explode('*:*id*:*',$field);
|
123 |
array_push($ids, $temp[0]);
|
admin/models/FMModelSubmissions_fmc.php
CHANGED
@@ -17,10 +17,10 @@ class FMModelSubmissions_fmc {
|
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
18 |
// Public Methods //
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
-
public function
|
21 |
global $wpdb;
|
22 |
-
$
|
23 |
-
return $
|
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/FMViewFromipinfoinpopup_fmc.php
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class FMViewFromipinfoinpopup_fmc {
|
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_FMC_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 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
94 |
+
// Getters & Setters //
|
95 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
96 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
97 |
+
// Private Methods //
|
98 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
99 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
100 |
+
// Listeners //
|
101 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
102 |
+
}
|
admin/views/FMViewManage_fmc.php
CHANGED
@@ -2672,7 +2672,7 @@ class FMViewManage_fmc {
|
|
2672 |
<form class="wrap" method="post" action="admin.php?page=manage_fmc" style="float: left; width: 99%;" name="adminForm" id="adminForm">
|
2673 |
<h2><?php echo $page_title; ?></h2>
|
2674 |
<div style="float: right; margin: 0 5px 0 0;">
|
2675 |
-
<input class="button-secondary" type="submit" onclick="if (spider_check_email('
|
2676 |
spider_check_email('from_mail') ||
|
2677 |
spider_check_email('reply_to') ||
|
2678 |
spider_check_email('mail_from_user') ||
|
@@ -2680,7 +2680,7 @@ class FMViewManage_fmc {
|
|
2680 |
spider_check_email('mail_from_other') ||
|
2681 |
spider_check_email('reply_to_other') ||
|
2682 |
spider_check_email('paypal_email')) {return false;}; set_condition(); spider_set_input_value('task', 'save_options')" value="Save"/>
|
2683 |
-
<input class="button-secondary" type="submit" onclick="if (spider_check_email('
|
2684 |
spider_check_email('from_mail') ||
|
2685 |
spider_check_email('reply_to') ||
|
2686 |
spider_check_email('mail_from_user') ||
|
@@ -2762,7 +2762,7 @@ class FMViewManage_fmc {
|
|
2762 |
<label for="requiredmark">Required fields mark</label>
|
2763 |
</td>
|
2764 |
<td class="fm_options_value">
|
2765 |
-
<input id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width:250px;" />
|
2766 |
</td>
|
2767 |
</tr>
|
2768 |
</table>
|
@@ -2771,10 +2771,10 @@ class FMViewManage_fmc {
|
|
2771 |
<legend style="color: #0B55C4; font-weight: bold;">Email Options</legend>
|
2772 |
<table class="admintable">
|
2773 |
<tr valign="top">
|
2774 |
-
<td style="padding:
|
2775 |
<label>Send E-mail</label>
|
2776 |
</td>
|
2777 |
-
<td style="padding:
|
2778 |
<input type="radio" name="sendemail" id="sendemail_yes" value="1" <?php echo ($row->sendemail) ? "checked" : ""; ?> /><label for="sendemail_yes">Yes</label>
|
2779 |
<input type="radio" name="sendemail" id="sendemail_no" value="0" <?php echo (!$row->sendemail) ? "checked" : ""; ?> /><label for="sendemail_no">No</label>
|
2780 |
</td>
|
@@ -2788,7 +2788,31 @@ class FMViewManage_fmc {
|
|
2788 |
<label for="mail">Email to send submissions to</label>
|
2789 |
</td>
|
2790 |
<td class="fm_options_value">
|
2791 |
-
<input
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2792 |
</td>
|
2793 |
</tr>
|
2794 |
<tr valign="top">
|
@@ -2815,7 +2839,7 @@ class FMViewManage_fmc {
|
|
2815 |
<input type="radio" id="other" name="from_mail" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
|
2816 |
<label for="other">Other</label>
|
2817 |
</div>
|
2818 |
-
<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 : ''; ?>" />
|
2819 |
</td>
|
2820 |
</tr>
|
2821 |
<tr valign="top">
|
@@ -2823,8 +2847,8 @@ class FMViewManage_fmc {
|
|
2823 |
<label for="from_name">From Name</label>
|
2824 |
</td>
|
2825 |
<td class="fm_options_value">
|
2826 |
-
<input id="from_name" name="from_name" value="<?php echo $row->from_name; ?>" style="width: 230px;" />
|
2827 |
-
<img src="<?php echo WD_FMC_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none;">
|
2828 |
<?php
|
2829 |
$choise = "document.getElementById('from_name')";
|
2830 |
echo '<div style="position:relative; top:-3px;"><div id="mail_from_labels" class="email_labels" style="display:none;">';
|
@@ -2874,7 +2898,7 @@ class FMViewManage_fmc {
|
|
2874 |
<input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
|
2875 |
<label for="other1">Other</label>
|
2876 |
</div>
|
2877 |
-
<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 : ''; ?>" />
|
2878 |
</td>
|
2879 |
</tr>
|
2880 |
<tr valign="top">
|
@@ -2882,7 +2906,7 @@ class FMViewManage_fmc {
|
|
2882 |
<label> CC: </label>
|
2883 |
</td>
|
2884 |
<td class="fm_options_value">
|
2885 |
-
<input id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc ?>" style="width:250px;" />
|
2886 |
</td>
|
2887 |
</tr>
|
2888 |
<tr valign="top">
|
@@ -2890,7 +2914,7 @@ class FMViewManage_fmc {
|
|
2890 |
<label> BCC: </label>
|
2891 |
</td>
|
2892 |
<td class="fm_options_value">
|
2893 |
-
<input id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc ?>" style="width:250px;" />
|
2894 |
</td>
|
2895 |
</tr>
|
2896 |
<tr valign="top">
|
@@ -2898,8 +2922,8 @@ class FMViewManage_fmc {
|
|
2898 |
<label> Subject: </label>
|
2899 |
</td>
|
2900 |
<td class="fm_options_value">
|
2901 |
-
<input id="mail_subject" name="mail_subject" value="<?php echo $row->mail_subject ?>" style="width:230px;" />
|
2902 |
-
<img src="<?php echo WD_FMC_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none;">
|
2903 |
<?php
|
2904 |
$choise = "document.getElementById('mail_subject')";
|
2905 |
echo '<div style="position:relative; top:-3px;"><div id="mail_subject_labels" class="email_labels" style="display:none;">';
|
@@ -3012,7 +3036,7 @@ class FMViewManage_fmc {
|
|
3012 |
<label for="mail_from_user">Email From</label>
|
3013 |
</td>
|
3014 |
<td class="fm_options_value">
|
3015 |
-
<input id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
|
3016 |
</td>
|
3017 |
</tr>
|
3018 |
<tr valign="top">
|
@@ -3020,8 +3044,8 @@ class FMViewManage_fmc {
|
|
3020 |
<label for="mail_from_name_user">From Name</label>
|
3021 |
</td>
|
3022 |
<td class="fm_options_value">
|
3023 |
-
<input id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 230px;"/>
|
3024 |
-
<img src="<?php echo WD_FMC_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;">
|
3025 |
<?php
|
3026 |
$choise = "document.getElementById('mail_from_name_user')";
|
3027 |
echo '<div style="position:relative; top:-3px;"><div id="mail_from_name_user_labels" class="email_labels" style="display:none;">';
|
@@ -3052,7 +3076,7 @@ class FMViewManage_fmc {
|
|
3052 |
<label for="reply_to_user">Reply to<br />(if different from "Email Form")</label>
|
3053 |
</td>
|
3054 |
<td class="fm_options_value">
|
3055 |
-
<input id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width:250px;"/>
|
3056 |
</td>
|
3057 |
</tr>
|
3058 |
<tr valign="top">
|
@@ -3060,7 +3084,7 @@ class FMViewManage_fmc {
|
|
3060 |
<label> CC: </label>
|
3061 |
</td>
|
3062 |
<td class="fm_options_value">
|
3063 |
-
<input id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user ?>" style="width:250px;" />
|
3064 |
</td>
|
3065 |
</tr>
|
3066 |
<tr valign="top">
|
@@ -3068,7 +3092,7 @@ class FMViewManage_fmc {
|
|
3068 |
<label> BCC: </label>
|
3069 |
</td>
|
3070 |
<td class="fm_options_value">
|
3071 |
-
<input id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user ?>" style="width:250px;" />
|
3072 |
</td>
|
3073 |
</tr>
|
3074 |
<tr valign="top">
|
@@ -3076,8 +3100,8 @@ class FMViewManage_fmc {
|
|
3076 |
<label> Subject: </label>
|
3077 |
</td>
|
3078 |
<td class="fm_options_value">
|
3079 |
-
<input id="mail_subject_user" name="mail_subject_user" value="<?php echo $row->mail_subject_user ?>" style="width:230px;" />
|
3080 |
-
<img src="<?php echo WD_FMC_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;">
|
3081 |
<?php
|
3082 |
$choise = "document.getElementById('mail_subject_user')";
|
3083 |
echo '<div style="position:relative; top:-3px;"><div id="mail_subject_user_labels" class="email_labels" style="display:none;">';
|
@@ -3432,7 +3456,7 @@ class FMViewManage_fmc {
|
|
3432 |
?>
|
3433 |
<div>
|
3434 |
<span style="font-size:13px;">Add Condition<span/>
|
3435 |
-
<img src="<?php echo
|
3436 |
</div>
|
3437 |
<?php
|
3438 |
|
2672 |
<form class="wrap" method="post" action="admin.php?page=manage_fmc" style="float: left; width: 99%;" name="adminForm" id="adminForm">
|
2673 |
<h2><?php echo $page_title; ?></h2>
|
2674 |
<div style="float: right; margin: 0 5px 0 0;">
|
2675 |
+
<input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
|
2676 |
spider_check_email('from_mail') ||
|
2677 |
spider_check_email('reply_to') ||
|
2678 |
spider_check_email('mail_from_user') ||
|
2680 |
spider_check_email('mail_from_other') ||
|
2681 |
spider_check_email('reply_to_other') ||
|
2682 |
spider_check_email('paypal_email')) {return false;}; set_condition(); spider_set_input_value('task', 'save_options')" value="Save"/>
|
2683 |
+
<input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
|
2684 |
spider_check_email('from_mail') ||
|
2685 |
spider_check_email('reply_to') ||
|
2686 |
spider_check_email('mail_from_user') ||
|
2762 |
<label for="requiredmark">Required fields mark</label>
|
2763 |
</td>
|
2764 |
<td class="fm_options_value">
|
2765 |
+
<input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width:250px;" />
|
2766 |
</td>
|
2767 |
</tr>
|
2768 |
</table>
|
2771 |
<legend style="color: #0B55C4; font-weight: bold;">Email Options</legend>
|
2772 |
<table class="admintable">
|
2773 |
<tr valign="top">
|
2774 |
+
<td style="padding: 5px; width:75px;">
|
2775 |
<label>Send E-mail</label>
|
2776 |
</td>
|
2777 |
+
<td style="padding: 5px;">
|
2778 |
<input type="radio" name="sendemail" id="sendemail_yes" value="1" <?php echo ($row->sendemail) ? "checked" : ""; ?> /><label for="sendemail_yes">Yes</label>
|
2779 |
<input type="radio" name="sendemail" id="sendemail_no" value="0" <?php echo (!$row->sendemail) ? "checked" : ""; ?> /><label for="sendemail_no">No</label>
|
2780 |
</td>
|
2788 |
<label for="mail">Email to send submissions to</label>
|
2789 |
</td>
|
2790 |
<td class="fm_options_value">
|
2791 |
+
<input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
|
2792 |
+
<input type="hidden" id="mail" name="mail" value="<?php echo $row->mail . ($row->mail && (substr($row->mail, -1) != ',') ? ',' : ''); ?>" />
|
2793 |
+
<img src="<?php echo WD_FMC_URL . '/images/add.png'; ?>"
|
2794 |
+
style="vertical-align: middle; cursor: pointer;"
|
2795 |
+
title="Add more emails"
|
2796 |
+
onclick="if (spider_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_FMC_URL; ?>')" />
|
2797 |
+
<div id="cfm_mail_div">
|
2798 |
+
<?php
|
2799 |
+
$mail_array = explode(',', $row->mail);
|
2800 |
+
foreach ($mail_array as $mail) {
|
2801 |
+
if ($mail && $mail != ',') {
|
2802 |
+
?>
|
2803 |
+
<div class="fm_mail_input">
|
2804 |
+
<?php echo $mail; ?>
|
2805 |
+
<img src="<?php echo WD_FMC_URL; ?>/images/delete.png" class="fm_delete_img" onclick="fm_delete_mail(this, '<?php echo $mail; ?>')" title="Delete Email" />
|
2806 |
+
</div>
|
2807 |
+
<?php
|
2808 |
+
}
|
2809 |
+
}
|
2810 |
+
?>
|
2811 |
+
</div>
|
2812 |
+
|
2813 |
+
|
2814 |
+
|
2815 |
+
|
2816 |
</td>
|
2817 |
</tr>
|
2818 |
<tr valign="top">
|
2839 |
<input type="radio" id="other" name="from_mail" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
|
2840 |
<label for="other">Other</label>
|
2841 |
</div>
|
2842 |
+
<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 : ''; ?>" />
|
2843 |
</td>
|
2844 |
</tr>
|
2845 |
<tr valign="top">
|
2847 |
<label for="from_name">From Name</label>
|
2848 |
</td>
|
2849 |
<td class="fm_options_value">
|
2850 |
+
<input type="text" id="from_name" name="from_name" value="<?php echo $row->from_name; ?>" style="width: 230px;" />
|
2851 |
+
<img src="<?php echo WD_FMC_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_labels').style.display='block';" style="cursor: pointer; vertical-align: middle; display:inline-block; margin:0px; float:none;">
|
2852 |
<?php
|
2853 |
$choise = "document.getElementById('from_name')";
|
2854 |
echo '<div style="position:relative; top:-3px;"><div id="mail_from_labels" class="email_labels" style="display:none;">';
|
2898 |
<input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
|
2899 |
<label for="other1">Other</label>
|
2900 |
</div>
|
2901 |
+
<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 : ''; ?>" />
|
2902 |
</td>
|
2903 |
</tr>
|
2904 |
<tr valign="top">
|
2906 |
<label> CC: </label>
|
2907 |
</td>
|
2908 |
<td class="fm_options_value">
|
2909 |
+
<input type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc ?>" style="width:250px;" />
|
2910 |
</td>
|
2911 |
</tr>
|
2912 |
<tr valign="top">
|
2914 |
<label> BCC: </label>
|
2915 |
</td>
|
2916 |
<td class="fm_options_value">
|
2917 |
+
<input type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc ?>" style="width:250px;" />
|
2918 |
</td>
|
2919 |
</tr>
|
2920 |
<tr valign="top">
|
2922 |
<label> Subject: </label>
|
2923 |
</td>
|
2924 |
<td class="fm_options_value">
|
2925 |
+
<input type="text" id="mail_subject" name="mail_subject" value="<?php echo $row->mail_subject ?>" style="width:230px;" />
|
2926 |
+
<img src="<?php echo WD_FMC_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_labels').style.display='block';" style="cursor: pointer; vertical-align: middle; display:inline-block; margin:0px; float:none;">
|
2927 |
<?php
|
2928 |
$choise = "document.getElementById('mail_subject')";
|
2929 |
echo '<div style="position:relative; top:-3px;"><div id="mail_subject_labels" class="email_labels" style="display:none;">';
|
3036 |
<label for="mail_from_user">Email From</label>
|
3037 |
</td>
|
3038 |
<td class="fm_options_value">
|
3039 |
+
<input type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
|
3040 |
</td>
|
3041 |
</tr>
|
3042 |
<tr valign="top">
|
3044 |
<label for="mail_from_name_user">From Name</label>
|
3045 |
</td>
|
3046 |
<td class="fm_options_value">
|
3047 |
+
<input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 230px;"/>
|
3048 |
+
<img src="<?php echo WD_FMC_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_name_user_labels').style.display='block';" style="cursor: pointer; vertical-align: middle; display:inline-block; margin:0px; float:none;">
|
3049 |
<?php
|
3050 |
$choise = "document.getElementById('mail_from_name_user')";
|
3051 |
echo '<div style="position:relative; top:-3px;"><div id="mail_from_name_user_labels" class="email_labels" style="display:none;">';
|
3076 |
<label for="reply_to_user">Reply to<br />(if different from "Email Form")</label>
|
3077 |
</td>
|
3078 |
<td class="fm_options_value">
|
3079 |
+
<input type="text" id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width:250px;"/>
|
3080 |
</td>
|
3081 |
</tr>
|
3082 |
<tr valign="top">
|
3084 |
<label> CC: </label>
|
3085 |
</td>
|
3086 |
<td class="fm_options_value">
|
3087 |
+
<input type="text" id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user ?>" style="width:250px;" />
|
3088 |
</td>
|
3089 |
</tr>
|
3090 |
<tr valign="top">
|
3092 |
<label> BCC: </label>
|
3093 |
</td>
|
3094 |
<td class="fm_options_value">
|
3095 |
+
<input type="text" id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user ?>" style="width:250px;" />
|
3096 |
</td>
|
3097 |
</tr>
|
3098 |
<tr valign="top">
|
3100 |
<label> Subject: </label>
|
3101 |
</td>
|
3102 |
<td class="fm_options_value">
|
3103 |
+
<input type="text" id="mail_subject_user" name="mail_subject_user" value="<?php echo $row->mail_subject_user ?>" style="width:230px;" />
|
3104 |
+
<img src="<?php echo WD_FMC_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_user_labels').style.display='block';" style="cursor: pointer; vertical-align: middle; display:inline-block; margin:0px; float:none;">
|
3105 |
<?php
|
3106 |
$choise = "document.getElementById('mail_subject_user')";
|
3107 |
echo '<div style="position:relative; top:-3px;"><div id="mail_subject_user_labels" class="email_labels" style="display:none;">';
|
3456 |
?>
|
3457 |
<div>
|
3458 |
<span style="font-size:13px;">Add Condition<span/>
|
3459 |
+
<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;">
|
3460 |
</div>
|
3461 |
<?php
|
3462 |
|
admin/views/FMViewSubmissions_fmc.php
CHANGED
@@ -50,6 +50,7 @@ class FMViewSubmissions_fmc {
|
|
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_fmc {
|
|
286 |
<span class="sorting-indicator"></span>
|
287 |
</a>
|
288 |
</th>
|
289 |
-
<th scope="col" id="submitterip_fc" class="
|
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_fmc {
|
|
356 |
</tr>
|
357 |
</table>
|
358 |
</th>
|
359 |
-
<th class="
|
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_fmc {
|
|
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_FMC_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_fmc {
|
|
461 |
spider_form_submit(event, 'admin_form');" ><?php echo $data->date ;?>
|
462 |
</a>
|
463 |
</td>
|
464 |
-
<td class="
|
465 |
-
<a
|
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_fmc', '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++) {
|
contact-form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Contact 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.
|
7 |
* Author: http://web-dorado.com/
|
8 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
*/
|
@@ -64,6 +64,7 @@ add_action('wp_ajax_nopriv_formcontactwdcaptcha', 'form_maker_ajax_cfm'); // Gen
|
|
64 |
add_action('wp_ajax_fromeditcountryinpopup_fmc', 'form_maker_ajax_cfm'); // Open country list.
|
65 |
add_action('wp_ajax_product_option_fmc', 'form_maker_ajax_cfm'); // Open product options on add paypal field.
|
66 |
add_action('wp_ajax_frommapeditinpopup_fmc', 'form_maker_ajax_cfm'); // Open map in submissions.
|
|
|
67 |
add_action('wp_ajax_show_matrix_fmc', 'form_maker_ajax_cfm'); // Edit matrix in submissions.
|
68 |
add_action('wp_ajax_FormMakerEditCSS_fmc', 'form_maker_ajax_cfm'); // Edit css from form options.
|
69 |
|
@@ -180,7 +181,7 @@ if (class_exists('WP_Widget')) {
|
|
180 |
// Activate plugin.
|
181 |
function form_maker_activate_cfm() {
|
182 |
$version = get_option("wd_form_maker_version");
|
183 |
-
$new_version = '1.7.
|
184 |
if (!$version) {
|
185 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
186 |
global $wpdb;
|
3 |
* Plugin Name: Contact 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 |
*/
|
64 |
add_action('wp_ajax_fromeditcountryinpopup_fmc', 'form_maker_ajax_cfm'); // Open country list.
|
65 |
add_action('wp_ajax_product_option_fmc', 'form_maker_ajax_cfm'); // Open product options on add paypal field.
|
66 |
add_action('wp_ajax_frommapeditinpopup_fmc', 'form_maker_ajax_cfm'); // Open map in submissions.
|
67 |
+
add_action('wp_ajax_fromipinfoinpopup_fmc', 'form_maker_ajax_cfm'); // Open ip in submissions.
|
68 |
add_action('wp_ajax_show_matrix_fmc', 'form_maker_ajax_cfm'); // Edit matrix in submissions.
|
69 |
add_action('wp_ajax_FormMakerEditCSS_fmc', 'form_maker_ajax_cfm'); // Edit css from form options.
|
70 |
|
181 |
// Activate plugin.
|
182 |
function form_maker_activate_cfm() {
|
183 |
$version = get_option("wd_form_maker_version");
|
184 |
+
$new_version = '1.7.16';
|
185 |
if (!$version) {
|
186 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
187 |
global $wpdb;
|
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
@@ -114,6 +114,9 @@ table.admintable td.paramlist_key {
|
|
114 |
text-align: right;
|
115 |
width: 200px;
|
116 |
}
|
|
|
|
|
|
|
117 |
.submenu-box {
|
118 |
background-color: #F4F4F4;
|
119 |
border: 1px solid #CCCCCC;
|
@@ -596,3 +599,14 @@ div.wd_preview a {
|
|
596 |
border: 1px solid #cccccc !important;
|
597 |
padding: 15px;
|
598 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
text-align: right;
|
115 |
width: 200px;
|
116 |
}
|
117 |
+
table.admintable {
|
118 |
+
width: 100%;
|
119 |
+
}
|
120 |
.submenu-box {
|
121 |
background-color: #F4F4F4;
|
122 |
border: 1px solid #CCCCCC;
|
599 |
border: 1px solid #cccccc !important;
|
600 |
padding: 15px;
|
601 |
}
|
602 |
+
|
603 |
+
.fm_options_label {
|
604 |
+
width: 170px;
|
605 |
+
}
|
606 |
+
|
607 |
+
.fm_delete_img {
|
608 |
+
cursor: pointer;
|
609 |
+
margin: 0 0 0 2px;
|
610 |
+
padding: 0;
|
611 |
+
vertical-align: middle;
|
612 |
+
}
|
js/form_maker_manage.js
CHANGED
@@ -347,7 +347,7 @@ function refresh_old() {
|
|
347 |
}
|
348 |
|
349 |
function form_maker_options_tabs(id) {
|
350 |
-
if (spider_check_email('
|
351 |
return false;
|
352 |
}
|
353 |
jQuery("#fieldset_id").val(id);
|
@@ -942,3 +942,19 @@ function check_isnum_point(e) {
|
|
942 |
}
|
943 |
return true;
|
944 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
}
|
348 |
|
349 |
function form_maker_options_tabs(id) {
|
350 |
+
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')) {
|
351 |
return false;
|
352 |
}
|
353 |
jQuery("#fieldset_id").val(id);
|
942 |
}
|
943 |
return true;
|
944 |
}
|
945 |
+
|
946 |
+
function cfm_create_input(toAdd_id, value_id, parent_id, cfm_url) {
|
947 |
+
var value = jQuery("#" + value_id).val();
|
948 |
+
if (value) {
|
949 |
+
jQuery("#" + value_id).attr("style", "width: 250px;");
|
950 |
+
var mail_div = jQuery("<div>").attr("class", "fm_mail_div").prependTo("#" + parent_id).text(value);
|
951 |
+
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);
|
952 |
+
jQuery("#" + value_id).val("");
|
953 |
+
jQuery("#" + toAdd_id).val(jQuery("#" + toAdd_id).val() + value + ",");
|
954 |
+
}
|
955 |
+
}
|
956 |
+
|
957 |
+
function fm_delete_mail(img, value) {
|
958 |
+
jQuery(img).parent().remove();
|
959 |
+
jQuery("#mail").val(jQuery("#mail").val().replace(value + ',', ''));
|
960 |
+
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Contact Form Maker ===
|
2 |
Contributors: webdorado
|
3 |
Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.html
|
4 |
-
Tags: form, forms, contact form, contact forms, contact form plugin,contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form,Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms,contact us
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
1 |
=== Contact Form Maker ===
|
2 |
Contributors: webdorado
|
3 |
Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.html
|
4 |
+
Tags: form, forms, contact form, contact forms, contact form plugin,contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form,Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms, contact us
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
+
Stable tag: 1.7.16
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
session/index.html
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<html><body bgcolor="#FFFFFF"></body></html>
|
|