Version Description
- Escaping data
Download this release
Release Info
Developer | osamaesh |
Plugin | SEO Redirection Plugin |
Version | 7.5 |
Comparing to | |
See all releases |
Code changes from version 7.4 to 7.5
- cf/lib/cf.jforms.class.php +2 -2
- cf/lib/forms/cf.bcheckbox_option.class.php +11 -7
- cf/lib/forms/cf.dropdownlist.class.php +4 -4
- common/controls/cf_checkoption.php +1 -1
- common/controls/cf_datemenu.php +11 -7
- common/controls/cf_tab.php +2 -2
- common/controls/datagrid.class.php +4 -4
- common/controls/pagination.class.php +1 -1
- custom/lib/cf.SR_redirect_cache.class.php +1 -1
- options/help.php +6 -6
- options/option_export_import.php +17 -17
- options/option_page_404.php +9 -9
- options/option_page_custome_redirection.php +3 -3
- options/option_page_custome_redirection_list.php +36 -36
- options/option_page_goptions.php +38 -38
- options/option_page_history.php +15 -15
- options/option_page_post_redirection_list.php +11 -11
- options/premium.php +18 -18
- readme.txt +5 -1
- seo-redirection.php +41 -98
cf/lib/cf.jforms.class.php
CHANGED
@@ -88,8 +88,8 @@ if(!class_exists('jforms')) {
|
|
88 |
|
89 |
echo "<script>
|
90 |
jQuery(document).ready(function($){";
|
91 |
-
echo $functions;
|
92 |
-
echo $scripts;
|
93 |
echo "\n
|
94 |
});
|
95 |
</script>";
|
88 |
|
89 |
echo "<script>
|
90 |
jQuery(document).ready(function($){";
|
91 |
+
echo esc_js($functions);
|
92 |
+
echo esc_js($scripts);
|
93 |
echo "\n
|
94 |
});
|
95 |
</script>";
|
cf/lib/forms/cf.bcheckbox_option.class.php
CHANGED
@@ -138,11 +138,15 @@ if(!class_exists('bcheckbox_option')){
|
|
138 |
}
|
139 |
echo "<div style=\"margin-top: 3px\">";
|
140 |
$this->create_grouped_option($this->list_nodes[$i]['name'],$checked);
|
141 |
-
|
|
|
|
|
|
|
|
|
142 |
}
|
143 |
}else
|
144 |
{
|
145 |
-
echo __("You have no lists to create!",'
|
146 |
}
|
147 |
}
|
148 |
|
@@ -154,7 +158,7 @@ if(!class_exists('bcheckbox_option')){
|
|
154 |
$this->create_option($this->get_group_name(),$value,$checked);
|
155 |
}else
|
156 |
{
|
157 |
-
echo __("To use this function you must previously used set_group()",'
|
158 |
}
|
159 |
}
|
160 |
|
@@ -166,7 +170,7 @@ if(!class_exists('bcheckbox_option')){
|
|
166 |
$this->create_option($this->get_group_name(),$value,$checked,'bcheckbox_check_unckeck_all');
|
167 |
}else
|
168 |
{
|
169 |
-
echo __("To use this function you must previously used set_group()",'
|
170 |
}
|
171 |
}
|
172 |
|
@@ -179,7 +183,7 @@ if(!class_exists('bcheckbox_option')){
|
|
179 |
<span class=\"glyphicon glyphicon-check\"></span> $title</a>";
|
180 |
}else
|
181 |
{
|
182 |
-
echo __("To use this function you must previously used set_group()",'
|
183 |
}
|
184 |
}
|
185 |
|
@@ -189,11 +193,11 @@ if(!class_exists('bcheckbox_option')){
|
|
189 |
{
|
190 |
if($this->is_group())
|
191 |
{
|
192 |
-
echo "<a
|
193 |
<span class=\"glyphicon glyphicon-unchecked\"></span> $title</a>";
|
194 |
}else
|
195 |
{
|
196 |
-
echo __("To use this function you must previously used set_group()",'
|
197 |
}
|
198 |
}
|
199 |
|
138 |
}
|
139 |
echo "<div style=\"margin-top: 3px\">";
|
140 |
$this->create_grouped_option($this->list_nodes[$i]['name'],$checked);
|
141 |
+
|
142 |
+
$list_nodes_title = esc_html($this->list_nodes[$i]['title']);
|
143 |
+
|
144 |
+
|
145 |
+
echo " {$list_nodes_title}</div>";
|
146 |
}
|
147 |
}else
|
148 |
{
|
149 |
+
echo __("You have no lists to create!",'seo-redirection');
|
150 |
}
|
151 |
}
|
152 |
|
158 |
$this->create_option($this->get_group_name(),$value,$checked);
|
159 |
}else
|
160 |
{
|
161 |
+
echo __("To use this function you must previously used set_group()",'seo-redirection');
|
162 |
}
|
163 |
}
|
164 |
|
170 |
$this->create_option($this->get_group_name(),$value,$checked,'bcheckbox_check_unckeck_all');
|
171 |
}else
|
172 |
{
|
173 |
+
echo __("To use this function you must previously used set_group()",'seo-redirection');
|
174 |
}
|
175 |
}
|
176 |
|
183 |
<span class=\"glyphicon glyphicon-check\"></span> $title</a>";
|
184 |
}else
|
185 |
{
|
186 |
+
echo __("To use this function you must previously used set_group()",'seo-redirection');
|
187 |
}
|
188 |
}
|
189 |
|
193 |
{
|
194 |
if($this->is_group())
|
195 |
{
|
196 |
+
echo "<a ".esc_js($this->get_check_uncheck_attribute($this->get_group_name()))." class=\"btn btn-".esc_attr($this->get_style())." btn-xs ".esc_attr($this->get_uncheck_all_css_class())."\">
|
197 |
<span class=\"glyphicon glyphicon-unchecked\"></span> $title</a>";
|
198 |
}else
|
199 |
{
|
200 |
+
echo __("To use this function you must previously used set_group()",'seo-redirection');
|
201 |
}
|
202 |
}
|
203 |
|
cf/lib/forms/cf.dropdownlist.class.php
CHANGED
@@ -45,10 +45,10 @@ class dropdown_list{
|
|
45 |
{
|
46 |
if($data_icon!='')
|
47 |
{
|
48 |
-
$this->options=$this->options. "<option data-icon='$data_icon' value='$value'
|
49 |
}else
|
50 |
{
|
51 |
-
$this->options=$this->options. "<option value='$value'
|
52 |
}
|
53 |
}
|
54 |
|
@@ -61,11 +61,11 @@ class dropdown_list{
|
|
61 |
{
|
62 |
if($this->onchange == '')
|
63 |
{
|
64 |
-
echo "<select data-size='5' class='selectpicker' name='" . $this->name. "' id='" . $this->name. "' >" . $this->options . "</select>";
|
65 |
|
66 |
}else
|
67 |
{
|
68 |
-
echo "<select data-size='5' class='selectpicker' name='" . $this->name. "' id='" . $this->name. "' onchange='" . $this->onchange . "' >" . $this->options . "</select>";
|
69 |
}
|
70 |
|
71 |
if(!is_null($jforms))
|
45 |
{
|
46 |
if($data_icon!='')
|
47 |
{
|
48 |
+
$this->options=$this->options. "<option data-icon='".esc_attr($data_icon)."' value='".esc_attr($value)."'>".esc_html($name)."</option>";
|
49 |
}else
|
50 |
{
|
51 |
+
$this->options=$this->options. "<option value='".esc_attr($value)."'>".esc_html($name)."</option>";
|
52 |
}
|
53 |
}
|
54 |
|
61 |
{
|
62 |
if($this->onchange == '')
|
63 |
{
|
64 |
+
echo "<select data-size='5' class='selectpicker' name='" . esc_attr($this->name). "' id='" . esc_attr($this->name). "' >" . $this->options . "</select>";
|
65 |
|
66 |
}else
|
67 |
{
|
68 |
+
echo "<select data-size='5' class='selectpicker' name='" . esc_attr($this->name). "' id='" . esc_attr($this->name). "' onchange='" . esc_attr($this->onchange) . "' >" . $this->options . "</select>";
|
69 |
}
|
70 |
|
71 |
if(!is_null($jforms))
|
common/controls/cf_checkoption.php
CHANGED
@@ -38,7 +38,7 @@ var $name;
|
|
38 |
if(isset($check) && $check==$value)
|
39 |
$checked="checked=checked";
|
40 |
|
41 |
-
echo '<input type="checkbox" name="' . $name . '" id="' . $name . '" ' . $checked . ' value="1">';
|
42 |
|
43 |
}
|
44 |
|
38 |
if(isset($check) && $check==$value)
|
39 |
$checked="checked=checked";
|
40 |
|
41 |
+
echo '<input type="checkbox" name="' . esc_attr($name) . '" id="' . esc_attr($name) . '" ' . esc_attr($checked) . ' value="1">';
|
42 |
|
43 |
}
|
44 |
|
common/controls/cf_datemenu.php
CHANGED
@@ -57,18 +57,22 @@ function __construct()
|
|
57 |
|
58 |
function date_print($name,$value="")
|
59 |
|
60 |
-
|
61 |
|
62 |
if($value=="")
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
66 |
else
|
67 |
-
|
68 |
-
|
|
|
|
|
69 |
|
70 |
}
|
71 |
-
|
72 |
|
73 |
|
74 |
|
57 |
|
58 |
function date_print($name,$value="")
|
59 |
|
60 |
+
{
|
61 |
|
62 |
if($value=="")
|
63 |
+
{
|
64 |
+
?>
|
65 |
+
<script>DateInput("<?php echo esc_js($name)?>", true, 'YYYY-MM-DD')</script>
|
66 |
+
<?php
|
67 |
+
}
|
68 |
else
|
69 |
+
{
|
70 |
+
?>
|
71 |
+
<script>DateInput("<?php echo esc_js($name)?>", true, 'YYYY-MM-DD',"<?php echo esc_js($value)?>")</script>
|
72 |
+
<?php
|
73 |
|
74 |
}
|
75 |
+
}
|
76 |
|
77 |
|
78 |
|
common/controls/cf_tab.php
CHANGED
@@ -84,12 +84,12 @@ var $ignore_parameters='';
|
|
84 |
for($i=0;$i<$this->tabs_count();$i++)
|
85 |
{
|
86 |
if($this->tabs[$i]['num']==$tab_index){
|
87 |
-
echo '<li class="active"><a href="' . $options_path . '&' . $this->parameter .'=' . $this->tabs[$i]['num'] . '">' . $this->tabs[$i]['title'] . '</a></li>';
|
88 |
$num_index=$i;
|
89 |
}
|
90 |
else
|
91 |
{
|
92 |
-
echo '<li><a href="' . $options_path . '&' . $this->parameter .'=' . $this->tabs[$i]['num'] . '">' . $this->tabs[$i]['title'] . '</a></li>';
|
93 |
}
|
94 |
}
|
95 |
|
84 |
for($i=0;$i<$this->tabs_count();$i++)
|
85 |
{
|
86 |
if($this->tabs[$i]['num']==$tab_index){
|
87 |
+
echo '<li class="active"><a href="' . esc_url($options_path . '&' . $this->parameter .'=' . $this->tabs[$i]['num']) . '">' . esc_html(strip_tags($this->tabs[$i]['title'])) . '</a></li>';
|
88 |
$num_index=$i;
|
89 |
}
|
90 |
else
|
91 |
{
|
92 |
+
echo '<li><a href="' . esc_url($options_path . '&' . $this->parameter .'=' . $this->tabs[$i]['num']) . '">' . esc_html(strip_tags($this->tabs[$i]['title'])) . '</a></li>';
|
93 |
}
|
94 |
}
|
95 |
|
common/controls/datagrid.class.php
CHANGED
@@ -327,7 +327,7 @@ class datagrid
|
|
327 |
{
|
328 |
if($this->is_html_attr($attr))
|
329 |
{
|
330 |
-
$attrs = $attrs . " " . $attr . "=" . "\"" . $value . "\"";
|
331 |
}
|
332 |
}
|
333 |
return $attrs;
|
@@ -511,7 +511,7 @@ class datagrid
|
|
511 |
$this->show_table();
|
512 |
if(!array_key_exists('data',$this->body) || count($this->body['data'])==0)
|
513 |
{
|
514 |
-
echo '<div'. $this->get_attrs($this->table) .'><p align="center">' . $this->no_data_text . '</p></div>';
|
515 |
|
516 |
}
|
517 |
if($this->is_paged())
|
@@ -602,7 +602,7 @@ class datagrid
|
|
602 |
if(array_key_exists('rows',$handler))
|
603 |
$trattr=$this->get_attrs($handler['rows']);
|
604 |
|
605 |
-
echo '<tr'.
|
606 |
for($i=0;$i<$col_limit;$i++)
|
607 |
{
|
608 |
|
@@ -614,7 +614,7 @@ class datagrid
|
|
614 |
$tdattr='';
|
615 |
|
616 |
|
617 |
-
echo '<td'
|
618 |
}
|
619 |
echo '</tr>';
|
620 |
|
327 |
{
|
328 |
if($this->is_html_attr($attr))
|
329 |
{
|
330 |
+
$attrs = $attrs . " " . $attr . "=" . "\"" . esc_attr($value) . "\"";
|
331 |
}
|
332 |
}
|
333 |
return $attrs;
|
511 |
$this->show_table();
|
512 |
if(!array_key_exists('data',$this->body) || count($this->body['data'])==0)
|
513 |
{
|
514 |
+
echo '<div'. $this->get_attrs($this->table) .'><p align="center">' . esc_html($this->no_data_text) . '</p></div>';
|
515 |
|
516 |
}
|
517 |
if($this->is_paged())
|
602 |
if(array_key_exists('rows',$handler))
|
603 |
$trattr=$this->get_attrs($handler['rows']);
|
604 |
|
605 |
+
echo '<tr'. $trattr .'>';
|
606 |
for($i=0;$i<$col_limit;$i++)
|
607 |
{
|
608 |
|
614 |
$tdattr='';
|
615 |
|
616 |
|
617 |
+
echo '<td' .$tdattr . '>' . sprintf('%s',$row[$i]) . '</td>';
|
618 |
}
|
619 |
echo '</tr>';
|
620 |
|
common/controls/pagination.class.php
CHANGED
@@ -223,7 +223,7 @@ private function pagination_header_html()
|
|
223 |
$options= $options . ' align="' . $this->alignment . '" ';
|
224 |
|
225 |
|
226 |
-
echo '<div style="text-align:right;" class="pagination tablenav-page" ' . $options . ' >';
|
227 |
|
228 |
|
229 |
}
|
223 |
$options= $options . ' align="' . $this->alignment . '" ';
|
224 |
|
225 |
|
226 |
+
echo '<div style="text-align:right;" class="pagination tablenav-page" ' . esc_attr($options) . ' >';
|
227 |
|
228 |
|
229 |
}
|
custom/lib/cf.SR_redirect_cache.class.php
CHANGED
@@ -188,7 +188,7 @@ if(!class_exists('clogica_SR_redirect_cache')){
|
|
188 |
$table_name = $table_prefix."WP_SEO_Cache";
|
189 |
$wpdb->query("delete * from $table_name");
|
190 |
if(self::show_notifications() && $force!=2)
|
191 |
-
echo "<b>".__("All cached redirects are deleted!",'
|
192 |
}
|
193 |
}
|
194 |
|
188 |
$table_name = $table_prefix."WP_SEO_Cache";
|
189 |
$wpdb->query("delete * from $table_name");
|
190 |
if(self::show_notifications() && $force!=2)
|
191 |
+
echo "<b>".__("All cached redirects are deleted!",'seo-redirection')."</b>";
|
192 |
}
|
193 |
}
|
194 |
|
options/help.php
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
$imgpath= $util->get_plugin_url().'custom/images/';
|
4 |
?>
|
5 |
-
<h2><img height="30px" src="<?php echo esc_url($imgpath) ?>help-icon.png"> <?php _e("Help Center","
|
6 |
<hr/>
|
7 |
<div class="row">
|
8 |
<div class="col-sm-12">
|
9 |
-
<p><?php _e('We recommend before contacting us and wait for reply, to explore the product page in our knowledge base, it contains many articles about how to use the plugin','
|
10 |
-
<b><?php _e("To go to the",'
|
11 |
<br/>
|
12 |
-
<h2 style="display: inline; color: #636465; font-size:24px"><b><?php _e("Open a new ticket?","
|
13 |
</div>
|
14 |
</div>
|
15 |
<div class="row">
|
@@ -19,9 +19,9 @@ $imgpath= $util->get_plugin_url().'custom/images/';
|
|
19 |
|
20 |
<div class="form-group">
|
21 |
<div class="col-sm-offset-1 col-sm-7">
|
22 |
-
<p><?php _e("Please provide as much details as possible so we can best assist you. To update a previously submitted ticket, Please login.",'
|
23 |
|
24 |
-
<button class="button-secondary" type="button" name="new_ticket" target="newwindow" onclick="window.open('http://www.clogica.com/support-center','_blank')" value="btn_send"><?php _e("Open a new ticket now","
|
25 |
</div>
|
26 |
</div>
|
27 |
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
$imgpath= $util->get_plugin_url().'custom/images/';
|
4 |
?>
|
5 |
+
<h2><img height="30px" src="<?php echo esc_url($imgpath) ?>help-icon.png"> <?php _e("Help Center","seo-redirection") ?>;</h2>
|
6 |
<hr/>
|
7 |
<div class="row">
|
8 |
<div class="col-sm-12">
|
9 |
+
<p><?php _e('We recommend before contacting us and wait for reply, to explore the product page in our knowledge base, it contains many articles about how to use the plugin','seo-redirection') ?><br/>
|
10 |
+
<b><?php _e("To go to the",'seo-redirection') ?> <a target="_blank" href="http://www.clogica.com/kb/topics/seo-redirection-premium"><?php _e("knowledge base click here","seo-redirection") ?></a></b></p>
|
11 |
<br/>
|
12 |
+
<h2 style="display: inline; color: #636465; font-size:24px"><b><?php _e("Open a new ticket?","seo-redirection") ?></b></h2>
|
13 |
</div>
|
14 |
</div>
|
15 |
<div class="row">
|
19 |
|
20 |
<div class="form-group">
|
21 |
<div class="col-sm-offset-1 col-sm-7">
|
22 |
+
<p><?php _e("Please provide as much details as possible so we can best assist you. To update a previously submitted ticket, Please login.",'seo-redirection') ?></p>
|
23 |
|
24 |
+
<button class="button-secondary" type="button" name="new_ticket" target="newwindow" onclick="window.open('http://www.clogica.com/support-center','_blank')" value="btn_send"><?php _e("Open a new ticket now","seo-redirection") ?></button>
|
25 |
</div>
|
26 |
</div>
|
27 |
|
options/option_export_import.php
CHANGED
@@ -86,7 +86,7 @@ if ( isset($_POST['btn_import']) && $_POST['btn_import'] != '') {
|
|
86 |
if ($movefile && !isset($movefile['error'])) {
|
87 |
|
88 |
|
89 |
-
WPSR_echo_message(__("File is valid, and was successfully uploaded.", '
|
90 |
$results = WPSR_csv_arr($movefile['file']);
|
91 |
|
92 |
// start add to database ----------------------------------
|
@@ -193,60 +193,60 @@ if ( isset($_POST['btn_import']) && $_POST['btn_import'] != '') {
|
|
193 |
|
194 |
|
195 |
unlink($movefile['file']);
|
196 |
-
WPSR_echo_message(__("File is deleted!", '
|
197 |
$SR_redirect_cache->free_cache();
|
198 |
} else {
|
199 |
echo $movefile['error'];
|
200 |
}
|
201 |
} else {
|
202 |
-
WPSR_echo_message(__("Please choose a CSV file", '
|
203 |
}
|
204 |
} else {
|
205 |
-
WPSR_echo_message(__("You need to select a file to upload it!", '
|
206 |
}
|
207 |
}
|
208 |
?>
|
209 |
|
210 |
|
211 |
|
212 |
-
<h3><?php _e("Import Redirects", '
|
213 |
|
214 |
<form id="import" name="import" enctype='multipart/form-data' action="<?php echo WPSR_get_current_parameters(array("add", "edit", "del")); ?>" method="post" class="form-horizontal" role="form" data-toggle="validator">
|
215 |
|
216 |
<table cellpadding="10">
|
217 |
<tr>
|
218 |
-
<td><label class="control-label col-sm-2" for="import_file_type"><?php _e("File Type:", '
|
219 |
<td>
|
220 |
<?php
|
221 |
$drop = new dropdown_list('import_file_type');
|
222 |
-
$drop->add(__('CSV', '
|
223 |
$drop->run($SR_jforms);
|
224 |
?>
|
225 |
</td>
|
226 |
</tr>
|
227 |
<tr>
|
228 |
-
<td><label class="control-label col-sm-2" for="file"><?php _e("Choose File:", '
|
229 |
<td>
|
230 |
<input class="btn btn-default btn-sm" type="file" accept="text/csv" id="import_file" name="import_file" required/>
|
231 |
</td>
|
232 |
</tr>
|
233 |
<tr>
|
234 |
-
<td><label class="control-label col-sm-2" for="Rule"><?php _e("Column Titles:", '
|
235 |
<td>
|
236 |
<?php
|
237 |
$check = new bcheckbox_option();
|
238 |
$check->create_single_option('col_names', 1);
|
239 |
-
echo __(" Skip the first row of the file (if there is a table header)", '
|
240 |
?>
|
241 |
</td>
|
242 |
</tr>
|
243 |
<tr>
|
244 |
-
<td> <label class="control-label col-sm-2" for="Rule"><?php _e("Import Rule:", '
|
245 |
<td>
|
246 |
<?php
|
247 |
$drop = new dropdown_list('rule');
|
248 |
-
$drop->add(__('Skip the existing redirects with the same source', '
|
249 |
-
$drop->add(__('Replace the existing redirects with the same source', '
|
250 |
$drop->run($SR_jforms);
|
251 |
?>
|
252 |
</td>
|
@@ -257,12 +257,12 @@ if ( isset($_POST['btn_import']) && $_POST['btn_import'] != '') {
|
|
257 |
<br>
|
258 |
<div class="form-group">
|
259 |
<div class="col-sm-offset-2 col-sm-12">
|
260 |
-
<button class="button" type="submit" name="btn_import" value="btn_import"><span style="padding-top: 3px;" class="dashicons dashicons-migrate"></span> <?php _e("Import", '
|
261 |
</div>
|
262 |
</div>
|
263 |
<br/>
|
264 |
<h3><a target="_blank" href="<?php echo WPSR_URL . 'custom/export/sample.csv' ?>">Sample Csv File</a></h3>
|
265 |
-
<div style="text-align: right"><?php _e("* Need Help?", '
|
266 |
<br/>
|
267 |
</form>
|
268 |
|
@@ -280,9 +280,9 @@ foreach ( $plugins as $plugin )
|
|
280 |
$total = WPSR_getRedirectCount();
|
281 |
if($total > 0){
|
282 |
?>
|
283 |
-
<h3><?php _e("Import redirects from the redirection plugin", '
|
284 |
<div class="import_link_wrap">
|
285 |
-
<button type='button' data-toggle="modal" class="button" href="#" data-target="#import_modal" value="btn_import"><span style="margin-top: 3px;" class="dashicons dashicons-migrate"></span> <?php _e('Import Now','
|
286 |
</div>
|
287 |
<?php
|
288 |
}
|
86 |
if ($movefile && !isset($movefile['error'])) {
|
87 |
|
88 |
|
89 |
+
WPSR_echo_message(__("File is valid, and was successfully uploaded.", 'seo-redirection'));
|
90 |
$results = WPSR_csv_arr($movefile['file']);
|
91 |
|
92 |
// start add to database ----------------------------------
|
193 |
|
194 |
|
195 |
unlink($movefile['file']);
|
196 |
+
WPSR_echo_message(__("File is deleted!", 'seo-redirection'));
|
197 |
$SR_redirect_cache->free_cache();
|
198 |
} else {
|
199 |
echo $movefile['error'];
|
200 |
}
|
201 |
} else {
|
202 |
+
WPSR_echo_message(__("Please choose a CSV file", 'seo-redirection'), 'danger');
|
203 |
}
|
204 |
} else {
|
205 |
+
WPSR_echo_message(__("You need to select a file to upload it!", 'seo-redirection'), 'danger');
|
206 |
}
|
207 |
}
|
208 |
?>
|
209 |
|
210 |
|
211 |
|
212 |
+
<h3><?php _e("Import Redirects", 'seo-redirection'); ?></h3><hr/>
|
213 |
|
214 |
<form id="import" name="import" enctype='multipart/form-data' action="<?php echo WPSR_get_current_parameters(array("add", "edit", "del")); ?>" method="post" class="form-horizontal" role="form" data-toggle="validator">
|
215 |
|
216 |
<table cellpadding="10">
|
217 |
<tr>
|
218 |
+
<td><label class="control-label col-sm-2" for="import_file_type"><?php _e("File Type:", 'seo-redirection') ?></label></td>
|
219 |
<td>
|
220 |
<?php
|
221 |
$drop = new dropdown_list('import_file_type');
|
222 |
+
$drop->add(__('CSV', 'seo-redirection'), 'csv');
|
223 |
$drop->run($SR_jforms);
|
224 |
?>
|
225 |
</td>
|
226 |
</tr>
|
227 |
<tr>
|
228 |
+
<td><label class="control-label col-sm-2" for="file"><?php _e("Choose File:", 'seo-redirection'); ?></label></td>
|
229 |
<td>
|
230 |
<input class="btn btn-default btn-sm" type="file" accept="text/csv" id="import_file" name="import_file" required/>
|
231 |
</td>
|
232 |
</tr>
|
233 |
<tr>
|
234 |
+
<td><label class="control-label col-sm-2" for="Rule"><?php _e("Column Titles:", 'seo-redirection') ?> </label></td>
|
235 |
<td>
|
236 |
<?php
|
237 |
$check = new bcheckbox_option();
|
238 |
$check->create_single_option('col_names', 1);
|
239 |
+
echo __(" Skip the first row of the file (if there is a table header)", 'seo-redirection');
|
240 |
?>
|
241 |
</td>
|
242 |
</tr>
|
243 |
<tr>
|
244 |
+
<td> <label class="control-label col-sm-2" for="Rule"><?php _e("Import Rule:", 'seo-redirection'); ?></label></td>
|
245 |
<td>
|
246 |
<?php
|
247 |
$drop = new dropdown_list('rule');
|
248 |
+
$drop->add(__('Skip the existing redirects with the same source', 'seo-redirection'), 'skip');
|
249 |
+
$drop->add(__('Replace the existing redirects with the same source', 'seo-redirection'), 'replace');
|
250 |
$drop->run($SR_jforms);
|
251 |
?>
|
252 |
</td>
|
257 |
<br>
|
258 |
<div class="form-group">
|
259 |
<div class="col-sm-offset-2 col-sm-12">
|
260 |
+
<button class="button" type="submit" name="btn_import" value="btn_import"><span style="padding-top: 3px;" class="dashicons dashicons-migrate"></span> <?php _e("Import", 'seo-redirection') ?></button>
|
261 |
</div>
|
262 |
</div>
|
263 |
<br/>
|
264 |
<h3><a target="_blank" href="<?php echo WPSR_URL . 'custom/export/sample.csv' ?>">Sample Csv File</a></h3>
|
265 |
+
<div style="text-align: right"><?php _e("* Need Help?", 'seo-redirection'); ?> <a target="_blank" href="http://www.clogica.com/kb/topics/seo-redirection-premium/export-import"><?php _e("click here to see info about import and export", "seo-redirection"); ?></a></div>
|
266 |
<br/>
|
267 |
</form>
|
268 |
|
280 |
$total = WPSR_getRedirectCount();
|
281 |
if($total > 0){
|
282 |
?>
|
283 |
+
<h3><?php _e("Import redirects from the redirection plugin", 'seo-redirection') ?></h3><hr/>
|
284 |
<div class="import_link_wrap">
|
285 |
+
<button type='button' data-toggle="modal" class="button" href="#" data-target="#import_modal" value="btn_import"><span style="margin-top: 3px;" class="dashicons dashicons-migrate"></span> <?php _e('Import Now','seo-redirection'); ?></button>
|
286 |
</div>
|
287 |
<?php
|
288 |
}
|
options/option_page_404.php
CHANGED
@@ -61,7 +61,7 @@ function decodeHtmlCharCodes(str) {
|
|
61 |
function go_search(){
|
62 |
var sword = document.getElementById('search').value;
|
63 |
if(sword!=''){
|
64 |
-
var link = decodeHtmlCharCodes("<?php echo sprintf('%s', $WPSR_get_current_parameters_);?>")+"&search=" + sword;
|
65 |
window.location = link ;
|
66 |
}else
|
67 |
{
|
@@ -76,7 +76,7 @@ function go_del()
|
|
76 |
{
|
77 |
|
78 |
if (confirm('Are you sure you want to delete all 404 links?')) {
|
79 |
-
var goto_url = decodeHtmlCharCodes("<?php echo sprintf('%s', $WPSR_get_current_parameters_);?>");
|
80 |
|
81 |
window.location = goto_url+"&do_404_del=" + document.getElementById('del_404_option').value;
|
82 |
}
|
@@ -91,15 +91,15 @@ function go_del()
|
|
91 |
<table border="0" width="100%">
|
92 |
<tr>
|
93 |
<td align="left">
|
94 |
-
<input onkeyup="if (event.keyCode == 13) go_search();" style="height: 30px;" id="search" type="text" name="search" value="<?php echo htmlentities($util->get('search'))?>" size="40">
|
95 |
<a onclick="go_search()" href="#"><div class="search_link">Search</div></a>
|
96 |
<a href="<?php echo esc_url($util->WPSR_get_current_parameters('search'));?>"><div class="see_link">Show All</div></a>
|
97 |
</td>
|
98 |
<td align="right">
|
99 |
<select data-size="5" class="selectpicker" name="del_404_option" id="del_404_option">
|
100 |
-
<option value="1"><?php echo __('Keep this month','
|
101 |
-
<option value="2"><?php echo __('Keep last 3 months','
|
102 |
-
<option value="3"><?php echo __('Delete all','
|
103 |
</select>
|
104 |
<a onclick="go_del()" href="#"><div class="del_link">Delete</div></a>
|
105 |
</td>
|
@@ -146,13 +146,13 @@ function go_del()
|
|
146 |
|
147 |
if($util->get_option_value('ip_logging_status') == 0)
|
148 |
{
|
149 |
-
$grid->add_html_col('--',__('IP','
|
150 |
}else if($util->get_option_value('ip_logging_status') == 1)
|
151 |
{
|
152 |
-
$grid->add_html_col('<a target="_blank" href="https://tools.keycdn.com/geo?host={db_ip}">{db_ip}</a>',__('IP','
|
153 |
}else{
|
154 |
|
155 |
-
$grid->add_php_col(' db_ip ',__('IP','
|
156 |
}
|
157 |
|
158 |
|
61 |
function go_search(){
|
62 |
var sword = document.getElementById('search').value;
|
63 |
if(sword!=''){
|
64 |
+
var link = decodeHtmlCharCodes("<?php echo sprintf('%s', esc_js($WPSR_get_current_parameters_));?>")+"&search=" + sword;
|
65 |
window.location = link ;
|
66 |
}else
|
67 |
{
|
76 |
{
|
77 |
|
78 |
if (confirm('Are you sure you want to delete all 404 links?')) {
|
79 |
+
var goto_url = decodeHtmlCharCodes("<?php echo sprintf('%s', esc_js($WPSR_get_current_parameters_));?>");
|
80 |
|
81 |
window.location = goto_url+"&do_404_del=" + document.getElementById('del_404_option').value;
|
82 |
}
|
91 |
<table border="0" width="100%">
|
92 |
<tr>
|
93 |
<td align="left">
|
94 |
+
<input onkeyup="if (event.keyCode == 13) go_search();" style="height: 30px;" id="search" type="text" name="search" value="<?php echo htmlentities(esc_attr($util->get('search')))?>" size="40">
|
95 |
<a onclick="go_search()" href="#"><div class="search_link">Search</div></a>
|
96 |
<a href="<?php echo esc_url($util->WPSR_get_current_parameters('search'));?>"><div class="see_link">Show All</div></a>
|
97 |
</td>
|
98 |
<td align="right">
|
99 |
<select data-size="5" class="selectpicker" name="del_404_option" id="del_404_option">
|
100 |
+
<option value="1"><?php echo __('Keep this month','seo-redirection');?></option>
|
101 |
+
<option value="2"><?php echo __('Keep last 3 months','seo-redirection');?></option>
|
102 |
+
<option value="3"><?php echo __('Delete all','seo-redirection');?></option>
|
103 |
</select>
|
104 |
<a onclick="go_del()" href="#"><div class="del_link">Delete</div></a>
|
105 |
</td>
|
146 |
|
147 |
if($util->get_option_value('ip_logging_status') == 0)
|
148 |
{
|
149 |
+
$grid->add_html_col('--',__('IP','seo-redirection'));
|
150 |
}else if($util->get_option_value('ip_logging_status') == 1)
|
151 |
{
|
152 |
+
$grid->add_html_col('<a target="_blank" href="https://tools.keycdn.com/geo?host={db_ip}">{db_ip}</a>',__('IP','seo-redirection'));
|
153 |
}else{
|
154 |
|
155 |
+
$grid->add_php_col(' db_ip ',__('IP','seo-redirection'));
|
156 |
}
|
157 |
|
158 |
|
options/option_page_custome_redirection.php
CHANGED
@@ -83,13 +83,13 @@ if($redirect_from_type =='Folder')
|
|
83 |
$theurl = $wpdb->get_row($wpdb->prepare(" select count(ID) as cnt from $table_name where redirect_from=%s ",$redirect_from));
|
84 |
if($theurl->cnt >0)
|
85 |
{
|
86 |
-
$util->failure_option_msg(__("This URL",'
|
87 |
}else
|
88 |
{
|
89 |
|
90 |
|
91 |
if($redirect_from=='' || $redirect_to=='' || $redirect_type=='' ){
|
92 |
-
$util->failure_option_msg(__('Please input all required fields!','
|
93 |
}else
|
94 |
{
|
95 |
|
@@ -134,7 +134,7 @@ if($redirect_from_type =='Folder')
|
|
134 |
}
|
135 |
|
136 |
if($util->there_is_cache()!='')
|
137 |
-
$util->info_option_msg(__("You have a cache plugin installed",'
|
138 |
|
139 |
}
|
140 |
|
83 |
$theurl = $wpdb->get_row($wpdb->prepare(" select count(ID) as cnt from $table_name where redirect_from=%s ",$redirect_from));
|
84 |
if($theurl->cnt >0)
|
85 |
{
|
86 |
+
$util->failure_option_msg(__("This URL",'seo-redirection')." <b>'$redirect_from'</b>". __("is added previously!",'seo-redirection'));
|
87 |
}else
|
88 |
{
|
89 |
|
90 |
|
91 |
if($redirect_from=='' || $redirect_to=='' || $redirect_type=='' ){
|
92 |
+
$util->failure_option_msg(__('Please input all required fields!','seo-redirection'));
|
93 |
}else
|
94 |
{
|
95 |
|
134 |
}
|
135 |
|
136 |
if($util->there_is_cache()!='')
|
137 |
+
$util->info_option_msg(__("You have a cache plugin installed",'seo-redirection')." <b>'" . $util->there_is_cache() . "'</b>, ". __("you have to clear cache after any changes to get the changes reflected immediately! ",'seo-redirection'));
|
138 |
|
139 |
}
|
140 |
|
options/option_page_custome_redirection_list.php
CHANGED
@@ -9,7 +9,7 @@ if ($util->get('del') != '') {
|
|
9 |
$wpdb->query($wpdb->prepare(" delete from $table_name where ID=%d ", $delid));
|
10 |
|
11 |
if ($util->there_is_cache() != '')
|
12 |
-
$util->info_option_msg(__("You have a cache plugin installed", '
|
13 |
|
14 |
$SR_redirect_cache = new free_SR_redirect_cache();
|
15 |
$SR_redirect_cache->free_cache();
|
@@ -81,7 +81,7 @@ isset($_REQUEST['tab']) ? $url_op = WPSR_sanitize_text_or_array_field($_REQUEST[
|
|
81 |
window.location = url;
|
82 |
} else
|
83 |
{
|
84 |
-
alert('<?php _e("Please input any search words!", '
|
85 |
document.getElementById('search').focus();
|
86 |
}
|
87 |
|
@@ -100,35 +100,35 @@ isset($_REQUEST['tab']) ? $url_op = WPSR_sanitize_text_or_array_field($_REQUEST[
|
|
100 |
<form onsubmit="return check_from();" method="POST" id="myform" action="<?php echo esc_attr($util->WPSR_get_current_parameters(array('add', 'edit', 'page404'))); ?>">
|
101 |
<table class="cform" width="100%">
|
102 |
<tr>
|
103 |
-
<td class="label"><?php _e('Redirect status:', '
|
104 |
<td> <select size="1" name="enabled" id="enabled">
|
105 |
-
<option value="1"><?php _e('Enabled', '
|
106 |
-
<option value="0"><?php _e('Disabled', '
|
107 |
</select>
|
108 |
|
109 |
</td>
|
110 |
</tr>
|
111 |
<tr>
|
112 |
|
113 |
-
<td class="label"><?php _e('Redirect from:', '
|
114 |
<td>
|
115 |
<div id="rfrom_div">
|
116 |
<select onchange="redirect_from_type_change()" size="1" name="redirect_from_type" id="redirect_from_type">
|
117 |
-
<option value="Page"><?php _e('Page', '
|
118 |
-
<option value="Folder"><?php _e('Folder', '
|
119 |
-
<option value="Regex"><?php _e('Regex', '
|
120 |
</select>
|
121 |
-
<input onblur="check_redirect_from_all()" type="text" id="redirect_from" style="height: 40px;" placeholder="<?php _e("Redirect from", '
|
122 |
<span class="help-block"></span>
|
123 |
<select onchange="redirect_to_folder_settings_change()" size="1" name="redirect_from_folder_settings" id="redirect_from_folder_settings">
|
124 |
-
<option value="1"><?php _e('Only the folder', '
|
125 |
-
<option value="2"><?php _e("The folder and it's content", '
|
126 |
-
<option value="3"><?php _e("Only the folder's content", '
|
127 |
</select>
|
128 |
<br>
|
129 |
<select size="1" name="redirect_from_subfolders" id="redirect_from_subfolders" class="cmb2_select">
|
130 |
-
<option value="0"><?php _e("Include sub-folders", '
|
131 |
-
<option value="1"><?php _e("Do not include sub-folders", '
|
132 |
</select>
|
133 |
|
134 |
|
@@ -137,28 +137,28 @@ isset($_REQUEST['tab']) ? $url_op = WPSR_sanitize_text_or_array_field($_REQUEST[
|
|
137 |
</td>
|
138 |
</tr>
|
139 |
<tr>
|
140 |
-
<td class="label"><?php _e("Redirect to:", '
|
141 |
<td>
|
142 |
<select onchange="redirect_to_type_change()" size="1" class="cmb2_select" name="redirect_to_type" id="redirect_to_type">
|
143 |
-
<option value="Page"><?php _e("Page:", '
|
144 |
-
<option value="Folder"><?php _e("Folder", '
|
145 |
</select>
|
146 |
|
147 |
-
<input onblur="check_redirect_to()" type="text" id="redirect_to" placeholder="<?php _e("Redirect to", '
|
148 |
<span class="help-block"></span>
|
149 |
<select size="1" name="redirect_to_folder_settings" id="redirect_to_folder_settings">
|
150 |
-
<option value="1"><?php _e("Normal", '
|
151 |
-
<option value="2"><?php _e("Wild Card Redirect", '
|
152 |
</select>
|
153 |
</td>
|
154 |
</tr>
|
155 |
<tr>
|
156 |
-
<td class="label"><?php _e("Redirect type:", '
|
157 |
<td>
|
158 |
<select size="1" name="redirect_type" id="redirect_type">
|
159 |
-
<option value="301"><?php _e("301 (SEO)", '
|
160 |
-
<option value="302"><?php _e("302", '
|
161 |
-
<option value="307"><?php _e("307", '
|
162 |
</select>
|
163 |
<script type="text/javascript">
|
164 |
<?php
|
@@ -198,7 +198,7 @@ isset($_REQUEST['tab']) ? $url_op = WPSR_sanitize_text_or_array_field($_REQUEST[
|
|
198 |
</div>
|
199 |
<div class="modal-footer">
|
200 |
<?php
|
201 |
-
echo '<input class="button-primary" id="btnSave" type="button" value="' . __("Add New", "
|
202 |
?>
|
203 |
<input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce = wp_create_nonce('seoredirection'); ?>" />
|
204 |
<input type="hidden" id="edit" name="edit" value="<?php echo intval($util->get('edit')) ?>">
|
@@ -206,7 +206,7 @@ isset($_REQUEST['tab']) ? $url_op = WPSR_sanitize_text_or_array_field($_REQUEST[
|
|
206 |
<input type="hidden" id="edit_exist" name="edit_exist" value="">
|
207 |
<input type="hidden" id="action" name="action" value="customAddUpdate">
|
208 |
|
209 |
-
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="$('#myModal').modal('hide')"><?php _e("Close", '
|
210 |
|
211 |
|
212 |
</div>
|
@@ -219,7 +219,7 @@ isset($_REQUEST['tab']) ? $url_op = WPSR_sanitize_text_or_array_field($_REQUEST[
|
|
219 |
<table border="0" width="100%">
|
220 |
<tr>
|
221 |
<td > <button type="button" class="button-secondary" onclick="add_rec()" >
|
222 |
-
<span style="padding-top: 5px;" class="dashicons dashicons-plus"></span><?php _e('Add New', '
|
223 |
</button>
|
224 |
|
225 |
<label id="waiting_lbl"><div class="loading" style="display: none">Loading…</div>
|
@@ -228,8 +228,8 @@ isset($_REQUEST['tab']) ? $url_op = WPSR_sanitize_text_or_array_field($_REQUEST[
|
|
228 |
<td align="right">
|
229 |
<input onkeyup="if (event.keyCode == 13)
|
230 |
go_search();" style="height: 30px;" id="search" type="text" name="search" value="<?php echo htmlentities($util->get('search'), ENT_QUOTES) ?>" size="30">
|
231 |
-
<a class="button" onclick="go_search()" href="#" ><span style="padding-top: 3px;" class="dashicons dashicons-search"></span> <?php _e("Search", '
|
232 |
-
<a class="button" href="<?php echo esc_url(htmlentities($util->WPSR_get_current_parameters('search'))) ?>"><span style="padding-top: 3px;" class="dashicons dashicons-screenoptions"></span> <?php _e("Show All", '
|
233 |
</td>
|
234 |
</tr>
|
235 |
</table>
|
@@ -299,9 +299,9 @@ if ($util->get('search') != '') {
|
|
299 |
}
|
300 |
|
301 |
$grid->add_php_col("<input type='checkbox' class='chkthis' name='redirect_id[]' value='DB_ID' />","<input type='checkbox' class='chkall' name='check_all' />");
|
302 |
-
$grid->add_php_col( "<div class='db_redirect_from_type_background_db_enabled'><a target='_blank' href='db_redirect_from_url'>db_redirect_from</a></div>" , __('Redirect from ', '
|
303 |
-
$grid->add_php_col("<div class='db_redirect_to_type_background_db_enabled'><a target='_blank' href='db_redirect_to_url'>db_redirect_to</a></div>", __('Redirect to ', '
|
304 |
-
$grid->add_data_col('redirect_type', __('Type', '
|
305 |
|
306 |
|
307 |
$url = admin_url('options-general.php?page='.sanitize_text_field($_REQUEST['page']));
|
@@ -323,11 +323,11 @@ else
|
|
323 |
$grid->add_data_col('access_date','<a href="'.esc_url($url).'&type=dt&sort=asc" class="dt" data-sort="asc">Last Access</a>');
|
324 |
}
|
325 |
|
326 |
-
$grid->add_template_col('del', $util->WPSR_get_current_parameters('del') . '&del={db_ID}', __('Actions', '
|
327 |
-
$grid->add_template_col('edit', '{db_ID}', __('', '
|
328 |
$grid->run();
|
329 |
?>
|
330 |
<?php
|
331 |
-
echo '<input class="button-primary" id="btnDelete" type="submit" value="' . __("Delete", "
|
332 |
?>
|
333 |
</form>
|
9 |
$wpdb->query($wpdb->prepare(" delete from $table_name where ID=%d ", $delid));
|
10 |
|
11 |
if ($util->there_is_cache() != '')
|
12 |
+
$util->info_option_msg(__("You have a cache plugin installed", 'seo-redirection') . " <b>'" . $util->there_is_cache() . "'</b>, " . __("you have to clear cache after any changes to get the changes reflected immediately! ", 'seo-redirection'));
|
13 |
|
14 |
$SR_redirect_cache = new free_SR_redirect_cache();
|
15 |
$SR_redirect_cache->free_cache();
|
81 |
window.location = url;
|
82 |
} else
|
83 |
{
|
84 |
+
alert('<?php _e("Please input any search words!", 'seo-redirection') ?>');
|
85 |
document.getElementById('search').focus();
|
86 |
}
|
87 |
|
100 |
<form onsubmit="return check_from();" method="POST" id="myform" action="<?php echo esc_attr($util->WPSR_get_current_parameters(array('add', 'edit', 'page404'))); ?>">
|
101 |
<table class="cform" width="100%">
|
102 |
<tr>
|
103 |
+
<td class="label"><?php _e('Redirect status:', 'seo-redirection') ?></td>
|
104 |
<td> <select size="1" name="enabled" id="enabled">
|
105 |
+
<option value="1"><?php _e('Enabled', 'seo-redirection') ?></option>
|
106 |
+
<option value="0"><?php _e('Disabled', 'seo-redirection') ?></option>
|
107 |
</select>
|
108 |
|
109 |
</td>
|
110 |
</tr>
|
111 |
<tr>
|
112 |
|
113 |
+
<td class="label"><?php _e('Redirect from:', 'seo-redirection') ?></td>
|
114 |
<td>
|
115 |
<div id="rfrom_div">
|
116 |
<select onchange="redirect_from_type_change()" size="1" name="redirect_from_type" id="redirect_from_type">
|
117 |
+
<option value="Page"><?php _e('Page', 'seo-redirection') ?></option>
|
118 |
+
<option value="Folder"><?php _e('Folder', 'seo-redirection') ?></option>
|
119 |
+
<option value="Regex"><?php _e('Regex', 'seo-redirection') ?></option>
|
120 |
</select>
|
121 |
+
<input onblur="check_redirect_from_all()" type="text" id="redirect_from" style="height: 40px;" placeholder="<?php _e("Redirect from", 'seo-redirection') ?>" name="redirect_from" size="45" value="<?php echo esc_attr($redirect_from); ?>">
|
122 |
<span class="help-block"></span>
|
123 |
<select onchange="redirect_to_folder_settings_change()" size="1" name="redirect_from_folder_settings" id="redirect_from_folder_settings">
|
124 |
+
<option value="1"><?php _e('Only the folder', 'seo-redirection') ?></option>
|
125 |
+
<option value="2"><?php _e("The folder and it's content", 'seo-redirection') ?></option>
|
126 |
+
<option value="3"><?php _e("Only the folder's content", 'seo-redirection') ?></option>
|
127 |
</select>
|
128 |
<br>
|
129 |
<select size="1" name="redirect_from_subfolders" id="redirect_from_subfolders" class="cmb2_select">
|
130 |
+
<option value="0"><?php _e("Include sub-folders", 'seo-redirection') ?></option>
|
131 |
+
<option value="1"><?php _e("Do not include sub-folders", 'seo-redirection') ?></option>
|
132 |
</select>
|
133 |
|
134 |
|
137 |
</td>
|
138 |
</tr>
|
139 |
<tr>
|
140 |
+
<td class="label"><?php _e("Redirect to:", 'seo-redirection') ?></td>
|
141 |
<td>
|
142 |
<select onchange="redirect_to_type_change()" size="1" class="cmb2_select" name="redirect_to_type" id="redirect_to_type">
|
143 |
+
<option value="Page"><?php _e("Page:", 'seo-redirection') ?></option>
|
144 |
+
<option value="Folder"><?php _e("Folder", 'seo-redirection') ?></option>
|
145 |
</select>
|
146 |
|
147 |
+
<input onblur="check_redirect_to()" type="text" id="redirect_to" placeholder="<?php _e("Redirect to", 'seo-redirection') ?>" class="regular-text" style="height: 40px;" name="redirect_to" size="45" value="<?php echo esc_attr($redirect_to); ?>">
|
148 |
<span class="help-block"></span>
|
149 |
<select size="1" name="redirect_to_folder_settings" id="redirect_to_folder_settings">
|
150 |
+
<option value="1"><?php _e("Normal", 'seo-redirection') ?></option>
|
151 |
+
<option value="2"><?php _e("Wild Card Redirect", 'seo-redirection') ?></option>
|
152 |
</select>
|
153 |
</td>
|
154 |
</tr>
|
155 |
<tr>
|
156 |
+
<td class="label"><?php _e("Redirect type:", 'seo-redirection') ?></td>
|
157 |
<td>
|
158 |
<select size="1" name="redirect_type" id="redirect_type">
|
159 |
+
<option value="301"><?php _e("301 (SEO)", 'seo-redirection') ?></option>
|
160 |
+
<option value="302"><?php _e("302", 'seo-redirection') ?></option>
|
161 |
+
<option value="307"><?php _e("307", 'seo-redirection') ?></option>
|
162 |
</select>
|
163 |
<script type="text/javascript">
|
164 |
<?php
|
198 |
</div>
|
199 |
<div class="modal-footer">
|
200 |
<?php
|
201 |
+
echo '<input class="button-primary" id="btnSave" type="button" value="' . __("Add New", "seo-redirection") . '" onclick="return save_function()">';
|
202 |
?>
|
203 |
<input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce = wp_create_nonce('seoredirection'); ?>" />
|
204 |
<input type="hidden" id="edit" name="edit" value="<?php echo intval($util->get('edit')) ?>">
|
206 |
<input type="hidden" id="edit_exist" name="edit_exist" value="">
|
207 |
<input type="hidden" id="action" name="action" value="customAddUpdate">
|
208 |
|
209 |
+
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="$('#myModal').modal('hide')"><?php _e("Close", 'seo-redirection') ?></button>
|
210 |
|
211 |
|
212 |
</div>
|
219 |
<table border="0" width="100%">
|
220 |
<tr>
|
221 |
<td > <button type="button" class="button-secondary" onclick="add_rec()" >
|
222 |
+
<span style="padding-top: 5px;" class="dashicons dashicons-plus"></span><?php _e('Add New', 'seo-redirection') ?>
|
223 |
</button>
|
224 |
|
225 |
<label id="waiting_lbl"><div class="loading" style="display: none">Loading…</div>
|
228 |
<td align="right">
|
229 |
<input onkeyup="if (event.keyCode == 13)
|
230 |
go_search();" style="height: 30px;" id="search" type="text" name="search" value="<?php echo htmlentities($util->get('search'), ENT_QUOTES) ?>" size="30">
|
231 |
+
<a class="button" onclick="go_search()" href="#" ><span style="padding-top: 3px;" class="dashicons dashicons-search"></span> <?php _e("Search", 'seo-redirection') ?></a>
|
232 |
+
<a class="button" href="<?php echo esc_url(htmlentities($util->WPSR_get_current_parameters('search'))) ?>"><span style="padding-top: 3px;" class="dashicons dashicons-screenoptions"></span> <?php _e("Show All", 'seo-redirection') ?></a>
|
233 |
</td>
|
234 |
</tr>
|
235 |
</table>
|
299 |
}
|
300 |
|
301 |
$grid->add_php_col("<input type='checkbox' class='chkthis' name='redirect_id[]' value='DB_ID' />","<input type='checkbox' class='chkall' name='check_all' />");
|
302 |
+
$grid->add_php_col( "<div class='db_redirect_from_type_background_db_enabled'><a target='_blank' href='db_redirect_from_url'>db_redirect_from</a></div>" , __('Redirect from ', 'seo-redirection'));
|
303 |
+
$grid->add_php_col("<div class='db_redirect_to_type_background_db_enabled'><a target='_blank' href='db_redirect_to_url'>db_redirect_to</a></div>", __('Redirect to ', 'seo-redirection'));
|
304 |
+
$grid->add_data_col('redirect_type', __('Type', 'seo-redirection'));
|
305 |
|
306 |
|
307 |
$url = admin_url('options-general.php?page='.sanitize_text_field($_REQUEST['page']));
|
323 |
$grid->add_data_col('access_date','<a href="'.esc_url($url).'&type=dt&sort=asc" class="dt" data-sort="asc">Last Access</a>');
|
324 |
}
|
325 |
|
326 |
+
$grid->add_template_col('del', $util->WPSR_get_current_parameters('del') . '&del={db_ID}', __('Actions', 'seo-redirection'));
|
327 |
+
$grid->add_template_col('edit', '{db_ID}', __('', 'seo-redirection'));
|
328 |
$grid->run();
|
329 |
?>
|
330 |
<?php
|
331 |
+
echo '<input class="button-primary" id="btnDelete" type="submit" value="' . __("Delete", "seo-redirection") . '" onclick="return delete_function()">';
|
332 |
?>
|
333 |
</form>
|
options/option_page_goptions.php
CHANGED
@@ -10,42 +10,42 @@ if(isset($_POST) && wp_verify_nonce( $nonce, 'seoredirection' ) ){
|
|
10 |
if($util->post('reset_all_options')!='')
|
11 |
{
|
12 |
c_init_my_options();
|
13 |
-
$util->success_option_msg(__('All Options Restored to Defaults','
|
14 |
|
15 |
}else if($util->post('Save_general_options')!='')
|
16 |
{
|
17 |
c_save_redirection_general_options();
|
18 |
-
$util->success_option_msg(__('General Options Saved!','
|
19 |
|
20 |
}else if($util->post('save_history_options')!='')
|
21 |
{
|
22 |
c_save_redirection_history_options();
|
23 |
-
$util->success_option_msg(__('History Options Saved!','
|
24 |
}
|
25 |
else if($util->post('clear_history')!='')
|
26 |
{
|
27 |
c_clear_redirection_history();
|
28 |
-
$util->success_option_msg(__('History Cleared!','
|
29 |
}
|
30 |
else if($util->post('save_404_options')!='')
|
31 |
{
|
32 |
c_save_404_redirection_options();
|
33 |
-
$util->success_option_msg(__('404 Redirection Options Saved!','
|
34 |
}
|
35 |
else if($util->post('clear_all_404')!='')
|
36 |
{
|
37 |
c_clear_all_404();
|
38 |
-
$util->success_option_msg(__('All Discovered 404 Pages Cleared!','
|
39 |
}
|
40 |
else if($util->post('save_data_options')!='')
|
41 |
{
|
42 |
c_save_keep_data();
|
43 |
-
$util->success_option_msg(__('Data Options Saved!','
|
44 |
}
|
45 |
else if($util->post('optimize_tables')!='')
|
46 |
{
|
47 |
c_optimize_tables();
|
48 |
-
$util->success_option_msg(__('Data Tables Optimized!','
|
49 |
}
|
50 |
else if($util->post('save_all_options'))
|
51 |
{
|
@@ -54,7 +54,7 @@ else if($util->post('save_all_options'))
|
|
54 |
c_save_404_redirection_options();
|
55 |
c_save_keep_data();
|
56 |
|
57 |
-
$util->success_option_msg(__('All options saved!','
|
58 |
|
59 |
}
|
60 |
|
@@ -65,25 +65,25 @@ else if($util->post('save_all_options'))
|
|
65 |
|
66 |
if($util->there_is_cache()!='')
|
67 |
|
68 |
-
$util->info_option_msg(__("You have a cache plugin installed",'
|
69 |
}
|
70 |
|
71 |
$options= $util->get_my_options();
|
72 |
|
73 |
?>
|
74 |
<form method="POST">
|
75 |
-
<h3><?php _e("General Options","
|
76 |
|
77 |
<input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce = wp_create_nonce('seoredirection'); ?>" />
|
78 |
|
79 |
<table class="cform" align="center" width="100%">
|
80 |
<tr><td>
|
81 |
-
<?php _e("Plugin Status:","
|
82 |
<?php
|
83 |
$drop = new dropdown('plugin_status');
|
84 |
-
$drop->add(__('Enabled','
|
85 |
-
$drop->add(__('Disabled','
|
86 |
-
$drop->add(__('Disabled for admin only','
|
87 |
$drop->dropdown_print();
|
88 |
$drop->select($options['plugin_status']);
|
89 |
?>
|
@@ -92,12 +92,12 @@ $options= $util->get_my_options();
|
|
92 |
|
93 |
|
94 |
<tr><td>
|
95 |
-
<?php _e("IP Logging:","
|
96 |
<?php
|
97 |
$drop = new dropdown('ip_logging_status');
|
98 |
-
$drop->add(__('No IP logging','
|
99 |
-
$drop->add(__('Full IP logging','
|
100 |
-
$drop->add(__('Anonymize IP (mask last part)','
|
101 |
$drop->dropdown_print();
|
102 |
$drop->select($options['ip_logging_status']);
|
103 |
?>
|
@@ -106,16 +106,16 @@ $options= $util->get_my_options();
|
|
106 |
|
107 |
<tr><td>
|
108 |
<?php $check = new checkoption('redirect_control_panel',$options['redirect_control_panel']); ?>
|
109 |
-
<?php _e("Do not redirect control panel links (This will be usefull when making wrong expressions that may cause an infinit redirection loop).","
|
110 |
|
111 |
<br/>
|
112 |
<?php $check = new checkoption('show_redirect_box',$options['show_redirect_box']); ?>
|
113 |
-
<?php _e("Show redirect box in posts & pages edit page (Important to set up redirection for posts and pages easily).","
|
114 |
|
115 |
|
116 |
<br/>
|
117 |
<?php $check = new checkoption('reflect_modifications',$options['reflect_modifications']); ?>
|
118 |
-
<?php _e("Reflect any modifications in the post permalink to all redirection links (Mostly Recommended).","
|
119 |
|
120 |
|
121 |
|
@@ -126,31 +126,31 @@ $options= $util->get_my_options();
|
|
126 |
</td></tr>
|
127 |
|
128 |
</table>
|
129 |
-
<br/><input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Save General Options","
|
130 |
|
131 |
|
132 |
<br/><br/>
|
133 |
-
<h3><?php _e("Redirection History Options","
|
134 |
<table class="cform" align="center" width="100%">
|
135 |
<tr><td>
|
136 |
-
<?php _e("Redirection History Status:","
|
137 |
<?php
|
138 |
$drop = new dropdown('history_status');
|
139 |
-
$drop->add(__('Enabled','
|
140 |
-
$drop->add(__('Disabled','
|
141 |
$drop->dropdown_print();
|
142 |
$drop->select($options['history_status']);
|
143 |
?>
|
144 |
|
145 |
</td></tr>
|
146 |
<tr><td>
|
147 |
-
<?php _e("Redirection History Limit:","
|
148 |
<?php
|
149 |
$drop = new dropdown('history_limit');
|
150 |
-
$drop->add(__('7 days','
|
151 |
-
$drop->add(__('1 month','
|
152 |
-
$drop->add(__('2 months','
|
153 |
-
$drop->add(__('3 months','
|
154 |
$drop->dropdown_print();
|
155 |
$drop->select($options['history_limit']);
|
156 |
?>
|
@@ -202,20 +202,20 @@ $options= $util->get_my_options();
|
|
202 |
|
203 |
|
204 |
|
205 |
-
<h3><?php _e("Redrection Data Options","
|
206 |
<table class="cform" align="center" width="100%">
|
207 |
<tr><td>
|
208 |
<?php $check = new checkoption('keep_data',$options['keep_data'],'1'); ?>
|
209 |
-
<?php _e("Keep redirection data after uninstall the plugin, this will be useful when you install it later.","
|
210 |
|
211 |
</td></tr>
|
212 |
</table>
|
213 |
<br/>
|
214 |
-
<input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Save Data Options","
|
215 |
-
<input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Optimize Data Tables","
|
216 |
<br/><br/><br/>
|
217 |
<hr>
|
218 |
-
<input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Save All Options","
|
219 |
-
<input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Restore Default Settings","
|
220 |
|
221 |
</form>
|
10 |
if($util->post('reset_all_options')!='')
|
11 |
{
|
12 |
c_init_my_options();
|
13 |
+
$util->success_option_msg(__('All Options Restored to Defaults','seo-redirection'));
|
14 |
|
15 |
}else if($util->post('Save_general_options')!='')
|
16 |
{
|
17 |
c_save_redirection_general_options();
|
18 |
+
$util->success_option_msg(__('General Options Saved!','seo-redirection'));
|
19 |
|
20 |
}else if($util->post('save_history_options')!='')
|
21 |
{
|
22 |
c_save_redirection_history_options();
|
23 |
+
$util->success_option_msg(__('History Options Saved!','seo-redirection'));
|
24 |
}
|
25 |
else if($util->post('clear_history')!='')
|
26 |
{
|
27 |
c_clear_redirection_history();
|
28 |
+
$util->success_option_msg(__('History Cleared!','seo-redirection'));
|
29 |
}
|
30 |
else if($util->post('save_404_options')!='')
|
31 |
{
|
32 |
c_save_404_redirection_options();
|
33 |
+
$util->success_option_msg(__('404 Redirection Options Saved!','seo-redirection'));
|
34 |
}
|
35 |
else if($util->post('clear_all_404')!='')
|
36 |
{
|
37 |
c_clear_all_404();
|
38 |
+
$util->success_option_msg(__('All Discovered 404 Pages Cleared!','seo-redirection'));
|
39 |
}
|
40 |
else if($util->post('save_data_options')!='')
|
41 |
{
|
42 |
c_save_keep_data();
|
43 |
+
$util->success_option_msg(__('Data Options Saved!','seo-redirection'));
|
44 |
}
|
45 |
else if($util->post('optimize_tables')!='')
|
46 |
{
|
47 |
c_optimize_tables();
|
48 |
+
$util->success_option_msg(__('Data Tables Optimized!','seo-redirection'));
|
49 |
}
|
50 |
else if($util->post('save_all_options'))
|
51 |
{
|
54 |
c_save_404_redirection_options();
|
55 |
c_save_keep_data();
|
56 |
|
57 |
+
$util->success_option_msg(__('All options saved!','seo-redirection'));
|
58 |
|
59 |
}
|
60 |
|
65 |
|
66 |
if($util->there_is_cache()!='')
|
67 |
|
68 |
+
$util->info_option_msg(__("You have a cache plugin installed",'seo-redirection')." <b>'" . $util->there_is_cache() . "'</b>, ".__("you have to clear cache after any changes to get the changes reflected immediately! ",'seo-redirection'));
|
69 |
}
|
70 |
|
71 |
$options= $util->get_my_options();
|
72 |
|
73 |
?>
|
74 |
<form method="POST">
|
75 |
+
<h3><?php _e("General Options","seo-redirection") ?><hr></h3>
|
76 |
|
77 |
<input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce = wp_create_nonce('seoredirection'); ?>" />
|
78 |
|
79 |
<table class="cform" align="center" width="100%">
|
80 |
<tr><td>
|
81 |
+
<?php _e("Plugin Status:","seo-redirection") ?>
|
82 |
<?php
|
83 |
$drop = new dropdown('plugin_status');
|
84 |
+
$drop->add(__('Enabled','seo-redirection'),'1');
|
85 |
+
$drop->add(__('Disabled','seo-redirection'),'0');
|
86 |
+
$drop->add(__('Disabled for admin only','seo-redirection'),'2');
|
87 |
$drop->dropdown_print();
|
88 |
$drop->select($options['plugin_status']);
|
89 |
?>
|
92 |
|
93 |
|
94 |
<tr><td>
|
95 |
+
<?php _e("IP Logging:","seo-redirection") ?>
|
96 |
<?php
|
97 |
$drop = new dropdown('ip_logging_status');
|
98 |
+
$drop->add(__('No IP logging','seo-redirection'),'0');
|
99 |
+
$drop->add(__('Full IP logging','seo-redirection'),'1');
|
100 |
+
$drop->add(__('Anonymize IP (mask last part)','seo-redirection'),'2');
|
101 |
$drop->dropdown_print();
|
102 |
$drop->select($options['ip_logging_status']);
|
103 |
?>
|
106 |
|
107 |
<tr><td>
|
108 |
<?php $check = new checkoption('redirect_control_panel',$options['redirect_control_panel']); ?>
|
109 |
+
<?php _e("Do not redirect control panel links (This will be usefull when making wrong expressions that may cause an infinit redirection loop).","seo-redirection"); ?>
|
110 |
|
111 |
<br/>
|
112 |
<?php $check = new checkoption('show_redirect_box',$options['show_redirect_box']); ?>
|
113 |
+
<?php _e("Show redirect box in posts & pages edit page (Important to set up redirection for posts and pages easily).","seo-redirection"); ?>
|
114 |
|
115 |
|
116 |
<br/>
|
117 |
<?php $check = new checkoption('reflect_modifications',$options['reflect_modifications']); ?>
|
118 |
+
<?php _e("Reflect any modifications in the post permalink to all redirection links (Mostly Recommended).","seo-redirection"); ?>
|
119 |
|
120 |
|
121 |
|
126 |
</td></tr>
|
127 |
|
128 |
</table>
|
129 |
+
<br/><input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Save General Options","seo-redirection") ?>" name="Save_general_options">
|
130 |
|
131 |
|
132 |
<br/><br/>
|
133 |
+
<h3><?php _e("Redirection History Options","seo-redirection") ?><hr></h3>
|
134 |
<table class="cform" align="center" width="100%">
|
135 |
<tr><td>
|
136 |
+
<?php _e("Redirection History Status:","seo-redirection") ?>
|
137 |
<?php
|
138 |
$drop = new dropdown('history_status');
|
139 |
+
$drop->add(__('Enabled','seo-redirection'),'1');
|
140 |
+
$drop->add(__('Disabled','seo-redirection'),'0');
|
141 |
$drop->dropdown_print();
|
142 |
$drop->select($options['history_status']);
|
143 |
?>
|
144 |
|
145 |
</td></tr>
|
146 |
<tr><td>
|
147 |
+
<?php _e("Redirection History Limit:","seo-redirection") ?>
|
148 |
<?php
|
149 |
$drop = new dropdown('history_limit');
|
150 |
+
$drop->add(__('7 days','seo-redirection'),'7');
|
151 |
+
$drop->add(__('1 month','seo-redirection'),'30');
|
152 |
+
$drop->add(__('2 months','seo-redirection'),'60');
|
153 |
+
$drop->add(__('3 months','seo-redirection'),'90');
|
154 |
$drop->dropdown_print();
|
155 |
$drop->select($options['history_limit']);
|
156 |
?>
|
202 |
|
203 |
|
204 |
|
205 |
+
<h3><?php _e("Redrection Data Options","seo-redirection"); ?><hr></h3>
|
206 |
<table class="cform" align="center" width="100%">
|
207 |
<tr><td>
|
208 |
<?php $check = new checkoption('keep_data',$options['keep_data'],'1'); ?>
|
209 |
+
<?php _e("Keep redirection data after uninstall the plugin, this will be useful when you install it later.","seo-redirection"); ?>
|
210 |
|
211 |
</td></tr>
|
212 |
</table>
|
213 |
<br/>
|
214 |
+
<input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Save Data Options","seo-redirection") ?>" name="save_data_options">
|
215 |
+
<input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Optimize Data Tables","seo-redirection") ?>" name="optimize_tables">
|
216 |
<br/><br/><br/>
|
217 |
<hr>
|
218 |
+
<input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Save All Options","seo-redirection") ?>" name="save_all_options">
|
219 |
+
<input style="margin-left:5px" class="button-primary" type="submit" value="<?php _e("Restore Default Settings","seo-redirection") ?>" name="reset_all_options">
|
220 |
|
221 |
</form>
|
options/option_page_history.php
CHANGED
@@ -9,12 +9,12 @@ if($util->get('del')!=''){
|
|
9 |
c_clear_redirection_history();
|
10 |
|
11 |
if($util->there_is_cache()!='')
|
12 |
-
$util->info_option_msg(__("You have a cache plugin installed",'
|
13 |
}
|
14 |
}
|
15 |
|
16 |
if($util->get_option_value('history_status')!='1')
|
17 |
-
$util->info_option_msg(__("Redirection history property is disabled now!, you can re-enable it from options tab.",'
|
18 |
|
19 |
?>
|
20 |
|
@@ -26,7 +26,7 @@ var sword = document.getElementById('search').value;
|
|
26 |
window.location = "<?php echo esc_url($rlink)?>&search=" + sword ;
|
27 |
}else
|
28 |
{
|
29 |
-
alert('<?php _e("Please input any search words!","
|
30 |
document.getElementById('search').focus();
|
31 |
}
|
32 |
|
@@ -34,15 +34,15 @@ var sword = document.getElementById('search').value;
|
|
34 |
|
35 |
</script>
|
36 |
|
37 |
-
<h3><?php _e("Redirection History","
|
38 |
<div class="link_buttons">
|
39 |
<table border="0" width="100%">
|
40 |
<tr>
|
41 |
-
<td width="150"><a href="<?php echo esc_url($rlink)?>&del=all" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-trash"></span> <?php _e("Clear History","
|
42 |
<td align="right">
|
43 |
<input onkeyup="if (event.keyCode == 13) go_search();" style="height: 30px;" id="search" type="text" name="search" value="<?php echo htmlentities($util->get('search'),ENT_QUOTES)?>" size="30">
|
44 |
-
<a onclick="go_search()" href="#" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-search"></span> <?php _e("Search","
|
45 |
-
<a href="<?php echo esc_url($util->WPSR_get_current_parameters('search'))?>" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-screenoptions"></span> <?php _e("Show All","
|
46 |
</td>
|
47 |
</tr>
|
48 |
</table>
|
@@ -95,29 +95,29 @@ var sword = document.getElementById('search').value;
|
|
95 |
$grid->set_col_attr(6, 'width', '120px', 'header');
|
96 |
$grid->set_col_attr(7, 'width', '50px', 'header');
|
97 |
|
98 |
-
$grid->add_php_col('db_date_y<br/>db_date_h',__('Time','
|
99 |
|
100 |
-
$grid->add_php_col("<div class='arrow_from'><a target='_blank' href='db_rfrom_url'>db_rfrom</a></div><div class='arrow_to'><a target='_blank' href='db_rto_url'>db_rto</a></div>",__('Redirection','
|
101 |
$grid->add_data_col('rtype','Type');
|
102 |
-
$grid->add_php_col('db_referrer_var',__('Ref','
|
103 |
|
104 |
|
105 |
|
106 |
if($util->get_option_value('ip_logging_status') == 0)
|
107 |
{
|
108 |
-
$grid->add_html_col('--',__('IP','
|
109 |
}else if($util->get_option_value('ip_logging_status') == 1)
|
110 |
{
|
111 |
-
$grid->add_html_col('<a target="_blank" href="https://tools.keycdn.com/geo?host={db_ip}">{db_ip}</a>',__('IP','
|
112 |
}else{
|
113 |
|
114 |
-
$grid->add_php_col('db_ip',__('IP','
|
115 |
}
|
116 |
|
117 |
|
118 |
-
$grid->add_html_col('{db_os}<br/>{db_browser}',__('Agent','
|
119 |
|
120 |
-
$grid->add_php_col('db_rsrc_custom',__('Class','
|
121 |
|
122 |
|
123 |
$grid->run();
|
9 |
c_clear_redirection_history();
|
10 |
|
11 |
if($util->there_is_cache()!='')
|
12 |
+
$util->info_option_msg(__("You have a cache plugin installed",'seo-redirection')." <b>'" . $util->there_is_cache() . "'</b>, ".__("you have to clear cache after any changes to get the changes reflected immediately! ",'seo-redirection'));
|
13 |
}
|
14 |
}
|
15 |
|
16 |
if($util->get_option_value('history_status')!='1')
|
17 |
+
$util->info_option_msg(__("Redirection history property is disabled now!, you can re-enable it from options tab.",'seo-redirection'));
|
18 |
|
19 |
?>
|
20 |
|
26 |
window.location = "<?php echo esc_url($rlink)?>&search=" + sword ;
|
27 |
}else
|
28 |
{
|
29 |
+
alert('<?php _e("Please input any search words!","seo-redirection") ?>');
|
30 |
document.getElementById('search').focus();
|
31 |
}
|
32 |
|
34 |
|
35 |
</script>
|
36 |
|
37 |
+
<h3><?php _e("Redirection History","seo-redirection"); ?><hr></h3>
|
38 |
<div class="link_buttons">
|
39 |
<table border="0" width="100%">
|
40 |
<tr>
|
41 |
+
<td width="150"><a href="<?php echo esc_url($rlink)?>&del=all" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-trash"></span> <?php _e("Clear History","seo-redirection"); ?></a></td>
|
42 |
<td align="right">
|
43 |
<input onkeyup="if (event.keyCode == 13) go_search();" style="height: 30px;" id="search" type="text" name="search" value="<?php echo htmlentities($util->get('search'),ENT_QUOTES)?>" size="30">
|
44 |
+
<a onclick="go_search()" href="#" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-search"></span> <?php _e("Search","seo-redirection"); ?></a>
|
45 |
+
<a href="<?php echo esc_url($util->WPSR_get_current_parameters('search'))?>" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-screenoptions"></span> <?php _e("Show All","seo-redirection"); ?></a>
|
46 |
</td>
|
47 |
</tr>
|
48 |
</table>
|
95 |
$grid->set_col_attr(6, 'width', '120px', 'header');
|
96 |
$grid->set_col_attr(7, 'width', '50px', 'header');
|
97 |
|
98 |
+
$grid->add_php_col('db_date_y<br/>db_date_h',__('Time','seo-redirection'));
|
99 |
|
100 |
+
$grid->add_php_col("<div class='arrow_from'><a target='_blank' href='db_rfrom_url'>db_rfrom</a></div><div class='arrow_to'><a target='_blank' href='db_rto_url'>db_rto</a></div>",__('Redirection','seo-redirection'));
|
101 |
$grid->add_data_col('rtype','Type');
|
102 |
+
$grid->add_php_col('db_referrer_var',__('Ref','seo-redirection'));
|
103 |
|
104 |
|
105 |
|
106 |
if($util->get_option_value('ip_logging_status') == 0)
|
107 |
{
|
108 |
+
$grid->add_html_col('--',__('IP','seo-redirection'));
|
109 |
}else if($util->get_option_value('ip_logging_status') == 1)
|
110 |
{
|
111 |
+
$grid->add_html_col('<a target="_blank" href="https://tools.keycdn.com/geo?host={db_ip}">{db_ip}</a>',__('IP','seo-redirection'));
|
112 |
}else{
|
113 |
|
114 |
+
$grid->add_php_col('db_ip',__('IP','seo-redirection'));
|
115 |
}
|
116 |
|
117 |
|
118 |
+
$grid->add_html_col('{db_os}<br/>{db_browser}',__('Agent','seo-redirection'));
|
119 |
|
120 |
+
$grid->add_php_col('db_rsrc_custom',__('Class','seo-redirection'));
|
121 |
|
122 |
|
123 |
$grid->run();
|
options/option_page_post_redirection_list.php
CHANGED
@@ -11,7 +11,7 @@ $table_name = $table_prefix . 'WP_SEO_Redirection';
|
|
11 |
|
12 |
|
13 |
if($util->there_is_cache()!='')
|
14 |
-
$util->info_option_msg(__("You have a cache plugin installed",'
|
15 |
|
16 |
$SR_redirect_cache = new free_SR_redirect_cache();
|
17 |
$SR_redirect_cache->free_cache();
|
@@ -39,7 +39,7 @@ var sword = document.getElementById('search').value;
|
|
39 |
window.location =url;
|
40 |
}else
|
41 |
{
|
42 |
-
alert('<?php _e("Please input any search words!",'
|
43 |
document.getElementById('search').focus();
|
44 |
}
|
45 |
|
@@ -53,10 +53,10 @@ var sword = document.getElementById('search').value;
|
|
53 |
<tr>
|
54 |
<td align="right">
|
55 |
<input onkeyup="if (event.keyCode == 13) go_search();" style="height: 30px;" id="search" type="text" name="search" value="<?php echo htmlentities($util->get('search','title'))?>" size="30">
|
56 |
-
<!--<a onclick="go_search()" href="#"><div class="search_link"><?php _e("Search","
|
57 |
-
<a onclick="go_search()" href="#" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-search"></span> <?php _e("Search","
|
58 |
|
59 |
-
<a href="<?php echo esc_url($util->WPSR_get_current_parameters('search'))?>" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-screenoptions"></span> <?php _e("Show All","
|
60 |
</td>
|
61 |
</tr>
|
62 |
</table>
|
@@ -102,11 +102,11 @@ var sword = document.getElementById('search').value;
|
|
102 |
|
103 |
//$grid->add_data_col('redirect_from','Redirect from');
|
104 |
//$grid->add_data_col('redirect_to','Redirect to');
|
105 |
-
$grid->add_php_col( "<div class='db_redirect_from_type_background_db_enabled'><a target='_blank' href='db_redirect_from_url'>db_redirect_from</a></div>",__('Redirect from ','
|
106 |
-
$grid->add_php_col("<div class='db_redirect_to_type_background_db_enabled'><a target='_blank' href='db_redirect_to_url'>db_redirect_to</a></div>",__('Redirect to ','
|
107 |
-
$grid->add_data_col('redirect_type',__('Type','
|
108 |
-
$grid->add_data_col('hits',__('Hits','
|
109 |
-
$grid->add_data_col('access_date',__('Last Access','
|
110 |
$grid->add_template_col('go_link','post.php?post={db_postID}&action=edit','Actions');
|
111 |
$grid->add_template_col('del', $util->WPSR_get_current_parameters('del') . '&del={db_ID}','');
|
112 |
|
@@ -115,4 +115,4 @@ var sword = document.getElementById('search').value;
|
|
115 |
|
116 |
|
117 |
?>
|
118 |
-
<?php echo "<b>Note</b>:".__("To add a redirection for any post or page , use custom redirection or go to the edit page, you will find the redirection box, use it to set your redirection.","
|
11 |
|
12 |
|
13 |
if($util->there_is_cache()!='')
|
14 |
+
$util->info_option_msg(__("You have a cache plugin installed",'seo-redirection')." <b>'" . $util->there_is_cache() . "'</b>, ".__("you have to clear cache after any changes to get the changes reflected immediately! ",'seo-redirection'));
|
15 |
|
16 |
$SR_redirect_cache = new free_SR_redirect_cache();
|
17 |
$SR_redirect_cache->free_cache();
|
39 |
window.location =url;
|
40 |
}else
|
41 |
{
|
42 |
+
alert('<?php _e("Please input any search words!",'seo-redirection') ?>');
|
43 |
document.getElementById('search').focus();
|
44 |
}
|
45 |
|
53 |
<tr>
|
54 |
<td align="right">
|
55 |
<input onkeyup="if (event.keyCode == 13) go_search();" style="height: 30px;" id="search" type="text" name="search" value="<?php echo htmlentities($util->get('search','title'))?>" size="30">
|
56 |
+
<!--<a onclick="go_search()" href="#"><div class="search_link"><?php _e("Search","seo-redirection"); ?></div></a>-->
|
57 |
+
<a onclick="go_search()" href="#" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-search"></span> <?php _e("Search","seo-redirection"); ?></a>
|
58 |
|
59 |
+
<a href="<?php echo esc_url($util->WPSR_get_current_parameters('search'))?>" class="button"><span style="padding-top: 3px;" class="dashicons dashicons-screenoptions"></span> <?php _e("Show All","seo-redirection"); ?></a>
|
60 |
</td>
|
61 |
</tr>
|
62 |
</table>
|
102 |
|
103 |
//$grid->add_data_col('redirect_from','Redirect from');
|
104 |
//$grid->add_data_col('redirect_to','Redirect to');
|
105 |
+
$grid->add_php_col( "<div class='db_redirect_from_type_background_db_enabled'><a target='_blank' href='db_redirect_from_url'>db_redirect_from</a></div>",__('Redirect from ','seo-redirection'));
|
106 |
+
$grid->add_php_col("<div class='db_redirect_to_type_background_db_enabled'><a target='_blank' href='db_redirect_to_url'>db_redirect_to</a></div>",__('Redirect to ','seo-redirection'));
|
107 |
+
$grid->add_data_col('redirect_type',__('Type','seo-redirection'));
|
108 |
+
$grid->add_data_col('hits',__('Hits','seo-redirection'));
|
109 |
+
$grid->add_data_col('access_date',__('Last Access','seo-redirection'));
|
110 |
$grid->add_template_col('go_link','post.php?post={db_postID}&action=edit','Actions');
|
111 |
$grid->add_template_col('del', $util->WPSR_get_current_parameters('del') . '&del={db_ID}','');
|
112 |
|
115 |
|
116 |
|
117 |
?>
|
118 |
+
<?php echo "<b>Note</b>:".__("To add a redirection for any post or page , use custom redirection or go to the edit page, you will find the redirection box, use it to set your redirection.","seo-redirection")."<br/>" ?>
|
options/premium.php
CHANGED
@@ -3,29 +3,29 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
3 |
$imgpath= $util->get_plugin_url().'custom/images/';
|
4 |
?>
|
5 |
|
6 |
-
<h2><?php _e("What’s New in Premium Version?","
|
7 |
<hr/>
|
8 |
<ul class="features">
|
9 |
-
<li><?php _e("Organize your redirects in ","
|
10 |
-
<li><strong><?php _e("Redirect Cache","
|
11 |
-
<li><?php _e("Supports all","
|
12 |
-
<li><?php _e("More redirect types are available ex.","
|
13 |
-
<li><strong><?php _e("Regular Expression","
|
14 |
-
<li><?php _e("More controls on discovered 404 list, for example filter by views, source(regular visitor or search engine), country or link type (Link, Image, Script or others).","
|
15 |
-
<li><?php _e("Add","
|
16 |
-
<li><strong><?php _e("General rules","
|
17 |
-
<li><?php _e("Adds an ","
|
18 |
-
<li><?php _e("Keeps track of","
|
19 |
-
<li><strong><?php _e("Import","
|
20 |
-
<li><?php _e("Supports ","
|
21 |
-
<li><?php _e("Friendly and easy to use GUI based on ","
|
22 |
</ul>
|
23 |
-
<h2> <?php _e("What will happen to the current redirects in this version?","
|
24 |
-
<p><?php _e("All the current redirects will remain and appear in the Premium version after upgrade without any problems","
|
25 |
<br/>
|
26 |
|
27 |
|
28 |
-
<p style="text-align: center"><font size="5"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><?php _e("Click Here for Pricing & Review","
|
29 |
|
30 |
<p style="text-align: center"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><img src="<?php echo esc_url($imgpath) ?>redirect_manager_intro.png"></a></p>
|
31 |
<p style="text-align: center"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><img src="<?php echo esc_url($imgpath) ?>404_manager.png"></a></p>
|
@@ -35,4 +35,4 @@ $imgpath= $util->get_plugin_url().'custom/images/';
|
|
35 |
<p style="text-align: center"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><img src="<?php echo esc_url($imgpath) ?>other_features.png"></a></p>
|
36 |
<p style="text-align: center"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><img src="<?php echo esc_url($imgpath) ?>circles.png"></a></p>
|
37 |
|
38 |
-
<p style="text-align: center"><font size="5"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><?php _e("Click Here for Pricing & Review","
|
3 |
$imgpath= $util->get_plugin_url().'custom/images/';
|
4 |
?>
|
5 |
|
6 |
+
<h2><?php _e("What’s New in Premium Version?","seo-redirection") ?></h2>
|
7 |
<hr/>
|
8 |
<ul class="features">
|
9 |
+
<li><?php _e("Organize your redirects in ","seo-redirection") ?><strong><?php _e("groups","seo-redirection") ?></strong>.</li>
|
10 |
+
<li><strong><?php _e("Redirect Cache","seo-redirection") ?></strong> <?php _e("feature to boost performance and redirect speed.","seo-redirection") ?></li>
|
11 |
+
<li><?php _e("Supports all","seo-redirection") ?> <strong><?php _e("post types","seo-redirection") ?></strong><?php _e("with the capability of activating or deactivating any post type.","seo-redirection") ?> </li>
|
12 |
+
<li><?php _e("More redirect types are available ex.","seo-redirection") ?> ‘<strong><?php _e("StartWith","seo-redirection") ?></strong>’, ‘<strong><?php _e("EndWith","seo-redirection") ?></strong>’, ‘<strong><?php _e("Contain","seo-redirection") ?></strong>’<?php _e(" (To redirect all links that contain some text) or ","seo-redirection") ?>‘<strong><?php _e("Filetype","seo-redirection") ?></strong>’<?php _e(" to let you redirect specific file types like redirecting all .php pages.","seo-redirection") ?></li>
|
13 |
+
<li><strong><?php _e("Regular Expression","seo-redirection") ?></strong> <?php _e("is supported for advanced users.","seo-redirection") ?></li>
|
14 |
+
<li><?php _e("More controls on discovered 404 list, for example filter by views, source(regular visitor or search engine), country or link type (Link, Image, Script or others).","seo-redirection") ?></li>
|
15 |
+
<li><?php _e("Add","seo-redirection") ?> <strong><?php _e("404 rules","seo-redirection") ?></strong><?php _e("to handle 404 redirects as your needs.","seo-redirection") ?> </li>
|
16 |
+
<li><strong><?php _e("General rules","seo-redirection") ?></strong><?php _e(" for 404 errors for example you can choose an image to be displayed instead of any broken images and also can redirect all unknown 404 to home page or to any custom page.","seo-redirection") ?></li>
|
17 |
+
<li><?php _e("Adds an ","seo-redirection") ?><strong><?php _e("auto redirect ","seo-redirection") ?></strong><?php _e(" when detecting a change in any post permalink.","seo-redirection") ?></li>
|
18 |
+
<li><?php _e("Keeps track of","seo-redirection") ?> <strong><?php _e("trashed ","seo-redirection") ?></strong><?php _e("or","seo-redirection") ?> <strong><?php _e("drafted","seo-redirection") ?></strong><?php _e(" posts, and ask you to redirect them to prevent 404 errors.","seo-redirection") ?> </li>
|
19 |
+
<li><strong><?php _e("Import","seo-redirection") ?> </strong><?php _e(" and","seo-redirection") ?> <strong><?php _e("Export","seo-redirection") ?></strong><?php _e(" redirects feature with various options.","seo-redirection") ?></li>
|
20 |
+
<li><?php _e("Supports ","seo-redirection") ?><strong><?php _e("WordPress MU ","seo-redirection") ?></strong><?php _e("installation. ","seo-redirection") ?> </li>
|
21 |
+
<li><?php _e("Friendly and easy to use GUI based on ","seo-redirection") ?><strong><?php _e("bootstrap","seo-redirection") ?></strong>.</li>
|
22 |
</ul>
|
23 |
+
<h2> <?php _e("What will happen to the current redirects in this version?","seo-redirection") ?></h2>
|
24 |
+
<p><?php _e("All the current redirects will remain and appear in the Premium version after upgrade without any problems","seo-redirection") ?></p>
|
25 |
<br/>
|
26 |
|
27 |
|
28 |
+
<p style="text-align: center"><font size="5"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><?php _e("Click Here for Pricing & Review","seo-redirection") ?></a></font></p>
|
29 |
|
30 |
<p style="text-align: center"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><img src="<?php echo esc_url($imgpath) ?>redirect_manager_intro.png"></a></p>
|
31 |
<p style="text-align: center"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><img src="<?php echo esc_url($imgpath) ?>404_manager.png"></a></p>
|
35 |
<p style="text-align: center"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><img src="<?php echo esc_url($imgpath) ?>other_features.png"></a></p>
|
36 |
<p style="text-align: center"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><img src="<?php echo esc_url($imgpath) ?>circles.png"></a></p>
|
37 |
|
38 |
+
<p style="text-align: center"><font size="5"><a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin?src=freeversiom" target="_blank"><?php _e("Click Here for Pricing & Review","seo-redirection") ?></a></font></p>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.clogica.com/donations.htm
|
|
4 |
Tags: post, admin, seo, pages, manage, 301, 404, soft 404, redirect, permalink, redirection, redirection, https, automatic redirection, htaccess, ssl, https redirection, ssl certificate, secure page, secure, force ssl, force https, seo redirection, post redirect, 404 to 301
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 7.
|
8 |
|
9 |
SEO Redirection is a powerful redirect manager to manage 301 redirects without requiring knowledge of Apache .htaccess files.
|
10 |
|
@@ -74,6 +74,10 @@ Yes, here is the plugin full knowledge base http://www.clogica.com/kb/
|
|
74 |
|
75 |
== Upgrade Notice ==
|
76 |
|
|
|
|
|
|
|
|
|
77 |
= 7.4 =
|
78 |
* Escaping data
|
79 |
|
4 |
Tags: post, admin, seo, pages, manage, 301, 404, soft 404, redirect, permalink, redirection, redirection, https, automatic redirection, htaccess, ssl, https redirection, ssl certificate, secure page, secure, force ssl, force https, seo redirection, post redirect, 404 to 301
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 7.5
|
8 |
|
9 |
SEO Redirection is a powerful redirect manager to manage 301 redirects without requiring knowledge of Apache .htaccess files.
|
10 |
|
74 |
|
75 |
== Upgrade Notice ==
|
76 |
|
77 |
+
= 7.5 =
|
78 |
+
* Escaping data
|
79 |
+
|
80 |
+
|
81 |
= 7.4 =
|
82 |
* Escaping data
|
83 |
|
seo-redirection.php
CHANGED
@@ -4,9 +4,9 @@ Plugin Name: SEO Redirection
|
|
4 |
Plugin URI: http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin
|
5 |
Description: By this plugin you can manage all your website redirection types easily.
|
6 |
Author: Fakhri Alsadi
|
7 |
-
Version: 7.
|
8 |
Author URI: http://www.clogica.com
|
9 |
-
Text Domain:
|
10 |
*/
|
11 |
|
12 |
require_once('common/controls.php');
|
@@ -112,7 +112,7 @@ function WPSR_render_meta_box($post)
|
|
112 |
$wpdb->query($wpdb->prepare(" update $table_name set redirect_from=%s where postID=%d ", $permalink, $postID));
|
113 |
if ($util->get_option_value('reflect_modifications') == '1') {
|
114 |
$wpdb->query($wpdb->prepare(" update $table_name set redirect_to=%s where redirect_to=%s ", $permalink, $theurl->redirect_from));
|
115 |
-
$util->info_option_msg('<b>' . __("SEO Redirection", '
|
116 |
}
|
117 |
//-------------------------------------------
|
118 |
}
|
@@ -121,7 +121,7 @@ function WPSR_render_meta_box($post)
|
|
121 |
<table border="0" width="100%" cellpadding="2">
|
122 |
<tr>
|
123 |
<td width="99%"><input onchange="redirect_check_click()" type="checkbox" name="redirect_check" id="redirect_check" value="ON">
|
124 |
-
Redirect <font id="wp_seo_redirection_url_from_label" color="#008000">' . $permalink . '</font><input type="hidden" ID="wp_seo_redirection_url_from" name="wp_seo_redirection_url_from" value="' . $permalink . '"></td>
|
125 |
</tr>
|
126 |
</table>
|
127 |
<div id="redirect_frame">
|
@@ -129,16 +129,16 @@ function WPSR_render_meta_box($post)
|
|
129 |
<tr>
|
130 |
<td>
|
131 |
|
132 |
-
<b>' . __(" Redirect to", '
|
133 |
</tr>
|
134 |
<tr>
|
135 |
<td>
|
136 |
<ul>
|
137 |
-
<li>' . __(" To make a redirection, put the", '
|
138 |
<li>' . __("If you have a caching plugin installed, clear cache to reflect the
|
139 |
-
changes immediately.", '
|
140 |
|
141 |
-
<li>' . __("To remove the redirection, just uncheck the check box above and then click the button", '
|
142 |
</ul>
|
143 |
</td>
|
144 |
</tr>
|
@@ -181,7 +181,7 @@ function redirect_check_click()
|
|
181 |
|
182 |
|
183 |
} else {
|
184 |
-
echo __('You can not make a redirection for the new posts before saving them.', '
|
185 |
}
|
186 |
}
|
187 |
|
@@ -572,7 +572,7 @@ function WPSR_customAddUpdate_callback()
|
|
572 |
$data['bool'] = TRUE;
|
573 |
if (trim($_POST['redirect_from']) == '') {
|
574 |
$data['inputerror'][] = 'redirect_from';
|
575 |
-
$data['error_string'][] = __("You must input the 'Redirect From' URL", "
|
576 |
$data['bool'] = FALSE;
|
577 |
}
|
578 |
|
@@ -581,23 +581,23 @@ function WPSR_customAddUpdate_callback()
|
|
581 |
$wpdb->get_results(" select ID from $table_name where redirect_from='" . trim($redirect_from) . "' ");
|
582 |
if($wpdb->num_rows > 0){
|
583 |
$data['inputerror'][] = 'redirect_from';
|
584 |
-
$data['error_string'][] = __("This 'Redirect From' value already exists in database!", "
|
585 |
$data['bool'] = FALSE;
|
586 |
}
|
587 |
|
588 |
|
589 |
// elseif (!preg_match( '/((http|https)\:\/\/)?[a-zA-Z0-9\.\/\?\:@\-_=#]+\.([a-zA-Z0-9\&\.\/\?\:@\-_=#])*/', $_POST['redirect_from'])) {
|
590 |
// $data['inputerror'][] = 'redirect_from';
|
591 |
-
// $data['error_string'][] = __("Invalid redirect from target URL!",'
|
592 |
// $data['bool'] = FALSE;
|
593 |
// }
|
594 |
if (trim($_POST['redirect_to']) == '') {
|
595 |
$data['inputerror'][] = 'redirect_to';
|
596 |
-
$data['error_string'][] = __("You must input the 'Redirect To' URL", "
|
597 |
$data['bool'] = FALSE;
|
598 |
} elseif ($_POST['edit_exist'] == '' && substr (strtolower ($_POST['redirect_to']), 0, 4)!="http" && substr (strtolower ($_POST['redirect_to']), 0, 1)!="/" ) {
|
599 |
$data['inputerror'][] = 'redirect_to';
|
600 |
-
$data['error_string'][] = __("Invalid redirect target URL!", '
|
601 |
$data['bool'] = FALSE;
|
602 |
}
|
603 |
if ($data['bool'] === FALSE) {
|
@@ -670,14 +670,14 @@ function WPSR_customAddUpdate_callback()
|
|
670 |
$theurl = $wpdb->get_row($wpdb->prepare(" select count(ID) as cnt from $table_name where redirect_from=%s ", $redirect_from));
|
671 |
|
672 |
if ($theurl->cnt > 0) {
|
673 |
-
$msg = __("This URL", '
|
674 |
echo json_encode(array('status' => 'error', 'msg' => $msg));
|
675 |
-
// $util->failure_option_msg(__("This URL",'
|
676 |
} else {
|
677 |
|
678 |
|
679 |
if ($redirect_from == '' || $redirect_to == '' || $redirect_type == '') {
|
680 |
-
$util->failure_option_msg(__('Please input all required fields!', '
|
681 |
} else {
|
682 |
|
683 |
$wpdb->insert($table_name, array(
|
@@ -724,7 +724,7 @@ function WPSR_customAddUpdate_callback()
|
|
724 |
}
|
725 |
|
726 |
if ($util->there_is_cache() != '')
|
727 |
-
$util->info_option_msg(__("You have a cache plugin installed", '
|
728 |
|
729 |
}
|
730 |
|
@@ -748,7 +748,7 @@ function WPSR_customUpdateRec_callback()
|
|
748 |
$item = $wpdb->get_row($wpdb->prepare(" select * from $table_name where ID=%d ", $myid));
|
749 |
|
750 |
if ($wpdb->num_rows == 0) {
|
751 |
-
echo json_encode(array('status' => 'error', 'msg' => __("Sorry, this redirect rule is not found, it may deleted by the user!", '
|
752 |
die;
|
753 |
}
|
754 |
|
@@ -858,19 +858,19 @@ function WPSR_importFromRedirection_callback()
|
|
858 |
$SR_redirect_cache->free_cache();
|
859 |
}
|
860 |
}
|
861 |
-
$msg = __('Total ','
|
862 |
echo json_encode(array('status' => 'success','updateCnt'=>$udtcnt,'insertCnt'=>$inscnt,'msg'=>$msg));
|
863 |
}
|
864 |
else
|
865 |
{
|
866 |
-
$msg = __('No redirects found to import.','
|
867 |
echo json_encode(array('status' => 'error','msg'=>$msg));
|
868 |
}
|
869 |
}
|
870 |
}
|
871 |
else
|
872 |
{
|
873 |
-
$msg = __('Something went wrong plase try again.','
|
874 |
echo json_encode(array('status' => 'error','msg'=>$msg));
|
875 |
}
|
876 |
break;
|
@@ -891,26 +891,26 @@ function WPSR_options_menu()
|
|
891 |
global $util;
|
892 |
|
893 |
if (!current_user_can('manage_options')) {
|
894 |
-
wp_die(__('You do not have sufficient permissions to access this page.', '
|
895 |
}
|
896 |
|
897 |
|
898 |
if ($util->get_option_value('plugin_status') == '0') {
|
899 |
-
$util->info_option_msg(__('SEO Redirection is disabled now, you can go to option tab and enable it!', '
|
900 |
} else if ($util->get_option_value('plugin_status') == '2') {
|
901 |
-
$util->info_option_msg(__('SEO Redirection is', '
|
902 |
}
|
903 |
-
$total_404_errors = (WPSR_Get_total_404() > 10) ? __('You have', '
|
904 |
|
905 |
|
906 |
-
echo '<div class="wrap"><h2>' . __("SEO Redirection Free", '
|
907 |
|
908 |
/*if ($total_404_errors != '') {
|
909 |
|
910 |
?>
|
911 |
<script type="text/javascript">
|
912 |
|
913 |
-
seoredirection.msg = '<?php echo $total_404_errors . '<div class="wrap" style="font-weight:normal; line-height:30px">' . __('Upgrade to', '
|
914 |
|
915 |
</script>
|
916 |
|
@@ -919,7 +919,7 @@ function WPSR_options_menu()
|
|
919 |
|
920 |
if (is_multisite()) {
|
921 |
|
922 |
-
echo '<div class="error" id="message"><p></p><div class="warning_icon"></div>' . __('This version does not support Multisite WordPress installation, you may face troubles like losing redirects when adding new sites to your network, the premium version supports multisite well', '
|
923 |
http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin</a>) <p></p></div>';
|
924 |
|
925 |
}
|
@@ -927,14 +927,14 @@ http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin</a>) <p>
|
|
927 |
$mytabs = new phptab();
|
928 |
|
929 |
$mytabs->set_ignore_parameter(array('del', 'search', 'page_num', 'add', 'edit', 'page404', 'do_404_del'));
|
930 |
-
$mytabs->add_file_tab('cutom', __('Custom Redirects', '
|
931 |
-
$mytabs->add_file_tab('posts', __('Post Redirects', '
|
932 |
-
$mytabs->add_file_tab('history', __('History', '
|
933 |
-
$mytabs->add_file_tab('export_import', __('Export/Import', '
|
934 |
$mytabs->add_file_tab('404','<span style="color:red;"><b>404 Errors</b></span>','option_page_404.php','file');
|
935 |
-
$mytabs->add_file_tab('goptions', __('Options', '
|
936 |
-
$mytabs->add_file_tab('help', '<span style="color:green;"><b>' . __('Help', '
|
937 |
-
$mytabs->add_file_tab('premium', '<span style="color:brown;"><b>► ' . __('Premium Features', '
|
938 |
$mytabs->run();
|
939 |
|
940 |
}
|
@@ -1222,63 +1222,6 @@ function WPSR_HideMessageAjaxFunction()
|
|
1222 |
add_option('nsr_upgrade_message', 'yes');
|
1223 |
}
|
1224 |
|
1225 |
-
/*
|
1226 |
-
function SR_after_plugin_row($plugin_file, $plugin_data, $status)
|
1227 |
-
{
|
1228 |
-
|
1229 |
-
if (get_option('nsr_upgrade_message') != 'yes') {
|
1230 |
-
$class_name = $plugin_data['slug'];
|
1231 |
-
|
1232 |
-
echo '<tr id="' . $class_name . '-plugin-update-tr" class="plugin-update-tr active">';
|
1233 |
-
echo '<td colspan="3" class="plugin-update">';
|
1234 |
-
echo '<div id="' . $class_name . '-upgradeMsg" class="update-message notice inline notice-warning notice-alt" >';
|
1235 |
-
|
1236 |
-
echo 'You are running SEO redirection free. To get more features, you can <a href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><strong>upgrade now</strong></a> or ';
|
1237 |
-
|
1238 |
-
echo '<span id="HideMe" style="cursor:pointer" ><a href="javascript:void(0)"><strong>dismiss</strong></a> this message</span>';
|
1239 |
-
echo '</div>';
|
1240 |
-
echo '</td>';
|
1241 |
-
echo '</tr>';
|
1242 |
-
|
1243 |
-
?>
|
1244 |
-
|
1245 |
-
<script type="text/javascript">
|
1246 |
-
jQuery(document).ready(function () {
|
1247 |
-
var row = jQuery('#<?php echo $class_name;?>-plugin-update-tr').closest('tr').prev();
|
1248 |
-
jQuery(row).addClass('update');
|
1249 |
-
|
1250 |
-
jQuery("#HideMe").click(function () {
|
1251 |
-
jQuery.ajax({
|
1252 |
-
type: 'POST',
|
1253 |
-
url: '<?php echo admin_url();?>/admin-ajax.php',
|
1254 |
-
data: {
|
1255 |
-
action: 'WPSR_HideMessageAjaxFunction'
|
1256 |
-
},
|
1257 |
-
success: function (data, textStatus, XMLHttpRequest) {
|
1258 |
-
|
1259 |
-
jQuery("#<?php echo $class_name;?>-upgradeMsg").hide();
|
1260 |
-
|
1261 |
-
},
|
1262 |
-
error: function (MLHttpRequest, textStatus, errorThrown) {
|
1263 |
-
alert(errorThrown);
|
1264 |
-
}
|
1265 |
-
});
|
1266 |
-
});
|
1267 |
-
|
1268 |
-
});
|
1269 |
-
</script>
|
1270 |
-
|
1271 |
-
<?php
|
1272 |
-
}
|
1273 |
-
}
|
1274 |
-
|
1275 |
-
$path = plugin_basename(__FILE__);
|
1276 |
-
//add_action("after_plugin_row_{$path}", 'SR_after_plugin_row', 10, 3);
|
1277 |
-
// creating Ajax call for WordPress
|
1278 |
-
//add_action('wp_ajax_nopriv_WPSR_HideMessageAjaxFunction', 'WPSR_HideMessageAjaxFunction');
|
1279 |
-
//add_action('wp_ajax_WPSR_HideMessageAjaxFunction', 'WPSR_HideMessageAjaxFunction');
|
1280 |
-
|
1281 |
-
*/
|
1282 |
//---------------------------------------------------------------
|
1283 |
|
1284 |
/* display import from redirection plugin in admin notice */
|
@@ -1301,13 +1244,13 @@ function WPSR_admin_notice_callback() {
|
|
1301 |
?>
|
1302 |
<div class="notice-success notice is-dismissible sr_notice">
|
1303 |
<p>
|
1304 |
-
<strong><?php _e('SEO Redirection : ', '
|
1305 |
<?php
|
1306 |
$SR_import = isset($_GET['SR_import']) ? sanitize_text_field($_GET['SR_import']) : '';
|
1307 |
if($SR_import == 'yes'){?>
|
1308 |
-
<button type='button' data-toggle="modal" class="button" href="#" data-target="#import_modal" value="btn_import"><span style="margin-top: 3px;" class="dashicons dashicons-migrate"></span> <?php _e('Import Now','
|
1309 |
<?php }else{ ?>
|
1310 |
-
<a href="options-general.php?page=seo-redirection.php&tab=export_import&SR_import=yes" data-target="#import_modal" value="btn_import"><?php _e('Import','
|
1311 |
<?php }?>
|
1312 |
</p>
|
1313 |
</div>
|
@@ -1356,10 +1299,10 @@ function WPSR_import_popup_in_footer()
|
|
1356 |
<div class="modal-body">
|
1357 |
<div class="import_msg"></div>
|
1358 |
<div class="progress_wrap"></div>
|
1359 |
-
<h3 class="text-center"><?php echo __('Total ','
|
1360 |
</div>
|
1361 |
<div class="modal-footer">
|
1362 |
-
<input class="button-primary" id="btnImport" type="button" value="Import It" onclick="return import_function(<?php echo
|
1363 |
<input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce = wp_create_nonce('seoredirection_import'); ?>" />
|
1364 |
<input data-dismiss="modal" aria-label="Close" class="button-primary " type="button" value="Cancel" name="cancel">
|
1365 |
</div>
|
4 |
Plugin URI: http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin
|
5 |
Description: By this plugin you can manage all your website redirection types easily.
|
6 |
Author: Fakhri Alsadi
|
7 |
+
Version: 7.5
|
8 |
Author URI: http://www.clogica.com
|
9 |
+
Text Domain: seo-redirection
|
10 |
*/
|
11 |
|
12 |
require_once('common/controls.php');
|
112 |
$wpdb->query($wpdb->prepare(" update $table_name set redirect_from=%s where postID=%d ", $permalink, $postID));
|
113 |
if ($util->get_option_value('reflect_modifications') == '1') {
|
114 |
$wpdb->query($wpdb->prepare(" update $table_name set redirect_to=%s where redirect_to=%s ", $permalink, $theurl->redirect_from));
|
115 |
+
$util->info_option_msg('<b>' . __("SEO Redirection", 'seo-redirection') . '</b>' . __('has detected a change in Permalink, this will be reflected to the redirection records!', 'seo-redirection'));
|
116 |
}
|
117 |
//-------------------------------------------
|
118 |
}
|
121 |
<table border="0" width="100%" cellpadding="2">
|
122 |
<tr>
|
123 |
<td width="99%"><input onchange="redirect_check_click()" type="checkbox" name="redirect_check" id="redirect_check" value="ON">
|
124 |
+
Redirect <font id="wp_seo_redirection_url_from_label" color="#008000">' . esc_html($permalink) . '</font><input type="hidden" ID="wp_seo_redirection_url_from" name="wp_seo_redirection_url_from" value="' . esc_attr($permalink) . '"></td>
|
125 |
</tr>
|
126 |
</table>
|
127 |
<div id="redirect_frame">
|
129 |
<tr>
|
130 |
<td>
|
131 |
|
132 |
+
<b>' . __(" Redirect to", 'seo-redirection') . '</b><input type="text" name="wp_seo_redirection_url" id="wp_seo_redirection_url" value="' . esc_attr($urlredirect_to) . '" size="62"></td>
|
133 |
</tr>
|
134 |
<tr>
|
135 |
<td>
|
136 |
<ul>
|
137 |
+
<li>' . __(" To make a redirection, put the", 'seo-redirection') . ' <b>' . __("URL", 'seo-redirection') . '</b> ' . __("in the text field above and then click the button ", 'seo-redirection') . '<b>' . __("Update", 'seo-redirection') . '</b>.</li>
|
138 |
<li>' . __("If you have a caching plugin installed, clear cache to reflect the
|
139 |
+
changes immediately.", 'seo-redirection') . '</li>
|
140 |
|
141 |
+
<li>' . __("To remove the redirection, just uncheck the check box above and then click the button", 'seo-redirection') . ' <b>' . __("Update", 'seo-redirection') . '</b>.</li>
|
142 |
</ul>
|
143 |
</td>
|
144 |
</tr>
|
181 |
|
182 |
|
183 |
} else {
|
184 |
+
echo __('You can not make a redirection for the new posts before saving them.', 'seo-redirection');
|
185 |
}
|
186 |
}
|
187 |
|
572 |
$data['bool'] = TRUE;
|
573 |
if (trim($_POST['redirect_from']) == '') {
|
574 |
$data['inputerror'][] = 'redirect_from';
|
575 |
+
$data['error_string'][] = __("You must input the 'Redirect From' URL", "seo-redirection");
|
576 |
$data['bool'] = FALSE;
|
577 |
}
|
578 |
|
581 |
$wpdb->get_results(" select ID from $table_name where redirect_from='" . trim($redirect_from) . "' ");
|
582 |
if($wpdb->num_rows > 0){
|
583 |
$data['inputerror'][] = 'redirect_from';
|
584 |
+
$data['error_string'][] = __("This 'Redirect From' value already exists in database!", "seo-redirection");
|
585 |
$data['bool'] = FALSE;
|
586 |
}
|
587 |
|
588 |
|
589 |
// elseif (!preg_match( '/((http|https)\:\/\/)?[a-zA-Z0-9\.\/\?\:@\-_=#]+\.([a-zA-Z0-9\&\.\/\?\:@\-_=#])*/', $_POST['redirect_from'])) {
|
590 |
// $data['inputerror'][] = 'redirect_from';
|
591 |
+
// $data['error_string'][] = __("Invalid redirect from target URL!",'seo-redirection');
|
592 |
// $data['bool'] = FALSE;
|
593 |
// }
|
594 |
if (trim($_POST['redirect_to']) == '') {
|
595 |
$data['inputerror'][] = 'redirect_to';
|
596 |
+
$data['error_string'][] = __("You must input the 'Redirect To' URL", "seo-redirection");
|
597 |
$data['bool'] = FALSE;
|
598 |
} elseif ($_POST['edit_exist'] == '' && substr (strtolower ($_POST['redirect_to']), 0, 4)!="http" && substr (strtolower ($_POST['redirect_to']), 0, 1)!="/" ) {
|
599 |
$data['inputerror'][] = 'redirect_to';
|
600 |
+
$data['error_string'][] = __("Invalid redirect target URL!", 'seo-redirection');
|
601 |
$data['bool'] = FALSE;
|
602 |
}
|
603 |
if ($data['bool'] === FALSE) {
|
670 |
$theurl = $wpdb->get_row($wpdb->prepare(" select count(ID) as cnt from $table_name where redirect_from=%s ", $redirect_from));
|
671 |
|
672 |
if ($theurl->cnt > 0) {
|
673 |
+
$msg = __("This URL", 'seo-redirection') . " <b>'$redirect_from'</b>" . __("is added previously!", 'seo-redirection');
|
674 |
echo json_encode(array('status' => 'error', 'msg' => $msg));
|
675 |
+
// $util->failure_option_msg(__("This URL",'seo-redirection')." <b>'$redirect_from'</b>". __("is added previously!",'seo-redirection'));
|
676 |
} else {
|
677 |
|
678 |
|
679 |
if ($redirect_from == '' || $redirect_to == '' || $redirect_type == '') {
|
680 |
+
$util->failure_option_msg(__('Please input all required fields!', 'seo-redirection'));
|
681 |
} else {
|
682 |
|
683 |
$wpdb->insert($table_name, array(
|
724 |
}
|
725 |
|
726 |
if ($util->there_is_cache() != '')
|
727 |
+
$util->info_option_msg(__("You have a cache plugin installed", 'seo-redirection') . " <b>'" . $util->there_is_cache() . "'</b>, " . __("you have to clear cache after any changes to get the changes reflected immediately! ", 'seo-redirection'));
|
728 |
|
729 |
}
|
730 |
|
748 |
$item = $wpdb->get_row($wpdb->prepare(" select * from $table_name where ID=%d ", $myid));
|
749 |
|
750 |
if ($wpdb->num_rows == 0) {
|
751 |
+
echo json_encode(array('status' => 'error', 'msg' => __("Sorry, this redirect rule is not found, it may deleted by the user!", 'seo-redirection')));
|
752 |
die;
|
753 |
}
|
754 |
|
858 |
$SR_redirect_cache->free_cache();
|
859 |
}
|
860 |
}
|
861 |
+
$msg = __('Total ','seo-redirection').'<span class="insert_cnt">'.$inscnt.'</span>'.__(' record(s) inserted and ','seo-redirection').'<span class="update_cnt">'.$udtcnt.'</span>'.__(' record(s) updated.','seo-redirection');
|
862 |
echo json_encode(array('status' => 'success','updateCnt'=>$udtcnt,'insertCnt'=>$inscnt,'msg'=>$msg));
|
863 |
}
|
864 |
else
|
865 |
{
|
866 |
+
$msg = __('No redirects found to import.','seo-redirection');
|
867 |
echo json_encode(array('status' => 'error','msg'=>$msg));
|
868 |
}
|
869 |
}
|
870 |
}
|
871 |
else
|
872 |
{
|
873 |
+
$msg = __('Something went wrong plase try again.','seo-redirection');
|
874 |
echo json_encode(array('status' => 'error','msg'=>$msg));
|
875 |
}
|
876 |
break;
|
891 |
global $util;
|
892 |
|
893 |
if (!current_user_can('manage_options')) {
|
894 |
+
wp_die(__('You do not have sufficient permissions to access this page.', 'seo-redirection'));
|
895 |
}
|
896 |
|
897 |
|
898 |
if ($util->get_option_value('plugin_status') == '0') {
|
899 |
+
$util->info_option_msg(__('SEO Redirection is disabled now, you can go to option tab and enable it!', 'seo-redirection'));
|
900 |
} else if ($util->get_option_value('plugin_status') == '2') {
|
901 |
+
$util->info_option_msg(__('SEO Redirection is', 'seo-redirection') . ' <b>' . __('disabled for admin', 'seo-redirection') . '</b>' . __(' only, you can go to option tab and enable it!', 'seo-redirection'));
|
902 |
}
|
903 |
+
$total_404_errors = (WPSR_Get_total_404() > 10) ? __('You have', 'seo-redirection') . ' <b style="color:red; background-color:yellow; padding:3px;"> too many </b>' . __(' broken link (404 links)', 'seo-redirection') . ', <br>' : '';
|
904 |
|
905 |
|
906 |
+
echo '<div class="wrap"><h2>' . __("SEO Redirection Free", 'seo-redirection') . '</h2><b>' . __('Upgrade to', 'seo-redirection') . ' <a target="_blank" onclick="swal.clickConfirm();" href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin">' . __("Pro Version", "seo-redirection") . '</a>' . __(" to manage 404 errors and empower your site SEO", "seo-redirection") . ' <strong style="color:yellow; background-color:red; padding:3px;"> ' . __("NOW 50% OFF ", 'seo-redirection') . '</strong></b><br/><br/>';
|
907 |
|
908 |
/*if ($total_404_errors != '') {
|
909 |
|
910 |
?>
|
911 |
<script type="text/javascript">
|
912 |
|
913 |
+
seoredirection.msg = '<?php echo $total_404_errors . '<div class="wrap" style="font-weight:normal; line-height:30px">' . __('Upgrade to', 'seo-redirection') . ' <a target="_blank" href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin">' . __("Pro Version", "seo-redirection") . '</a>' . __(" to manage 404 errors and empower your site SEO", "seo-redirection") ?></div>';
|
914 |
|
915 |
</script>
|
916 |
|
919 |
|
920 |
if (is_multisite()) {
|
921 |
|
922 |
+
echo '<div class="error" id="message"><p></p><div class="warning_icon"></div>' . __('This version does not support Multisite WordPress installation, you may face troubles like losing redirects when adding new sites to your network, the premium version supports multisite well', 'seo-redirection') . '(<a target="_blank" href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin">
|
923 |
http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin</a>) <p></p></div>';
|
924 |
|
925 |
}
|
927 |
$mytabs = new phptab();
|
928 |
|
929 |
$mytabs->set_ignore_parameter(array('del', 'search', 'page_num', 'add', 'edit', 'page404', 'do_404_del'));
|
930 |
+
$mytabs->add_file_tab('cutom', __('Custom Redirects', 'seo-redirection'), 'option_page_custome_redirection.php', 'file');
|
931 |
+
$mytabs->add_file_tab('posts', __('Post Redirects', 'seo-redirection'), 'option_page_post_redirection_list.php', 'file');
|
932 |
+
$mytabs->add_file_tab('history', __('History', 'seo-redirection'), 'option_page_history.php', 'file');
|
933 |
+
$mytabs->add_file_tab('export_import', __('Export/Import', 'seo-redirection'), 'option_export_import.php', 'file');
|
934 |
$mytabs->add_file_tab('404','<span style="color:red;"><b>404 Errors</b></span>','option_page_404.php','file');
|
935 |
+
$mytabs->add_file_tab('goptions', __('Options', 'seo-redirection'), 'option_page_goptions.php', 'file');
|
936 |
+
$mytabs->add_file_tab('help', '<span style="color:green;"><b>' . __('Help', 'seo-redirection') . '</b></span>', 'help.php', 'file');
|
937 |
+
$mytabs->add_file_tab('premium', '<span style="color:brown;"><b>► ' . __('Premium Features', 'seo-redirection') . '</b></span>', 'premium.php', 'file');
|
938 |
$mytabs->run();
|
939 |
|
940 |
}
|
1222 |
add_option('nsr_upgrade_message', 'yes');
|
1223 |
}
|
1224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1225 |
//---------------------------------------------------------------
|
1226 |
|
1227 |
/* display import from redirection plugin in admin notice */
|
1244 |
?>
|
1245 |
<div class="notice-success notice is-dismissible sr_notice">
|
1246 |
<p>
|
1247 |
+
<strong><?php _e('SEO Redirection : ', 'seo-redirection'); ?></strong><?php echo __( 'The plugin detected ','seo-redirection').intval($total).__(' redirects in the Redirection plugin, Import it now. ','seo-redirection'); ?>
|
1248 |
<?php
|
1249 |
$SR_import = isset($_GET['SR_import']) ? sanitize_text_field($_GET['SR_import']) : '';
|
1250 |
if($SR_import == 'yes'){?>
|
1251 |
+
<button type='button' data-toggle="modal" class="button" href="#" data-target="#import_modal" value="btn_import"><span style="margin-top: 3px;" class="dashicons dashicons-migrate"></span> <?php _e('Import Now','seo-redirection'); ?></button>
|
1252 |
<?php }else{ ?>
|
1253 |
+
<a href="options-general.php?page=seo-redirection.php&tab=export_import&SR_import=yes" data-target="#import_modal" value="btn_import"><?php _e('Import','seo-redirection'); ?></a>
|
1254 |
<?php }?>
|
1255 |
</p>
|
1256 |
</div>
|
1299 |
<div class="modal-body">
|
1300 |
<div class="import_msg"></div>
|
1301 |
<div class="progress_wrap"></div>
|
1302 |
+
<h3 class="text-center"><?php echo __('Total ','seo-redirection').intval($total).__(' redirects from redirection plugin','seo-redirection'); ?></h3>
|
1303 |
</div>
|
1304 |
<div class="modal-footer">
|
1305 |
+
<input class="button-primary" id="btnImport" type="button" value="Import It" onclick="return import_function(<?php echo esc_js($total_org); ?>,0)">
|
1306 |
<input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce = wp_create_nonce('seoredirection_import'); ?>" />
|
1307 |
<input data-dismiss="modal" aria-label="Close" class="button-primary " type="button" value="Cancel" name="cancel">
|
1308 |
</div>
|