PluginProbe ʕ •ᴥ•ʔ
reCaptcha by BestWebSoft / 1.65
reCaptcha by BestWebSoft v1.65
1.79 1.80 1.82 1.83 1.84 1.85 1.86 1.87 trunk 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50 1.51 1.52 1.53 1.54 1.55 1.56 1.57 1.58 1.59 1.60 1.61 1.62 1.63 1.64 1.65 1.66 1.67 1.68 1.70 1.71 1.72 1.73 1.74 1.75 1.78
google-captcha / bws_menu / deprecated.php
google-captcha / bws_menu Last commit date
css 4 years ago fonts 4 years ago icons 4 years ago images 4 years ago js 4 years ago languages 4 years ago bws_functions.php 4 years ago bws_include.php 4 years ago bws_menu.php 4 years ago class-bws-settings.php 4 years ago deactivation-form.php 4 years ago deprecated.php 4 years ago product_list.php 4 years ago
deprecated.php
280 lines
1 <?php
2 /*
3 * Deprecated functions for BestWebSoft plugins
4 */
5
6 /**
7 * Function add BWS Plugins page
8 * @deprecated 1.9.8 (15.12.2016)
9 * @return void
10 */
11 if ( ! function_exists ( 'bws_general_menu' ) ) {
12 function bws_general_menu() {
13 global $menu, $bws_general_menu_exist;
14
15 if ( ! $bws_general_menu_exist ) {
16 /* we check also menu exist in global array as in old plugins $bws_general_menu_exist variable not exist */
17 foreach ( $menu as $value_menu ) {
18 if ( 'bws_panel' == $value_menu[2] ) {
19 $bws_general_menu_exist = true;
20 return;
21 }
22 }
23
24 add_menu_page( 'BWS Panel', 'BWS Panel', 'manage_options', 'bws_panel', 'bws_add_menu_render', 'none', '1001' );
25
26 add_submenu_page( 'bws_panel', __( 'Plugins', 'bestwebsoft' ), __( 'Plugins', 'bestwebsoft' ), 'manage_options', 'bws_panel', 'bws_add_menu_render' );
27 add_submenu_page( 'bws_panel', __( 'Themes', 'bestwebsoft' ), __( 'Themes', 'bestwebsoft' ), 'manage_options', 'bws_themes', 'bws_add_menu_render' );
28 add_submenu_page( 'bws_panel', __( 'System Status', 'bestwebsoft' ), __( 'System Status', 'bestwebsoft' ), 'manage_options', 'bws_system_status', 'bws_add_menu_render' );
29
30 $bws_general_menu_exist = true;
31 }
32 }
33 }
34
35 /**
36 * Function process submit on the `Go Pro` tab
37 * @deprecated 1.9.8 (15.12.2016)
38 * @todo Remove function after 01.01.2021
39 */
40 if ( ! function_exists( 'bws_go_pro_tab_check' ) ) {
41 function bws_go_pro_tab_check( $plugin_basename, $plugin_options_name = false, $is_network_option = false ) {
42 global $bstwbsftwppdtplgns_options;
43 if ( ! isset( $bstwbsftwppdtplgns_options ) )
44 $bstwbsftwppdtplgns_options = ( function_exists( 'is_multisite' ) && is_multisite() ) ? get_site_option( 'bstwbsftwppdtplgns_options' ) : get_option( 'bstwbsftwppdtplgns_options' );
45 if ( ! isset( $bstwbsftwppdtplgns_options['deprecated_function']['bws_go_pro_tab_check'] ) ) {
46 $get_debug_backtrace = debug_backtrace();
47 $file = ( ! empty( $get_debug_backtrace[0]['file'] ) ) ? $get_debug_backtrace[0]['file'] : '';
48 $bstwbsftwppdtplgns_options['deprecated_function']['bws_go_pro_tab_check'] = array(
49 'file' => $file
50 );
51 if ( is_multisite() )
52 update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
53 else
54 update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
55 }
56 }
57 }
58
59 /**
60 * Function display 'Custom code' tab
61 *
62 * @deprecated 1.9.8 (15.12.2016)
63 * @todo Remove function after 01.01.2021
64 */
65 if ( ! function_exists( 'bws_custom_code_tab' ) ) {
66 function bws_custom_code_tab() {
67 global $bstwbsftwppdtplgns_options;
68 if ( ! isset( $bstwbsftwppdtplgns_options ) )
69 $bstwbsftwppdtplgns_options = ( function_exists( 'is_multisite' ) && is_multisite() ) ? get_site_option( 'bstwbsftwppdtplgns_options' ) : get_option( 'bstwbsftwppdtplgns_options' );
70 if ( ! isset( $bstwbsftwppdtplgns_options['deprecated_function']['bws_custom_code_tab'] ) ) {
71 $get_debug_backtrace = debug_backtrace();
72 $file = ( ! empty( $get_debug_backtrace[0]['file'] ) ) ? $get_debug_backtrace[0]['file'] : '';
73 $bstwbsftwppdtplgns_options['deprecated_function']['bws_custom_code_tab'] = array(
74 'file' => $file
75 );
76 if ( is_multisite() )
77 update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
78 else
79 update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
80 }
81 }
82 }
83
84 /**
85 * Function check license key for Pro plugins version
86 * @deprecated 1.9.8 (15.12.2016)
87 * @todo Remove function after 01.01.2021
88 */
89 if ( ! function_exists( 'bws_check_pro_license' ) ) {
90 function bws_check_pro_license( $plugin_basename, $trial_plugin = false ) {
91 global $bstwbsftwppdtplgns_options;
92 if ( ! isset( $bstwbsftwppdtplgns_options ) )
93 $bstwbsftwppdtplgns_options = ( function_exists( 'is_multisite' ) && is_multisite() ) ? get_site_option( 'bstwbsftwppdtplgns_options' ) : get_option( 'bstwbsftwppdtplgns_options' );
94 if ( ! isset( $bstwbsftwppdtplgns_options['deprecated_function']['bws_custom_code_tab'] ) ) {
95 $get_debug_backtrace = debug_backtrace();
96 $file = ( ! empty( $get_debug_backtrace[0]['file'] ) ) ? $get_debug_backtrace[0]['file'] : '';
97 $bstwbsftwppdtplgns_options['deprecated_function']['bws_custom_code_tab'] = array(
98 'file' => $file
99 );
100 if ( is_multisite() )
101 update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
102 else
103 update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
104 }
105 }
106 }
107
108 /**
109 * Function display block for checking license key for Pro plugins version
110 * @deprecated 1.9.8 (15.12.2016)
111 * @todo add notice and remove functional after 01.01.2018. Remove function after 01.01.2019
112 */
113 if ( ! function_exists ( 'bws_check_pro_license_form' ) ) {
114 function bws_check_pro_license_form( $plugin_basename ) {
115 global $bstwbsftwppdtplgns_options;
116 $license_key = ( isset( $bstwbsftwppdtplgns_options[ $plugin_basename ] ) ) ? $bstwbsftwppdtplgns_options[ $plugin_basename ] : ''; ?>
117 <div class="clear"></div>
118 <form method="post" action="">
119 <p><?php echo _e( 'If necessary, you can check if the license key is correct or reenter it in the field below. You can find your license key on your personal page - Client Area - on our website', 'bestwebsoft' ) . ' <a href="https://bestwebsoft.com/client-area">https://bestwebsoft.com/client-area</a> ' . __( '(your username is the email address specified during the purchase). If necessary, please submit "Lost your password?" request.', 'bestwebsoft' ); ?></p>
120 <p>
121 <input type="text" maxlength="100" name="bws_license_key" value="<?php echo esc_attr( $license_key ); ?>" />
122 <input type="hidden" name="bws_license_submit" value="submit" />
123 <input type="submit" class="button" value="<?php _e( 'Check license key', 'bestwebsoft' ) ?>" />
124 <?php wp_nonce_field( $plugin_basename, 'bws_license_nonce_name' ); ?>
125 </p>
126 </form>
127 <?php }
128 }
129
130 /**
131 * Function process submit on the `Go Pro` tab for TRIAL
132 * @deprecated 1.9.8 (15.12.2016)
133 * @todo add notice and remove functional after 01.01.2018. Remove function after 01.01.2019
134 */
135 if ( ! function_exists( 'bws_go_pro_from_trial_tab' ) ) {
136 function bws_go_pro_from_trial_tab( $plugin_info, $plugin_basename, $page, $link_slug, $link_key, $link_pn, $trial_license_is_set = true ) {
137 global $wp_version, $bstwbsftwppdtplgns_options;
138 $bws_license_key = ( isset( $_POST['bws_license_key'] ) ) ? sanitize_text_field( $_POST['bws_license_key'] ) : "";
139 if ( $trial_license_is_set ) { ?>
140 <form method="post" action="">
141 <p>
142 <?php printf( __( 'In order to continue using the plugin it is necessary to buy a %s license.', 'bestwebsoft' ), '<a href="https://bestwebsoft.com/products/wordpress/plugins/' . $link_slug . '/?k=' . $link_key . '&amp;pn=' . $link_pn . '&amp;v=' . $plugin_info["Version"] . '&amp;wp_v=' . $wp_version .'" target="_blank" title="' . $plugin_info["Name"] . '">Pro</a>' ); ?> <?php _e( 'After that, you can activate it by entering your license key.', 'bestwebsoft' ); ?>
143 <br />
144 <span class="bws_info">
145 <?php _e( 'License key can be found in the', 'bestwebsoft' ); ?>
146 <a href="https://bestwebsoft.com/wp-login.php">Client Area</a>
147 <?php _e( '(your username is the email address specified during the purchase).', 'bestwebsoft' ); ?>
148 </span>
149 </p>
150 <?php if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $plugin_basename ]['count'] ) &&
151 '5' < $bstwbsftwppdtplgns_options['go_pro'][ $plugin_basename ]['count'] &&
152 $bstwbsftwppdtplgns_options['go_pro'][ $plugin_basename ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) { ?>
153 <p>
154 <input disabled="disabled" type="text" name="bws_license_key" value="" />
155 <input disabled="disabled" type="submit" class="button-primary" value="<?php _e( 'Activate', 'bestwebsoft' ); ?>" />
156 </p>
157 <p><?php _e( "Unfortunately, you have exceeded the number of available tries per day.", 'bestwebsoft' ); ?></p>
158 <?php } else { ?>
159 <p>
160 <input type="text" maxlength="100" name="bws_license_key" value="" />
161 <input type="hidden" name="bws_license_plugin" value="<?php echo esc_attr( $plugin_basename ); ?>" />
162 <input type="hidden" name="bws_license_submit" value="submit" />
163 <input type="submit" class="button-primary" value="<?php _e( 'Activate', 'bestwebsoft' ); ?>" />
164 <?php wp_nonce_field( $plugin_basename, 'bws_license_nonce_name' ); ?>
165 </p>
166 <?php } ?>
167 </form>
168 <?php } else {
169 $page_url = esc_url( self_admin_url( 'admin.php?page=' . $page ) ); ?>
170 <p><?php _e( "Congratulations! The Pro license of the plugin is activated successfully.", 'bestwebsoft' ); ?></p>
171 <p>
172 <?php _e( "Please, go to", 'bestwebsoft' ); ?> <a href="<?php echo $page_url; ?>"><?php _e( 'the setting page', 'bestwebsoft' ); ?></a>
173 </p>
174 <?php }
175 }
176 }
177
178
179 /**
180 * Function display block for restoring default product settings
181 * @deprecated 1.9.8 (15.12.2016)
182 * @todo add notice and remove functional after 01.01.2018. Remove function after 01.01.2019
183 */
184 if ( ! function_exists ( 'bws_form_restore_default_settings' ) ) {
185 function bws_form_restore_default_settings( $plugin_basename, $change_permission_attr = '' ) { ?>
186 <form method="post" action="">
187 <p><?php _e( 'Restore all plugin settings to defaults', 'bestwebsoft' ); ?></p>
188 <p>
189 <input <?php echo $change_permission_attr; ?> type="submit" class="button" value="<?php _e( 'Restore settings', 'bestwebsoft' ); ?>" />
190 </p>
191 <input type="hidden" name="bws_restore_default" value="submit" />
192 <?php wp_nonce_field( $plugin_basename, 'bws_settings_nonce_name' ); ?>
193 </form>
194 <?php }
195 }
196
197 /**
198 * Function display GO PRO tab
199 * @deprecated 1.9.8 (15.12.2016)
200 * @todo add notice and remove functional after 01.01.2018. Remove function after 01.01.2019
201 */
202 if ( ! function_exists( 'bws_go_pro_tab_show' ) ) {
203 function bws_go_pro_tab_show( $bws_hide_premium_options_check, $plugin_info, $plugin_basename, $page, $pro_page, $bws_license_plugin, $link_slug, $link_key, $link_pn, $pro_plugin_is_activated = false, $trial_days_number = false ) {
204 global $wp_version, $bstwbsftwppdtplgns_options;
205 $bws_license_key = ( isset( $_POST['bws_license_key'] ) ) ? sanitize_text_field( $_POST['bws_license_key'] ) : "";
206 if ( $pro_plugin_is_activated ) {
207 $page_url = esc_url( self_admin_url( 'admin.php?page=' . $pro_page ) ); ?>
208 <p><?php _e( "Congratulations! Pro version of the plugin is installed and activated successfully.", 'bestwebsoft' ); ?></p>
209 <p>
210 <?php _e( "Please, go to", 'bestwebsoft' ); ?> <a href="<?php echo $page_url; ?>"><?php _e( 'the setting page', 'bestwebsoft' ); ?></a>
211 </p>
212 <?php } else {
213 if ( $bws_hide_premium_options_check ) { ?>
214 <form method="post" action="">
215 <p>
216 <input type="hidden" name="bws_hide_premium_options_submit" value="submit" />
217 <input type="submit" class="button" value="<?php _e( 'Show Pro features', 'bestwebsoft' ); ?>" />
218 <?php wp_nonce_field( $plugin_basename, 'bws_license_nonce_name' ); ?>
219 </p>
220 </form>
221 <?php } ?>
222 <form method="post" action="">
223 <p>
224 <?php _e( 'Enter your license key to install and activate', 'bestwebsoft' ); ?>
225 <a href="<?php echo esc_url( 'https://bestwebsoft.com/products/wordpress/plugins/' . $link_slug . '/?k=' . $link_key . '&pn=' . $link_pn . '&v=' . $plugin_info["Version"] . '&wp_v=' . $wp_version ); ?>" target="_blank" title="<?php echo $plugin_info["Name"]; ?> Pro">Pro</a>
226 <?php _e( 'version of the plugin.', 'bestwebsoft' ); ?><br />
227 <span class="bws_info">
228 <?php _e( 'License key can be found in the', 'bestwebsoft' ); ?>
229 <a href="https://bestwebsoft.com/wp-login.php">Client Area</a>
230 <?php _e( '(your username is the email address specified during the purchase).', 'bestwebsoft' ); ?>
231 </span>
232 </p>
233 <?php if ( $trial_days_number !== false )
234 $trial_days_number = __( 'or', 'bestwebsoft' ) . ' <a href="https://bestwebsoft.com/products/wordpress/plugins/' . $link_slug . '/trial/" target="_blank">' . sprintf( __( 'Start Your Free %s-Day Trial Now', 'bestwebsoft' ), $trial_days_number ) . '</a>';
235 if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] ) &&
236 '5' < $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] &&
237 $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) { ?>
238 <p>
239 <input disabled="disabled" type="text" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key ); ?>" />
240 <input disabled="disabled" type="submit" class="button-primary" value="<?php _e( 'Activate', 'bestwebsoft' ); ?>" />
241 <?php if ( $trial_days_number !== false ) echo $trial_days_number; ?>
242 </p>
243 <p><?php _e( "Unfortunately, you have exceeded the number of available tries per day. Please, upload the plugin manually.", 'bestwebsoft' ); ?></p>
244 <?php } else { ?>
245 <p>
246 <input type="text" maxlength="100" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key ); ?>" />
247 <input type="hidden" name="bws_license_plugin" value="<?php echo esc_attr( $bws_license_plugin ); ?>" />
248 <input type="hidden" name="bws_license_submit" value="submit" />
249 <input type="submit" class="button-primary" value="<?php _e( 'Activate', 'bestwebsoft' ); ?>" />
250 <?php if ( $trial_days_number !== false )
251 echo $trial_days_number;
252 wp_nonce_field( $plugin_basename, 'bws_license_nonce_name' ); ?>
253 </p>
254 <?php } ?>
255 </form>
256 <?php }
257 }
258 }
259
260 /**
261 * Function display GO PRO Banner (inline in 'admin_notices' action )
262 * @deprecated 2.2.5 (29.11.2019)
263 * @todo Remove notice after 01.12.2021
264 */
265 if ( ! function_exists( 'bws_plugin_banner' ) ) {
266 function bws_plugin_banner( $plugin_info, $this_banner_prefix, $link_slug, $link_key, $link_pn, $banner_url_or_slug ) {
267 /* the function is not longer use, but we need to store it */
268 }
269 }
270
271 /**
272 * Function display timeout PRO Banner (inline in 'admin_notices' action )
273 * @deprecated 2.2.5 (29.11.2019)
274 * @todo Remove notice after 01.12.2021
275 */
276 if ( ! function_exists ( 'bws_plugin_banner_timeout' ) ) {
277 function bws_plugin_banner_timeout( $plugin_key, $plugin_prefix, $plugin_name, $banner_url_or_slug = false ) {
278 /* the function is not longer use, but we need to store it */
279 }
280 }