WP Maintenance - Version 6.0.7

Version Description

  • Remove Slider option
  • Several security patches brought
Download this release

Release Info

Developer Florent73
Plugin Icon 128x128 WP Maintenance
Version 6.0.7
Comparing to
See all releases

Code changes from version 6.0.6 to 6.0.7

Files changed (82) hide show
  1. classes/slider.php +0 -190
  2. classes/wp-maintenance.php +2 -41
  3. includes/functions.php +1 -1
  4. readme.txt +5 -2
  5. socialicons/style5/128/social-002-round_dribbble.png +0 -0
  6. socialicons/style5/128/social-003-round_twitter.png +0 -0
  7. socialicons/style5/128/social-004-round_flickr.png +0 -0
  8. socialicons/style5/128/social-005-round_twitter.png +0 -0
  9. socialicons/style5/128/social-006-round_facebook.png +0 -0
  10. socialicons/style5/128/social-007-round_skype.png +0 -0
  11. socialicons/style5/128/social-009-round_google.png +0 -0
  12. socialicons/style5/128/social-011-round_linkedin.png +0 -0
  13. socialicons/style5/128/social-013-round_vimeo.png +0 -0
  14. socialicons/style5/128/social-015-round_tumblr.png +0 -0
  15. socialicons/style5/128/social-016-round_apple.png +0 -0
  16. socialicons/style5/128/social-018-round_youtube.png +0 -0
  17. socialicons/style5/128/social-022-round_deviantart.png +0 -0
  18. socialicons/style5/128/social-025-round_blogger.png +0 -0
  19. socialicons/style5/128/social-026-round_wordpress.png +0 -0
  20. socialicons/style5/128/social-029-round_paypal.png +0 -0
  21. socialicons/style5/128/social-032-round_windows8.png +0 -0
  22. socialicons/style5/128/social-033-round_pinterest.png +0 -0
  23. socialicons/style5/128/social-034-round_soundcloud.png +0 -0
  24. socialicons/style5/128/social-036-round_android.png +0 -0
  25. socialicons/style5/128/social-037-round_behance.png +0 -0
  26. socialicons/style5/128/social-038-round_instagram.png +0 -0
  27. socialicons/style5/128/social-040-round_google_plus.png +0 -0
  28. socialicons/style5/128/social-050-round_evernote.png +0 -0
  29. socialicons/style5/256/social-002-round_dribbble.png +0 -0
  30. socialicons/style5/256/social-003-round_twitter.png +0 -0
  31. socialicons/style5/256/social-004-round_flickr.png +0 -0
  32. socialicons/style5/256/social-005-round_twitter.png +0 -0
  33. socialicons/style5/256/social-006-round_facebook.png +0 -0
  34. socialicons/style5/256/social-007-round_skype.png +0 -0
  35. socialicons/style5/256/social-011-round_linkedin.png +0 -0
  36. socialicons/style5/256/social-013-round_vimeo.png +0 -0
  37. socialicons/style5/256/social-015-round_tumblr.png +0 -0
  38. socialicons/style5/256/social-016-round_apple.png +0 -0
  39. socialicons/style5/256/social-018-round_youtube.png +0 -0
  40. socialicons/style5/256/social-022-round_deviantart.png +0 -0
  41. socialicons/style5/256/social-022_deviantart.png +0 -0
  42. socialicons/style5/256/social-025-round_blogger.png +0 -0
  43. socialicons/style5/256/social-026-round_wordpress.png +0 -0
  44. socialicons/style5/256/social-029-round_paypal.png +0 -0
  45. socialicons/style5/256/social-032_windows8.png +0 -0
  46. socialicons/style5/256/social-033-round_pinterest.png +0 -0
  47. socialicons/style5/256/social-034-round_soundcloud.png +0 -0
  48. socialicons/style5/256/social-036-round_android.png +0 -0
  49. socialicons/style5/256/social-037-round_behance.png +0 -0
  50. socialicons/style5/256/social-038-round_instagram.png +0 -0
  51. socialicons/style5/256/social-040-round_google_plus.png +0 -0
  52. socialicons/style5/256/social-050-round_evernote.png +0 -0
  53. socialicons/style5/32/social-002-round_dribbble.png +0 -0
  54. socialicons/style5/32/social-003-round_twitter.png +0 -0
  55. socialicons/style5/32/social-004-round_flickr.png +0 -0
  56. socialicons/style5/32/social-005-round_twitter.png +0 -0
  57. socialicons/style5/32/social-006-round_facebook.png +0 -0
  58. socialicons/style5/32/social-007-round_skype.png +0 -0
  59. socialicons/style5/32/social-009-round_google.png +0 -0
  60. socialicons/style5/32/social-011-round_linkedin.png +0 -0
  61. socialicons/style5/32/social-013-round_vimeo.png +0 -0
  62. socialicons/style5/32/social-015-round_tumblr.png +0 -0
  63. socialicons/style5/32/social-016-round_apple.png +0 -0
  64. socialicons/style5/32/social-018-round_youtube.png +0 -0
  65. socialicons/style5/32/social-022-round_deviantart.png +0 -0
  66. socialicons/style5/32/social-025-round_blogger.png +0 -0
  67. socialicons/style5/32/social-026-round_wordpress.png +0 -0
  68. socialicons/style5/32/social-029-round_paypal.png +0 -0
  69. socialicons/style5/32/social-032-round_windows8.png +0 -0
  70. socialicons/style5/32/social-033-round_pinterest.png +0 -0
  71. socialicons/style5/32/social-034-round_soundcloud.png +0 -0
  72. socialicons/style5/32/social-036-round_android.png +0 -0
  73. socialicons/style5/32/social-037-round_behance.png +0 -0
  74. socialicons/style5/32/social-038-round_instagram.png +0 -0
  75. socialicons/style5/32/social-040-round_google_plus.png +0 -0
  76. socialicons/style5/32/social-050-round_evernote.png +0 -0
  77. themes/default/functions.php +0 -15
  78. views/wp-maintenance-css.php +1 -1
  79. views/wp-maintenance-footer.php +1 -1
  80. views/wp-maintenance-picture.php +2 -124
  81. views/wp-maintenance-socialnetworks.php +3 -3
  82. wp-maintenance.php +2 -3
classes/slider.php DELETED
@@ -1,190 +0,0 @@
1
- <?php
2
-
3
-
4
- class WPM_Slider extends WP_maintenance {
5
-
6
- var $errors = array();
7
-
8
- public $displaySlider = '';
9
- public $position = 'belowtext';
10
- public $slides = '';
11
-
12
- public static function slider_css() {
13
-
14
- // Récupère les paramètres sauvegardés
15
- $paramMMode = wp_maintenance::wpm_get_options();
16
-
17
- if( isset($paramSliderOptions['slider_width']) ) { $wpmSliderWidth = $paramSliderOptions['slider_width']; } else { $wpmSliderWidth = 50; }
18
- $addCssSlider = '';
19
- if( isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==1 ) {
20
- $addCssSlider = '
21
- <link rel="stylesheet" href="'.WP_PLUGIN_URL.'/wp-maintenance/css/wpm-slideshow.css">
22
- <link rel="stylesheet" href="'.WP_PLUGIN_URL.'/wp-maintenance/css/wpm-responsiveslides.css">
23
- <style type=\'text/css\'>
24
- .centered-btns_nav { background: transparent url("'.WP_PLUGIN_URL.'/wp-maintenance/images/themes.gif") no-repeat left top; }
25
- .large-btns_nav { background: #000 url("'.WP_PLUGIN_URL.'/wp-maintenance/images/themes.gif") no-repeat left 50%; }
26
- .callbacks_container { width: '.$wpmSliderWidth.'%; }
27
- @media (max-width: 640px) {
28
- .callbacks_container {
29
- width: 95%;
30
- }
31
- .callbacks_nav {
32
- top: 57%;
33
- }
34
- }
35
- .callbacks_nav { background: transparent url("'.WP_PLUGIN_URL.'/wp-maintenance/images/themes.gif") no-repeat left top; }
36
- </style>
37
-
38
- ';
39
- }
40
- return $addCssSlider;
41
- }
42
-
43
- public static function slider_scripts() {
44
-
45
- // Récupère les paramètres sauvegardés
46
- $paramMMode = wp_maintenance::wpm_get_options();
47
- $addScriptSlider = '';
48
- if( isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==1 ) {
49
- $addScriptSlider = '
50
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
51
- <script src="'.WP_PLUGIN_URL.'/wp-maintenance/js/wpm-responsiveslides.min.js"></script>';
52
- }
53
- return $addScriptSlider;
54
-
55
- }
56
- public static function slider_functions() {
57
-
58
- // Récupère les paramètres sauvegardés
59
- $paramMMode = wp_maintenance::wpm_get_options();
60
- $addScriptSlideshow = '';
61
-
62
- if( isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==1 ) {
63
-
64
- if(get_option('wp_maintenance_slider')) { extract(get_option('wp_maintenance_slider')); }
65
- $paramSlider = get_option('wp_maintenance_slider');
66
-
67
- if(get_option('wp_maintenance_slider_options')) { extract(get_option('wp_maintenance_slider_options')); }
68
- $paramSliderOptions = get_option('wp_maintenance_slider_options');
69
-
70
- if( isset($paramSlider['slider_image']) && !empty($paramSlider['slider_image']) ) {
71
- $lastKeySlide = key($paramSlider['slider_image']);
72
- }
73
-
74
- $wpmSliderAuto = 'true';
75
- if( isset( $paramSliderOptions['slider_auto'] ) && $paramSliderOptions['slider_auto']!='' ) {
76
- $wpmSliderAuto = $paramSliderOptions['slider_auto'];
77
- }
78
- $wpmSliderSpeed = 500;
79
- if( isset( $paramSliderOptions['slider_speed'] ) && $paramSliderOptions['slider_speed']!='' ) {
80
- $wpmSliderSpeed = $paramSliderOptions['slider_speed'];
81
- }
82
- $wpmSliderNav = 'false';
83
- if( isset( $paramSliderOptions['slider_nav'] ) && $paramSliderOptions['slider_nav']!='' ) {
84
- $wpmSliderNav = $paramSliderOptions['slider_nav'];
85
- }
86
-
87
-
88
- $addScriptSlideshow = '
89
- <script>
90
- // You can also use "$(window).load(function() {"
91
- $(function () {';
92
-
93
- $addScriptSlideshow .= '
94
- $("#wpmslider").responsiveSlides({
95
- auto: '.$wpmSliderAuto.',
96
- pager: false,
97
- nav: '.$wpmSliderNav.',
98
- speed: '.$wpmSliderSpeed.',
99
- prevText: "'.__('Previous', 'wp-maintenance').'",
100
- nextText: "'.__('Next', 'wp-maintenance').'",
101
- namespace: "callbacks",';
102
- $addScriptSlideshow .= "
103
- before: function () {
104
- $('.events').append(\"<li>before event fired.</li>\");
105
- },
106
- after: function () {
107
- $('.events').append(\"<li>after event fired.</li>\");
108
- }
109
- });";
110
-
111
- $addScriptSlideshow .= '
112
- });
113
- </script>';
114
- }
115
- return $addScriptSlideshow;
116
- }
117
-
118
- public static function slidershow($position) {
119
-
120
- // Récupère les paramètres sauvegardés
121
- $paramMMode = wp_maintenance::wpm_get_options();
122
- $positionSlider = '';
123
-
124
- if( isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==1 ) {
125
-
126
- if(get_option('wp_maintenance_slider')) { extract(get_option('wp_maintenance_slider')); }
127
- $paramSlider = get_option('wp_maintenance_slider');
128
-
129
- if(get_option('wp_maintenance_slider_options')) { extract(get_option('wp_maintenance_slider_options')); }
130
- $paramSliderOptions = get_option('wp_maintenance_slider_options');
131
-
132
- $slides = '
133
-
134
- <!-- Slideshow 4 -->
135
- <div class="callbacks_container">
136
- <ul class="rslides" id="wpmslider">';
137
- foreach($paramSlider['slider_image'] as $numSlide=>$slide) {
138
-
139
- if( $paramSlider['slider_image'][$numSlide]['image'] != '' ) {
140
- $slideImg = '';
141
- if( isset($paramSlider['slider_image'][$numSlide]['image']) ) {
142
- $slideImg = $paramSlider['slider_image'][$numSlide]['image'];
143
- }
144
- $slideLink = '';
145
- if( isset($paramSlider['slider_image'][$numSlide]['link']) ) {
146
- $slideLink = $paramSlider['slider_image'][$numSlide]['link'];
147
- }
148
- $slideText = '';
149
- if( isset($paramSlider['slider_image'][$numSlide]['text']) ) {
150
- $slideText = stripslashes($paramSlider['slider_image'][$numSlide]['text']);
151
- }
152
- $slides .= '
153
- <li>';
154
- if( $slideLink!='' && filter_var($slideLink, FILTER_VALIDATE_URL) ) {
155
- $slides .= '
156
- <a href="'.$slideLink.'" target="_bank">';
157
- }
158
- $slides .= '<img src="'.$slideImg.'" alt="'.$slideText.'" title="'.$slideText.'">';
159
- if( $slideText!='' ) {
160
- $slides .= '
161
- <p class="caption">'.$slideText.'</p>';
162
- }
163
- if( $slideLink!='' && filter_var($slideLink, FILTER_VALIDATE_URL) ) {
164
- $slides .= '</a>';
165
- }
166
- $slides .= '
167
- </li>';
168
- }
169
- }
170
- $slides .= '</ul>
171
- </div>';
172
-
173
- $positionSlider = $paramSliderOptions['slider_position'];
174
-
175
- if( isset($position) && $position!='' ) {
176
-
177
- if( $positionSlider == $position ) {
178
- $positionSlider = $slides;
179
- } else {
180
- $positionSlider = '';
181
- }
182
-
183
- }
184
-
185
- }
186
-
187
- return $positionSlider;
188
- }
189
-
190
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/wp-maintenance.php CHANGED
@@ -30,7 +30,6 @@ class WP_maintenance {
30
  add_action( 'admin_menu', array( &$this, 'wpm_add_admin') );
31
  add_filter( 'plugin_action_links_wp-maintenance/wp-maintenance.php', array( &$this, 'wpm_plugin_action_links'), 10, 3 );
32
  add_action( 'admin_head', array( &$this, 'wpm_admin_head') );
33
- add_action( 'init', array( &$this, 'wpm_date_picker') );
34
  add_action( 'admin_bar_menu', array( &$this, 'wpm_add_menu_admin_bar'), 999 );
35
  add_action( 'admin_footer', array( &$this, 'wpm_print_footer_scripts') );
36
  add_action( 'admin_init', array( &$this, 'wpm_process_settings_import') );
@@ -53,11 +52,6 @@ class WP_maintenance {
53
  }
54
 
55
  public static function wpm_dashboard_install() {
56
-
57
- $nameServer = '';
58
- if( isset($_SERVER['SERVER_NAME']) ) {
59
- $nameServer = $_SERVER['SERVER_NAME'];
60
- }
61
 
62
  $wpMaintenanceAdminOptions = array(
63
  'color_bg' => "#f1f1f1",
@@ -101,8 +95,6 @@ class WP_maintenance {
101
  'type_newletter' => 'shortcode',
102
  'title_newletter' => '',
103
  'code_newletter' => '',
104
- 'code_analytics' => '',
105
- 'domain_analytics' => $nameServer,
106
  'text_bt_maintenance' => '',
107
  'add_wplogin' => 0,
108
  'b_enable_image' => 0,
@@ -118,9 +110,6 @@ class WP_maintenance {
118
  'color_cpt_bg' => '',
119
  'font_end_cpt' => 'PT Sans',
120
  'cpt_end_size' => 3,
121
- 'enable_slider' => 0,
122
- 'slider_auto' => 'false',
123
- 'slider_nav' => 'false',
124
  'container_active' => 0,
125
  'container_color' => '#ffffff',
126
  'container_opacity' => '0.5',
@@ -182,8 +171,6 @@ class WP_maintenance {
182
  delete_option('wp_maintenance_social');
183
  delete_option('wp_maintenance_social_options');
184
  delete_option('wp_maintenance_social');
185
- delete_option('wp_maintenance_slider_options');
186
- delete_option('wp_maintenance_slider');
187
  delete_option('wp_maintenance_ipaddresses');
188
 
189
  }
@@ -340,17 +327,6 @@ class WP_maintenance {
340
  }
341
  }
342
 
343
- /* DATEPICKER */
344
- function wpm_date_picker() {
345
-
346
- if (isset($_GET['page']) && strpos($_GET['page'], 'wp-maintenance') !==false) {
347
- wp_enqueue_script( 'jquery' );
348
- wp_enqueue_script('jquery-ui-datepicker');
349
- wp_enqueue_style('jquery-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
350
- }
351
-
352
- }
353
-
354
  function wpm_init_wysiwyg() {
355
  wp_enqueue_script('editor');
356
  add_thickbox();
@@ -370,7 +346,7 @@ class WP_maintenance {
370
 
371
  function wpm_add_admin() {
372
 
373
- add_menu_page( 'WP Maintenance Settings', 'WP Maintenance', 'manage_options', 'wp-maintenance', array( $this, 'wpm_dashboard_page'), plugins_url( '/wp-maintenance/images/wpm-menu-icon.png' ) );
374
  add_submenu_page( 'wp-maintenance', 'WP Maintenance > '.__('General', 'wp-maintenance'), __('General', 'wp-maintenance'), 'manage_options', 'wp-maintenance', array( $this, 'wpm_dashboard_page') );
375
  add_submenu_page( 'wp-maintenance', 'WP Maintenance > '.__('Colors & Fonts', 'wp-maintenance'), __('Colors & Fonts', 'wp-maintenance'), 'manage_options', 'wp-maintenance-colors', array( $this, 'wpm_colors_page') );
376
  add_submenu_page( 'wp-maintenance', 'WP Maintenance > '.__('Pictures', 'wp-maintenance'), __('Pictures', 'wp-maintenance'), 'manage_options', 'wp-maintenance-picture', array( $this, 'wpm_picture_page') );
@@ -401,7 +377,6 @@ class WP_maintenance {
401
  wp_enqueue_script( 'my-script-handle', WPM_PLUGIN_URL.'js/wpm-color-options.js', array( 'wp-color-picker' ), false, true );
402
 
403
  wp_enqueue_style('thickbox');
404
- wp_enqueue_style('jquery-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
405
 
406
  /* Image picker */
407
  wp_enqueue_style('imagepicker');
@@ -546,8 +521,6 @@ class WP_maintenance {
546
  'settings' => get_option('wp_maintenance_settings'),
547
  'social' => get_option('wp_maintenance_social'),
548
  'social_options' => get_option('wp_maintenance_social_options'),
549
- 'slider' => get_option('wp_maintenance_slider'),
550
- 'slider_options' => get_option('wp_maintenance_slider_options'),
551
  'limit' => get_option('wp_maintenance_limit'),
552
  'ipaddresses' => get_option('wp_maintenance_ipaddresses'),
553
  'style' => get_option('wp_maintenance_style')
@@ -579,7 +552,7 @@ class WP_maintenance {
579
  if( ! current_user_can( 'manage_options' ) )
580
  return;
581
 
582
- $extensionExploded = explode('.', $_FILES['wpm_import_file']['name']);
583
  $extension = strtolower(end($extensionExploded));
584
 
585
  if( $extension != 'json' ) {
@@ -677,12 +650,6 @@ class WP_maintenance {
677
  if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
678
  $paramMMode = get_option('wp_maintenance_settings');
679
 
680
- if(get_option('wp_maintenance_slider')) { extract(get_option('wp_maintenance_slider')); }
681
- $paramSlider = get_option('wp_maintenance_slider');
682
-
683
- if(get_option('wp_maintenance_slider_options')) { extract(get_option('wp_maintenance_slider_options')); }
684
- $paramSliderOptions = get_option('wp_maintenance_slider_options');
685
-
686
  $paramSocialOption = get_option('wp_maintenance_social_options');
687
 
688
  /* on doit retourner 12/31/2020 5:00 AM */
@@ -780,13 +747,7 @@ class WP_maintenance {
780
  "{FooterText}" => wpm_footer_text(),
781
  "{AddStyleWysija}" => sanitize_text_field(wpm_stylenewsletter()),
782
  "{Newsletter}" => wpm_newsletter(),
783
- "{SliderCSS}" => WPM_Slider::slider_css(),
784
- "{ScriptSlider}" => WPM_Slider::slider_scripts(),
785
- "{ScriptSlideshow}" => WPM_Slider::slider_functions(),
786
  "{Counter}" => WPM_Countdown::display($dateCpt),
787
- "{SlideshowAL}" => WPM_Slider::slidershow('abovelogo'),
788
- "{SlideshowBL}" => WPM_Slider::slidershow('belowlogo'),
789
- "{SlideshowBT}" => WPM_Slider::slidershow('belowtext'),
790
  "{Url}" => WPM_PLUGIN_URL
791
  );
792
 
30
  add_action( 'admin_menu', array( &$this, 'wpm_add_admin') );
31
  add_filter( 'plugin_action_links_wp-maintenance/wp-maintenance.php', array( &$this, 'wpm_plugin_action_links'), 10, 3 );
32
  add_action( 'admin_head', array( &$this, 'wpm_admin_head') );
 
33
  add_action( 'admin_bar_menu', array( &$this, 'wpm_add_menu_admin_bar'), 999 );
34
  add_action( 'admin_footer', array( &$this, 'wpm_print_footer_scripts') );
35
  add_action( 'admin_init', array( &$this, 'wpm_process_settings_import') );
52
  }
53
 
54
  public static function wpm_dashboard_install() {
 
 
 
 
 
55
 
56
  $wpMaintenanceAdminOptions = array(
57
  'color_bg' => "#f1f1f1",
95
  'type_newletter' => 'shortcode',
96
  'title_newletter' => '',
97
  'code_newletter' => '',
 
 
98
  'text_bt_maintenance' => '',
99
  'add_wplogin' => 0,
100
  'b_enable_image' => 0,
110
  'color_cpt_bg' => '',
111
  'font_end_cpt' => 'PT Sans',
112
  'cpt_end_size' => 3,
 
 
 
113
  'container_active' => 0,
114
  'container_color' => '#ffffff',
115
  'container_opacity' => '0.5',
171
  delete_option('wp_maintenance_social');
172
  delete_option('wp_maintenance_social_options');
173
  delete_option('wp_maintenance_social');
 
 
174
  delete_option('wp_maintenance_ipaddresses');
175
 
176
  }
327
  }
328
  }
329
 
 
 
 
 
 
 
 
 
 
 
 
330
  function wpm_init_wysiwyg() {
331
  wp_enqueue_script('editor');
332
  add_thickbox();
346
 
347
  function wpm_add_admin() {
348
 
349
+ add_menu_page( 'WP Maintenance Settings', 'WP Maintenance', 'manage_options', 'wp-maintenance', array( $this, 'wpm_dashboard_page'), plugins_url( '/wp-maintenance/images/wpm-menu-icon.png', __FILE__ ) );
350
  add_submenu_page( 'wp-maintenance', 'WP Maintenance > '.__('General', 'wp-maintenance'), __('General', 'wp-maintenance'), 'manage_options', 'wp-maintenance', array( $this, 'wpm_dashboard_page') );
351
  add_submenu_page( 'wp-maintenance', 'WP Maintenance > '.__('Colors & Fonts', 'wp-maintenance'), __('Colors & Fonts', 'wp-maintenance'), 'manage_options', 'wp-maintenance-colors', array( $this, 'wpm_colors_page') );
352
  add_submenu_page( 'wp-maintenance', 'WP Maintenance > '.__('Pictures', 'wp-maintenance'), __('Pictures', 'wp-maintenance'), 'manage_options', 'wp-maintenance-picture', array( $this, 'wpm_picture_page') );
377
  wp_enqueue_script( 'my-script-handle', WPM_PLUGIN_URL.'js/wpm-color-options.js', array( 'wp-color-picker' ), false, true );
378
 
379
  wp_enqueue_style('thickbox');
 
380
 
381
  /* Image picker */
382
  wp_enqueue_style('imagepicker');
521
  'settings' => get_option('wp_maintenance_settings'),
522
  'social' => get_option('wp_maintenance_social'),
523
  'social_options' => get_option('wp_maintenance_social_options'),
 
 
524
  'limit' => get_option('wp_maintenance_limit'),
525
  'ipaddresses' => get_option('wp_maintenance_ipaddresses'),
526
  'style' => get_option('wp_maintenance_style')
552
  if( ! current_user_can( 'manage_options' ) )
553
  return;
554
 
555
+ $extensionExploded = explode('.', esc_url($_FILES['wpm_import_file']['name']));
556
  $extension = strtolower(end($extensionExploded));
557
 
558
  if( $extension != 'json' ) {
650
  if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
651
  $paramMMode = get_option('wp_maintenance_settings');
652
 
 
 
 
 
 
 
653
  $paramSocialOption = get_option('wp_maintenance_social_options');
654
 
655
  /* on doit retourner 12/31/2020 5:00 AM */
747
  "{FooterText}" => wpm_footer_text(),
748
  "{AddStyleWysija}" => sanitize_text_field(wpm_stylenewsletter()),
749
  "{Newsletter}" => wpm_newsletter(),
 
 
 
750
  "{Counter}" => WPM_Countdown::display($dateCpt),
 
 
 
751
  "{Url}" => WPM_PLUGIN_URL
752
  );
753
 
includes/functions.php CHANGED
@@ -196,7 +196,7 @@ function wpm_get_ip() {
196
 
197
  // IP si internet partagé
198
  if (isset($_SERVER['HTTP_CLIENT_IP'])) {
199
- return $_SERVER['HTTP_CLIENT_IP'];
200
  }
201
  // IP derrière un proxy
202
  elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
196
 
197
  // IP si internet partagé
198
  if (isset($_SERVER['HTTP_CLIENT_IP'])) {
199
+ return esc_url($_SERVER['HTTP_CLIENT_IP']);
200
  }
201
  // IP derrière un proxy
202
  elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://paypal.me/restezconnectes/20/
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 5.9
7
- Stable tag: 6.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -17,7 +17,6 @@ The WP Maintenance plugin allows you to put your website on the waiting time for
17
  - Choice texts colors and fonts
18
  - Upload logo picture
19
  - Upload background picture or pattern
20
- - Slider
21
  - Countdown
22
  - Google Analytics ready
23
  - Social Networks ready
@@ -71,6 +70,10 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
71
 
72
  == Changelog ==
73
 
 
 
 
 
74
  = 6.0.6 =
75
  * Cross-Site Scripting (XSS) vulnerability fixed
76
  * Bug fixed Social Icons
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 5.9
7
+ Stable tag: 6.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
17
  - Choice texts colors and fonts
18
  - Upload logo picture
19
  - Upload background picture or pattern
 
20
  - Countdown
21
  - Google Analytics ready
22
  - Social Networks ready
70
 
71
  == Changelog ==
72
 
73
+ = 6.0.7 =
74
+ * Remove Slider option
75
+ * Several security patches brought
76
+
77
  = 6.0.6 =
78
  * Cross-Site Scripting (XSS) vulnerability fixed
79
  * Bug fixed Social Icons
socialicons/style5/128/social-002-round_dribbble.png ADDED
Binary file
socialicons/style5/128/social-003-round_twitter.png ADDED
Binary file
socialicons/style5/128/social-004-round_flickr.png ADDED
Binary file
socialicons/style5/128/social-005-round_twitter.png ADDED
Binary file
socialicons/style5/128/social-006-round_facebook.png ADDED
Binary file
socialicons/style5/128/social-007-round_skype.png ADDED
Binary file
socialicons/style5/128/social-009-round_google.png ADDED
Binary file
socialicons/style5/128/social-011-round_linkedin.png ADDED
Binary file
socialicons/style5/128/social-013-round_vimeo.png ADDED
Binary file
socialicons/style5/128/social-015-round_tumblr.png ADDED
Binary file
socialicons/style5/128/social-016-round_apple.png ADDED
Binary file
socialicons/style5/128/social-018-round_youtube.png ADDED
Binary file
socialicons/style5/128/social-022-round_deviantart.png ADDED
Binary file
socialicons/style5/128/social-025-round_blogger.png ADDED
Binary file
socialicons/style5/128/social-026-round_wordpress.png ADDED
Binary file
socialicons/style5/128/social-029-round_paypal.png ADDED
Binary file
socialicons/style5/128/social-032-round_windows8.png ADDED
Binary file
socialicons/style5/128/social-033-round_pinterest.png ADDED
Binary file
socialicons/style5/128/social-034-round_soundcloud.png ADDED
Binary file
socialicons/style5/128/social-036-round_android.png ADDED
Binary file
socialicons/style5/128/social-037-round_behance.png ADDED
Binary file
socialicons/style5/128/social-038-round_instagram.png ADDED
Binary file
socialicons/style5/128/social-040-round_google_plus.png ADDED
Binary file
socialicons/style5/128/social-050-round_evernote.png ADDED
Binary file
socialicons/style5/256/social-002-round_dribbble.png ADDED
Binary file
socialicons/style5/256/social-003-round_twitter.png ADDED
Binary file
socialicons/style5/256/social-004-round_flickr.png ADDED
Binary file
socialicons/style5/256/social-005-round_twitter.png ADDED
Binary file
socialicons/style5/256/social-006-round_facebook.png ADDED
Binary file
socialicons/style5/256/social-007-round_skype.png ADDED
Binary file
socialicons/style5/256/social-011-round_linkedin.png ADDED
Binary file
socialicons/style5/256/social-013-round_vimeo.png ADDED
Binary file
socialicons/style5/256/social-015-round_tumblr.png ADDED
Binary file
socialicons/style5/256/social-016-round_apple.png ADDED
Binary file
socialicons/style5/256/social-018-round_youtube.png ADDED
Binary file
socialicons/style5/256/social-022-round_deviantart.png ADDED
Binary file
socialicons/style5/256/social-022_deviantart.png ADDED
Binary file
socialicons/style5/256/social-025-round_blogger.png ADDED
Binary file
socialicons/style5/256/social-026-round_wordpress.png ADDED
Binary file
socialicons/style5/256/social-029-round_paypal.png ADDED
Binary file
socialicons/style5/256/social-032_windows8.png ADDED
Binary file
socialicons/style5/256/social-033-round_pinterest.png ADDED
Binary file
socialicons/style5/256/social-034-round_soundcloud.png ADDED
Binary file
socialicons/style5/256/social-036-round_android.png ADDED
Binary file
socialicons/style5/256/social-037-round_behance.png ADDED
Binary file
socialicons/style5/256/social-038-round_instagram.png ADDED
Binary file
socialicons/style5/256/social-040-round_google_plus.png ADDED
Binary file
socialicons/style5/256/social-050-round_evernote.png ADDED
Binary file
socialicons/style5/32/social-002-round_dribbble.png ADDED
Binary file
socialicons/style5/32/social-003-round_twitter.png ADDED
Binary file
socialicons/style5/32/social-004-round_flickr.png ADDED
Binary file
socialicons/style5/32/social-005-round_twitter.png ADDED
Binary file
socialicons/style5/32/social-006-round_facebook.png ADDED
Binary file
socialicons/style5/32/social-007-round_skype.png ADDED
Binary file
socialicons/style5/32/social-009-round_google.png ADDED
Binary file
socialicons/style5/32/social-011-round_linkedin.png ADDED
Binary file
socialicons/style5/32/social-013-round_vimeo.png ADDED
Binary file
socialicons/style5/32/social-015-round_tumblr.png ADDED
Binary file
socialicons/style5/32/social-016-round_apple.png ADDED
Binary file
socialicons/style5/32/social-018-round_youtube.png ADDED
Binary file
socialicons/style5/32/social-022-round_deviantart.png ADDED
Binary file
socialicons/style5/32/social-025-round_blogger.png ADDED
Binary file
socialicons/style5/32/social-026-round_wordpress.png ADDED
Binary file
socialicons/style5/32/social-029-round_paypal.png ADDED
Binary file
socialicons/style5/32/social-032-round_windows8.png ADDED
Binary file
socialicons/style5/32/social-033-round_pinterest.png ADDED
Binary file
socialicons/style5/32/social-034-round_soundcloud.png ADDED
Binary file
socialicons/style5/32/social-036-round_android.png ADDED
Binary file
socialicons/style5/32/social-037-round_behance.png ADDED
Binary file
socialicons/style5/32/social-038-round_instagram.png ADDED
Binary file
socialicons/style5/32/social-040-round_google_plus.png ADDED
Binary file
socialicons/style5/32/social-050-round_evernote.png ADDED
Binary file
themes/default/functions.php CHANGED
@@ -274,21 +274,6 @@ function wpm_customcss() {
274
  return $output;
275
  }
276
 
277
- function wpm_analytics() {
278
-
279
- // Récupère les paramètres sauvegardés
280
- if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
281
- $o = get_option('wp_maintenance_settings');
282
-
283
- $output = '<!-- analytics ici -->';
284
-
285
- if( isset($o['codeanalytics']) && $o['codeanalytics']!='') {
286
- $output = stripslashes($o['codeanalytics']);
287
- }
288
-
289
- return $output;
290
- }
291
-
292
  function wpm_headercode() {
293
 
294
  // Récupère les paramètres sauvegardés
274
  return $output;
275
  }
276
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  function wpm_headercode() {
278
 
279
  // Récupère les paramètres sauvegardés
views/wp-maintenance-css.php CHANGED
@@ -6,7 +6,7 @@ $messageUpdate = 0;
6
  /* Update des paramètres */
7
  if( isset($_POST['action']) && $_POST['action'] == 'update_css' && wp_verify_nonce($_POST['security-css'], 'valid-css') ) {
8
 
9
- update_option('wp_maintenance_style', stripslashes($_POST["wp_maintenance_style"]));
10
  $options_saved = true;
11
 
12
  $messageUpdate = 1;
6
  /* Update des paramètres */
7
  if( isset($_POST['action']) && $_POST['action'] == 'update_css' && wp_verify_nonce($_POST['security-css'], 'valid-css') ) {
8
 
9
+ update_option('wp_maintenance_style', sanitize_textarea_field(stripslashes($_POST["wp_maintenance_style"])));
10
  $options_saved = true;
11
 
12
  $messageUpdate = 1;
views/wp-maintenance-footer.php CHANGED
@@ -8,7 +8,7 @@ if( isset($_POST['action']) && $_POST['action'] == 'update_footer' && wp_verify_
8
 
9
  if( empty($_POST["wp_maintenance_settings"]["add_wplogin"]) ) { $_POST["wp_maintenance_settings"]["add_wplogin"] = 0; }
10
  if( empty($_POST["wp_maintenance_settings"]["enable_footer"]) ) { $_POST["wp_maintenance_settings"]["enable_footer"] = 0; }
11
- $options_saved = wpm_update_settings($_POST["wp_maintenance_settings"]);
12
  $messageUpdate = 1;
13
  }
14
 
8
 
9
  if( empty($_POST["wp_maintenance_settings"]["add_wplogin"]) ) { $_POST["wp_maintenance_settings"]["add_wplogin"] = 0; }
10
  if( empty($_POST["wp_maintenance_settings"]["enable_footer"]) ) { $_POST["wp_maintenance_settings"]["enable_footer"] = 0; }
11
+ $options_saved = wpm_update_settings(sanitize_option($_POST["wp_maintenance_settings"]));
12
  $messageUpdate = 1;
13
  }
14
 
views/wp-maintenance-picture.php CHANGED
@@ -25,24 +25,12 @@ if( isset($_POST['action']) && $_POST['action'] == 'update_pictures' && wp_verif
25
  $_POST["wp_maintenance_settings"]["b_image"] = '';
26
  $_POST["wp_maintenance_settings"]["b_enable_image"] = 0;
27
  }
28
-
29
- if( isset($_POST["wpm_maintenance_detete"]) && is_array($_POST["wpm_maintenance_detete"]) ) {
30
- foreach($_POST["wpm_maintenance_detete"] as $delSlideId=>$delSlideTrue) {
31
- if ( array_key_exists($delSlideId, sanitize_text_field($_POST["wp_maintenance_slider"]["slider_image"]) ) ) {
32
- unset($_POST["wp_maintenance_slider"]["slider_image"][$delSlideId]);
33
- unset($_POST["wp_maintenance_slider"]["slider_text"][$delSlideId]);
34
- unset($_POST["wp_maintenance_slider"]["slider_link"][$delSlideId]);
35
- }
36
- }
37
- }
38
-
39
  if( empty($_POST["wp_maintenance_settings"]["b_enable_image"]) ) { $_POST["wp_maintenance_settings"]["b_enable_image"] = 0; }
40
  if( empty($_POST["wp_maintenance_settings"]["b_fixed_image"]) ) { $_POST["wp_maintenance_settings"]["b_fixed_image"] = 0; }
41
- if( empty($_POST["wp_maintenance_settings"]["enable_slider"]) ) { $_POST["wp_maintenance_settings"]["enable_slider"] = 0; }
42
 
43
  $options_saved = wpm_update_settings($_POST["wp_maintenance_settings"]);
44
- update_option('wp_maintenance_slider', $_POST["wp_maintenance_slider"]);
45
- update_option('wp_maintenance_slider_options', $_POST["wp_maintenance_slider_options"]);
46
 
47
  $messageUpdate = 1;
48
  }
@@ -51,12 +39,6 @@ if( isset($_POST['action']) && $_POST['action'] == 'update_pictures' && wp_verif
51
  if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
52
  $paramMMode = get_option('wp_maintenance_settings');
53
 
54
- if(get_option('wp_maintenance_slider')) { extract(get_option('wp_maintenance_slider')); }
55
- $paramSlider = get_option('wp_maintenance_slider');
56
-
57
- if(get_option('wp_maintenance_slider_options')) { extract(get_option('wp_maintenance_slider_options')); }
58
- $paramSliderOptions = get_option('wp_maintenance_slider_options');
59
-
60
  ?>
61
  <style>
62
  .ui-state-default { border:3px solid #ccc!important;}
@@ -210,110 +192,6 @@ function toggleTable(texte) {
210
  <p class="submit"><button type="submit" name="footer_submit" id="footer_submit" class="wp-maintenance-button wp-maintenance-button-primary"><?php _e('Save', 'wp-maintenance'); ?></button></p>
211
  </div>
212
 
213
- <!-- ENABLE SLIDER -->
214
- <div class="wp-maintenance-module-options-block">
215
- <div class="wp-maintenance-settings-section-header">
216
- <h3 class="wp-maintenance-settings-section-title" id="module-import_export"><?php _e('Slider', 'wp-maintenance'); ?></h3>
217
- </div>
218
-
219
- <p>
220
- <label class="wp-maintenance-container"><span class="wp-maintenance-label-text"><?php _e('Yes, enable Slider', 'wp-maintenance'); ?></span>
221
- <input type="checkbox" name="wp_maintenance_settings[enable_slider]" value="1" <?php if( isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==1) { echo ' checked'; } ?>>
222
- <span class="wp-maintenance-checkmark"></span>
223
- </label>
224
- </p>
225
-
226
- <h3><?php _e('Slider options', 'wp-maintenance'); ?></h3>
227
- <div class="wp-maintenance-setting-row">
228
- <label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Slider options', 'wp-maintenance'); ?></label>
229
- <?php
230
-
231
- if( isset($paramSlider) && $paramSlider!==false ) {
232
-
233
- if( $paramSlider['slider_image'] ) {
234
- $lastKeySlide = key($paramSlider['slider_image']);
235
- $countSlide = ( $lastKeySlide + 1 );
236
- } else {
237
- $countSlide = 1;
238
- }
239
- ?>
240
- <?php _e('Speed:', 'wp-maintenance'); ?> <input type="text" name="wp_maintenance_slider_options[slider_speed]" size="4" value="<?php if( isset($paramSliderOptions['slider_speed']) && $paramSliderOptions['slider_speed'] !='') { echo esc_html($paramSliderOptions['slider_speed']); } else { echo 500; } ?>" />ms<br />
241
- <?php _e('Width:', 'wp-maintenance'); ?> <input type="text" name="wp_maintenance_slider_options[slider_width]" size="3" value="<?php if( isset($paramSliderOptions['slider_width']) && $paramSliderOptions['slider_width'] !='') { echo esc_html($paramSliderOptions['slider_width']); } else { echo 50; } ?>" />%
242
- </div>
243
-
244
- <div class="wp-maintenance-setting-row">
245
- <label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Display Auto Slider', 'wp-maintenance'); ?></label>
246
- <label class="wpm-container"><input type="radio" name="wp_maintenance_slider_options[slider_auto]" value="true" <?php if( isset($paramSliderOptions['slider_auto']) && $paramSliderOptions['slider_auto']=='true') { echo ' checked'; } ?>/> <?php _e('Yes', 'wp-maintenance'); ?>
247
- <span class="wpm-checkmark"></span></label>
248
- <label class="wpm-container"><input type="radio" name="wp_maintenance_slider_options[slider_auto]" value="false" <?php if( empty($paramSliderOptions['slider_auto']) || (isset($paramSliderOptions['slider_auto']) && $paramSliderOptions['slider_auto']=='false')) { echo ' checked'; } ?> /> <?php _e('No', 'wp-maintenance'); ?>
249
- <span class="wpm-checkmark"></span></label>
250
- </div>
251
-
252
- <div class="wp-maintenance-setting-row">
253
- <label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Display button navigation', 'wp-maintenance'); ?></label>
254
- <label class="wpm-container"><input type="radio" name="wp_maintenance_slider_options[slider_nav]" value="true" <?php if( isset($paramSliderOptions['slider_nav']) && $paramSliderOptions['slider_nav']=='true') { echo ' checked'; } ?>/> <?php _e('Yes', 'wp-maintenance'); ?><span class="wpm-checkmark"></span></label>
255
- <label class="wpm-container"><input type="radio" name="wp_maintenance_slider_options[slider_nav]" value="false" <?php if( empty($paramSliderOptions['slider_nav']) || (isset($paramSliderOptions['slider_nav']) && $paramSliderOptions['slider_nav']=='false')) { echo ' checked'; } ?> /> <?php _e('No', 'wp-maintenance'); ?><span class="wpm-checkmark"></span></label>
256
- </div>
257
- <div class="wp-maintenance-setting-row">
258
- <label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Position', 'wp-maintenance'); ?></label>
259
- <select name="wp_maintenance_slider_options[slider_position]" style="border: 2px solid #ECF0F1;font-size: 13px;padding: 7px 25px 7px 10px;height: auto;">
260
- <option value="abovelogo" <?php if( isset($paramSliderOptions['slider_position']) && $paramSliderOptions['slider_position']=='abovelogo' ) { echo 'selected'; } ?>><?php _e('Above logo', 'wp-maintenance'); ?></option>
261
- <option value="belowlogo" <?php if( isset($paramSliderOptions['slider_position']) && $paramSliderOptions['slider_position']=='belowlogo' ) { echo 'selected'; } ?>><?php _e('Below logo', 'wp-maintenance'); ?></option>
262
- <option value="belowtext" <?php if( ( isset($paramSliderOptions['slider_position']) && $paramSliderOptions['slider_position']=='belowtext' ) || empty($paramSliderOptions['slider_position']) ) { echo 'selected'; } ?>><?php _e('Below title & text', 'wp-maintenance'); ?></option>
263
- </select>
264
- </div>
265
-
266
- <div class="wp-maintenance-setting-row">
267
- <label for="wp_maintenance_settings[image]" class="wp-maintenance-setting-row-title"><?php _e('Choose picture', 'wp-maintenance'); ?></label>
268
- <input id="upload_slider_image" size="65%" name="wp_maintenance_slider[slider_image][<?php echo $countSlide; ?>][image]" value="" type="text" /> <a href="#" id="upload_slider_image_button" class="wp-maintenance-button-primary" OnClick="this.blur();"><?php _e('Media Image Library', 'wp-maintenance'); ?></a><br /><br />
269
- </div>
270
-
271
- <div style="width:100%">
272
- <?php
273
- if( !empty($paramSlider['slider_image']) ) {
274
- foreach($paramSlider['slider_image'] as $numSlide=>$slide) {
275
-
276
- if( $paramSlider['slider_image'][$numSlide]['image'] != '' ) {
277
-
278
- $slideImg = '';
279
- if( isset($paramSlider['slider_image'][$numSlide]['image']) ) {
280
- $slideImg = esc_url($paramSlider['slider_image'][$numSlide]['image']);
281
- }
282
- $slideText = '';
283
- if( isset($paramSlider['slider_image'][$numSlide]['text']) ) {
284
- $slideText = esc_html(stripslashes($paramSlider['slider_image'][$numSlide]['text']));
285
- }
286
- $slideLink = '';
287
- if( isset($paramSlider['slider_image'][$numSlide]['link']) ) {
288
- $slideLink = esc_url($paramSlider['slider_image'][$numSlide]['link']);
289
- }
290
- echo '<div style="float:left;width:32%;border: 1px solid #ececec;padding:0.8em;margin-right:1%;margin-bottom:1%">';
291
-
292
- echo '<div style="width:100%;text-align:center;">';
293
- echo '<img src="'.$slideImg.'" width="80%" />';
294
- echo '</div>';
295
-
296
- echo '<div style="margin-left: auto;margin-right: auto;width: 80%;">';
297
- echo '<input type="hidden" name="wp_maintenance_slider[slider_image]['.$numSlide.'][image]" value="'.$slideImg.'" />';
298
- echo __('Text:', 'wp-maintenance').'<br /> <input type="text" name="wp_maintenance_slider[slider_image]['.$numSlide.'][text]" size="50%" value="'.$slideText.'" /><br />';
299
- echo __('Link:', 'wp-maintenance').'<br /> <input type="text" name="wp_maintenance_slider[slider_image]['.$numSlide.'][link]" size="50%" value="'.$slideLink.'" />';
300
-
301
- echo '<div style="text-align:center;"><small>'.__('Delete this slide', 'wp-maintenance').'</small><br /><label class="wpm-container"><input type="checkbox" name="wpm_maintenance_detete['.$numSlide.']" value="true" /><span class="wpm-checkmark"></span></label></div>';
302
- echo '</div>';
303
- echo '</div>';
304
-
305
- }
306
-
307
- }
308
- }
309
- }
310
- ?>
311
- <div class="clear"></div>
312
- </div>
313
-
314
- <p class="submit"><button type="submit" name="footer_submit" id="footer_submit" class="wp-maintenance-button wp-maintenance-button-primary"><?php _e('Save', 'wp-maintenance'); ?></button></p>
315
-
316
- </div>
317
  </form>
318
  </div>
319
 
25
  $_POST["wp_maintenance_settings"]["b_image"] = '';
26
  $_POST["wp_maintenance_settings"]["b_enable_image"] = 0;
27
  }
28
+
 
 
 
 
 
 
 
 
 
 
29
  if( empty($_POST["wp_maintenance_settings"]["b_enable_image"]) ) { $_POST["wp_maintenance_settings"]["b_enable_image"] = 0; }
30
  if( empty($_POST["wp_maintenance_settings"]["b_fixed_image"]) ) { $_POST["wp_maintenance_settings"]["b_fixed_image"] = 0; }
 
31
 
32
  $options_saved = wpm_update_settings($_POST["wp_maintenance_settings"]);
33
+
 
34
 
35
  $messageUpdate = 1;
36
  }
39
  if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
40
  $paramMMode = get_option('wp_maintenance_settings');
41
 
 
 
 
 
 
 
42
  ?>
43
  <style>
44
  .ui-state-default { border:3px solid #ccc!important;}
192
  <p class="submit"><button type="submit" name="footer_submit" id="footer_submit" class="wp-maintenance-button wp-maintenance-button-primary"><?php _e('Save', 'wp-maintenance'); ?></button></p>
193
  </div>
194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  </form>
196
  </div>
197
 
views/wp-maintenance-socialnetworks.php CHANGED
@@ -21,7 +21,7 @@ if( isset($_POST['action']) && $_POST['action'] == 'update_footer' && wp_verify_
21
  if ($find_social_url === false) {
22
 
23
  } else {
24
- $listInsertSocial[$title] = strip_tags( stripslashes( filter_var($value, FILTER_VALIDATE_URL) ) );
25
  }
26
  }
27
 
@@ -107,7 +107,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
107
 
108
  $entryValue = '';
109
  if( isset($paramSocial[$iconSocial]) ) { $entryValue = $paramSocial[$iconSocial]; }
110
- echo '<li><span>::</span><img src="'.$linkIcon.'" valign="middle" hspace="3" name="'.$iconSocial.'.png" title="'.$iconSocial.'.png"/>'.ucfirst($iconSocial).' <input type="text" size="50" name="wp_maintenance_social['.$iconSocial.']" value="'.esc_url($entryValue).'" onclick="select()" ><br />';
111
  }
112
 
113
  ?>
@@ -127,7 +127,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
127
  $wpm_tabIcon = array(32, 64, 128, 256, 512);
128
  foreach($wpm_tabIcon as $wpm_icon) {
129
  if($paramSocialOption['size']==$wpm_icon) { $selected = ' selected'; } else { $selected = ''; }
130
- echo '<option value="'.$wpm_icon.'" '.$selected.'>'.$wpm_icon.'</option>';
131
  }
132
  ?>
133
  </select>
21
  if ($find_social_url === false) {
22
 
23
  } else {
24
+ $listInsertSocial[$title] = strip_tags( stripslashes( esc_url_raw($value) ) );
25
  }
26
  }
27
 
107
 
108
  $entryValue = '';
109
  if( isset($paramSocial[$iconSocial]) ) { $entryValue = $paramSocial[$iconSocial]; }
110
+ echo '<li><span>::</span><img src="'.esc_url($linkIcon).'" valign="middle" hspace="3" name="'.$iconSocial.'.png" title="'.$iconSocial.'.png"/>'.ucfirst($iconSocial).' <input type="text" size="50" name="wp_maintenance_social['.$iconSocial.']" value="'.esc_url($entryValue).'" onclick="select()" ><br />';
111
  }
112
 
113
  ?>
127
  $wpm_tabIcon = array(32, 64, 128, 256, 512);
128
  foreach($wpm_tabIcon as $wpm_icon) {
129
  if($paramSocialOption['size']==$wpm_icon) { $selected = ' selected'; } else { $selected = ''; }
130
+ echo '<option value="'.esc_url($wpm_icon).'" '.$selected.'>'.$wpm_icon.'</option>';
131
  }
132
  ?>
133
  </select>
wp-maintenance.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
6
  * Author: Florent Maillefaud
7
  * Author URI: https://madeby.restezconnectes.fr
8
- * Version: 6.0.6
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
@@ -37,10 +37,9 @@ define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
37
  define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38
  define( 'WPM_ADMIN_URL', admin_url().'admin.php?page=wp-maintenance'); //we assume the admin url is absolute with at least one querystring
39
 
40
- if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '6.0.6' ); }
41
 
42
  require WPM_DIR . 'classes/wp-maintenance.php';
43
- require WPM_DIR . 'classes/slider.php';
44
  require WPM_DIR . 'classes/countdown.php';
45
  require WPM_DIR . 'includes/functions.php';
46
  require WPM_DIR . 'includes/shortcodes.php';
5
  * Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
6
  * Author: Florent Maillefaud
7
  * Author URI: https://madeby.restezconnectes.fr
8
+ * Version: 6.0.7
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
37
  define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38
  define( 'WPM_ADMIN_URL', admin_url().'admin.php?page=wp-maintenance'); //we assume the admin url is absolute with at least one querystring
39
 
40
+ if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '6.0.7' ); }
41
 
42
  require WPM_DIR . 'classes/wp-maintenance.php';
 
43
  require WPM_DIR . 'classes/countdown.php';
44
  require WPM_DIR . 'includes/functions.php';
45
  require WPM_DIR . 'includes/shortcodes.php';