PluginProbe
Booking Calendar / 11.9
Booking Calendar v11.9
11.9 11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 All 205 releases
← All changes | core/wpbc.php +142 -186 10.15.6 → 11.9 View file →
@@ -40,8 +40,11 @@
40 40 if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Booking_Calendar ) ) {
41 41
42 42 self::$instance = new Booking_Calendar;
43 43 self::$instance->includes();
44 + if ( defined( 'WPBC_BOOKING_MODES_ACTIVE_ENGINE' ) && 'none' === WPBC_BOOKING_MODES_ACTIVE_ENGINE ) {
45 + return self::$instance;
46 + }
44 47 self::$instance->define_version();
45 48
46 49 add_action( 'init', array( self::$instance, 'wp_inited' ) );
47 50
@@ -140,14 +143,31 @@
140 143 case 'bottom':
141 144 $booking_menu_position = '99.999';
142 145 break;
143 146 default:
144 - $booking_menu_position = '3.3';
147 + /**
148 + * 3.3 - top //( 58.9 ) // - middle
149 + (Optional). Positions for Core Menu Items
150 + 2 Dashboard
151 + 4 Separator
152 + 5 Posts
153 + 10 Media
154 + 15 Links
155 + 20 Pages
156 + 25 Comments
157 + 59 Separator
158 + 60 Appearance
159 + 65 Plugins
160 + 70 Users
161 + 75 Tools
162 + 80 Settings
163 + 99 Separator
164 + */
165 + $booking_menu_position = '3.3';
145 166 break;
146 167 }
147 168
148 - // FixIn: 10.11.3.3.
149 -
169 +/**
150 170 // //FixIn: 9.0.1.7 //scale image by this params: viewBox="-2 -1 20 20"
151 171 // if( 0 ) {
152 172 // // calendar4-range https://icons.getbootstrap.com/icons/calendar4-range/
153 173 // $svg_icon_integarted = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="" viewBox="-2 -1 20 20">'
@@ -171,159 +191,96 @@
171 191 // $svg_icon_integarted = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-calendar3-range" viewBox="-2 -1 20 20">'
172 192 // . '<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"/>'
173 193 // . '<path d="M7 10a1 1 0 0 0 0-2H1v2h6zm2-3h6V5H9a1 1 0 0 0 0 2z"/>'
174 194 // . '</svg>';
195 +*/
175 196
176 197 $svg_icon_integarted = wpbc_get_svg_logo( '#aaa', '#aaa', '0.4' ); // '#aaa', '#aaa', '0.2' .
177 198
178 - self::$instance->admin_menu['master'] = new WPBC_Admin_Menus(
179 - 'wpbc' , array (
180 - 'in_menu' => 'root'
181 - //, 'mune_icon_url' => '/assets/img/icon-16x16.png'
182 - , 'mune_icon_url' => $svg_icon_integarted // FixIn: 9.0.1.7.
183 - , 'menu_title' => $title
184 - , 'menu_title_second' => __('Bookings', 'booking')
185 - , 'page_header' => __('Bookings Listing','booking')
186 - , 'browser_header' => __('Bookings Listing', 'booking') . ' - ' . __('Booking Calendar', 'booking')
187 - , 'user_role' => get_bk_option( 'booking_user_role_booking' )
188 - , 'position' => $booking_menu_position // 3.3 - top //( 58.9 ) // - middle
189 - /*
190 - (Optional). Positions for Core Menu Items
191 - 2 Dashboard
192 - 4 Separator
193 - 5 Posts
194 - 10 Media
195 - 15 Links
196 - 20 Pages
197 - 25 Comments
198 - 59 Separator
199 - 60 Appearance
200 - 65 Plugins
201 - 70 Users
202 - 75 Tools
203 - 80 Settings
204 - 99 Separator
205 - */
206 - )
207 - );
199 + self::$instance->admin_menu['master'] = new WPBC_Admin_Menus( 'wpbc', array(
200 + 'in_menu' => 'root',
201 + 'mune_icon_url' => $svg_icon_integarted,
202 + 'menu_title' => $title,
203 + 'menu_title_second' => __( 'Bookings', 'booking' ),
204 + 'page_header' => __( 'Bookings Listing', 'booking' ),
205 + 'browser_header' => __( 'Bookings Listing', 'booking' ) . ' - ' . __( 'Booking Calendar', 'booking' ),
206 + 'user_role' => get_bk_option( 'booking_user_role_booking' ),
207 + 'position' => $booking_menu_position,
208 + ) );
208 209
209 - self::$instance->admin_menu['new'] = new WPBC_Admin_Menus(
210 - 'wpbc-new' , array (
211 - 'in_menu' => 'wpbc'
212 - , 'menu_title' => '+ ' . ucwords( __('Add booking', 'booking') ) // FixIn: 10.9.3.1.
213 - , 'page_header' => ucwords( __('Add booking','booking') )
214 - , 'browser_header'=> ucwords( __('Add booking', 'booking') ) . ' - ' . __('Booking Calendar', 'booking')
215 - , 'user_role' => get_bk_option( 'booking_user_role_addbooking' )
216 - )
217 - );
218 - self::$instance->admin_menu['availability'] = new WPBC_Admin_Menus( // FixIn: 9.3.0.1.
219 - 'wpbc-availability' , array (
220 - 'in_menu' => 'wpbc'
221 - , 'menu_title' => ucwords( __('Availability', 'booking') )
222 - , 'page_header' => ucwords( __('Availability','booking') )
223 - , 'browser_header'=> ucwords( __('Availability', 'booking') ) . ' - ' . __('Booking Calendar', 'booking')
224 - , 'user_role' => get_bk_option( 'booking_user_role_availability' ) // FixIn: 9.5.2.2.
225 - )
226 - );
227 - //FixIn: 9.8.15.2.4
228 - if ( class_exists( 'wpdev_bk_biz_m' ) )
229 - self::$instance->admin_menu['prices'] = new WPBC_Admin_Menus(
230 - 'wpbc-prices' , array (
231 - 'in_menu' => 'wpbc'
232 - , 'menu_title' => __('Prices', 'booking')
233 - , 'page_header' => ucwords( __('Booking Prices','booking') )
234 - , 'browser_header'=> __('Prices', 'booking') . ' - ' . __('Booking Calendar', 'booking')
235 - , 'user_role' => get_bk_option( 'booking_user_role_prices' ) //FixIn: 9.8.15.2.6
236 - )
237 - );
238 - if ( class_exists( 'wpdev_bk_personal' ) ) {
239 - self::$instance->admin_menu['resources'] = new WPBC_Admin_Menus(
240 - 'wpbc-resources' , array (
241 - 'in_menu' => 'wpbc'
242 - , 'menu_title' => __('Resources', 'booking')
243 - , 'page_header' => ucwords( __('Booking resources','booking') )
244 - , 'browser_header'=> __('Resources', 'booking') . ' - ' . __('Booking Calendar', 'booking')
245 - , 'user_role' => get_bk_option( 'booking_user_role_resources' )
246 - )
247 - );
248 - }
210 + self::$instance->admin_menu['new'] = new WPBC_Admin_Menus( 'wpbc-new', array(
211 + 'in_menu' => 'wpbc',
212 + 'menu_title' => '+ ' . ucwords( __( 'Add booking', 'booking' ) ),
213 + 'page_header' => ucwords( __( 'Add booking', 'booking' ) ),
214 + 'browser_header' => ucwords( __( 'Add booking', 'booking' ) ) . ' - ' . __( 'Booking Calendar', 'booking' ),
215 + 'user_role' => get_bk_option( 'booking_user_role_addbooking' ),
216 + ) );
249 217
218 + self::$instance->admin_menu['resources'] = new WPBC_Admin_Menus( 'wpbc-resources', array(
219 + 'in_menu' => 'wpbc',
220 + 'menu_title' => __( 'Resources', 'booking' ),
221 + 'page_header' => ucwords( __( 'Booking resources', 'booking' ) ),
222 + 'browser_header' => __( 'Resources', 'booking' ) . ' - ' . __( 'Booking Calendar', 'booking' ),
223 + 'user_role' => ( ( class_exists( 'wpdev_bk_personal' ) ) ? get_bk_option( 'booking_user_role_resources' )
224 + : get_bk_option( 'booking_user_role_settings' ) ),
225 + ) );
250 226
251 - if ( ! class_exists( 'wpdev_bk_personal' ) ) { // FixIn: 10.1.3.1.
252 - // FixIn: 9.8.15.7.
253 - self::$instance->admin_menu['resources'] = new WPBC_Admin_Menus(
254 - 'wpbc-resources' , array (
255 - 'in_menu' => 'wpbc'
256 - , 'menu_title' => __('Publish', 'booking') // __('Resource', 'booking')
257 - , 'page_header' => ucwords( __('Booking resource','booking') )
258 - , 'browser_header'=> __('Resource', 'booking') . ' - ' . __('Booking Calendar', 'booking')
259 - , 'user_role' => get_bk_option( 'booking_user_role_settings' )
260 - )
261 - );
227 + self::$instance->admin_menu['availability'] = new WPBC_Admin_Menus( // FixIn: 9.3.0.1.
228 + 'wpbc-availability', array(
229 + 'in_menu' => 'wpbc',
230 + 'menu_title' => ucwords( __( 'Availability', 'booking' ) ),
231 + 'page_header' => ucwords( __( 'Availability', 'booking' ) ),
232 + 'browser_header' => ucwords( __( 'Availability', 'booking' ) ) . ' - ' . __( 'Booking Calendar', 'booking' ),
233 + 'user_role' => get_bk_option( 'booking_user_role_availability' ),
234 + ) );
235 +
236 + if ( class_exists( 'wpdev_bk_biz_m' ) ) {
237 + self::$instance->admin_menu['prices'] = new WPBC_Admin_Menus( 'wpbc-prices', array(
238 + 'in_menu' => 'wpbc',
239 + 'menu_title' => __( 'Prices', 'booking' ),
240 + 'page_header' => ucwords( __( 'Booking Prices', 'booking' ) ),
241 + 'browser_header' => __( 'Prices', 'booking' ) . ' - ' . __( 'Booking Calendar', 'booking' ),
242 + 'user_role' => get_bk_option( 'booking_user_role_prices' ), //FixIn: 9.8.15.2.6
243 + ) );
262 244 }
263 245
246 + self::$instance->admin_menu['services'] = new WPBC_Admin_Menus( 'wpbc-services', array(
247 + 'in_menu' => 'wpbc',
248 + 'menu_title' => __( 'Services', 'booking' ),
249 + 'page_header' => __( 'Services', 'booking' ),
250 + 'browser_header' => __( 'Services', 'booking' ) . ' - ' . __( 'Booking Calendar', 'booking' ),
251 + 'user_role' => get_bk_option( 'booking_user_role_settings' ),
252 + ) );
264 253
265 - self::$instance->admin_menu['settings'] = new WPBC_Admin_Menus(
266 - 'wpbc-settings' , array (
267 - 'in_menu' => 'wpbc'
268 - , 'menu_title' => __('Settings', 'booking')
269 - , 'page_header' => __('General Settings','booking')
270 - , 'browser_header'=> __('Settings', 'booking') . ' - ' . __('Booking Calendar', 'booking')
271 - , 'user_role' => get_bk_option( 'booking_user_role_settings' )
272 - )
273 - );
254 + self::$instance->admin_menu['settings'] = new WPBC_Admin_Menus( 'wpbc-settings', array(
255 + 'in_menu' => 'wpbc',
256 + 'menu_title' => __( 'Settings', 'booking' ),
257 + 'page_header' => __( 'General Settings', 'booking' ),
258 + 'browser_header' => __( 'Settings', 'booking' ) . ' - ' . __( 'Booking Calendar', 'booking' ),
259 + 'user_role' => get_bk_option( 'booking_user_role_settings' ),
260 + ) );
274 261
275 -
276 -
277 -
278 - if (
279 - ( wpbc_is_user_can_access_wizard_page() ) &&
280 - ( ! wpbc_setup_wizard_page__is_all_steps_completed() )
281 - ){
282 -
283 - $setup_steps = new WPBC_SETUP_WIZARD_STEPS();
284 -
285 - self::$instance->admin_menu['setup'] = new WPBC_Admin_Menus(
286 - 'wpbc-setup' , array (
287 - 'in_menu' => 'wpbc'
288 - , 'menu_title' => $setup_steps->get_plugin_menu_title__setup_progress()
289 - , 'page_header' => ucwords( __('Setup','booking') )
290 - , 'browser_header' => ucwords( __('Setup', 'booking') ) . ' - ' . __('Booking Calendar', 'booking')
291 - , 'user_role' => get_bk_option( 'booking_user_role_settings' ) //FixIn: 9.8.15.2.6
292 - )
293 - );
294 - }
295 -
296 -
297 -
298 262 $simulate_user_id = wpbc_mu__is_simulated_login_as_user();
299 263 if ( ! empty( $simulate_user_id ) ) {
300 264
301 265 $custom_user = get_userdata( $simulate_user_id );
302 266
303 - self::$instance->admin_menu['log_off'] = new WPBC_Admin_Menus(
304 - 'wpbc-log-off' , array (
305 - 'in_menu' => 'wpbc'
306 - //, 'menu_title' => __( 'Log Out Simulated Login as', 'booking' ) . ' "' . $custom_user->display_name . '"'
307 - , 'menu_title' => '<span style="color:#fffcdf;font-size: 11px;font-weight: 400;" title="'
308 - . esc_attr( __( 'Log out as regular user and login as super booking admin user', 'booking' ) )
309 - .'">'
310 - .__( 'Back to Super Admin', 'booking' )
311 - .'<span>'
312 - /* translators: 1: ... */
313 - , 'page_header' => ucwords( sprintf( __( 'Need even more functionality? Check %1$s higher versions %2$s', 'booking' ), '', '' ) )
314 - , 'browser_header'=> 'Log In as Super Admin'
315 - , 'user_role' => get_bk_option( 'booking_user_role_booking' )
316 - )
317 - );
267 + self::$instance->admin_menu['log_off'] = new WPBC_Admin_Menus( 'wpbc-log-off', array(
268 + 'in_menu' => 'wpbc',
269 + 'menu_title' => '<span style="color:#fffcdf;font-size: 11px;font-weight: 400;" title="' . esc_attr( __( 'Log out as regular user and login as super booking admin user', 'booking' ) ) . '">' . __( 'Back to Super Admin', 'booking' ) . '<span>',
270 + 'page_header' => ucwords( sprintf( __( 'Need even more functionality? Check %1$s higher versions %2$s', 'booking' ), '', '' ) ), /* translators: 1: ... */
271 + 'browser_header' => 'Log In as Super Admin',
272 + 'user_role' => get_bk_option( 'booking_user_role_booking' ),
273 + ) );
318 274 }
275 +
319 276 }
320 277
321 -
322 -
323 - /**
278 +
279 +
280 + /**
324 281 * Get Menu Object
325 - *
282 + *
326 283 * @param type - menu type
327 284 * @return boolean
328 285 */
329 286 public function get_menu_object( $type ) {
@@ -329,13 +286,13 @@
329 286 public function get_menu_object( $type ) {
330 287
331 288 if ( isset( self::$instance->admin_menu[ $type ] ) )
332 289 return self::$instance->admin_menu[ $type ];
333 - else
290 + else
334 291 return false;
335 292 }
336 293
337 -
294 +
338 295 // Include Files
339 296 private function includes() {
340 297 require_once WPBC_PLUGIN_DIR . '/includes/wpbc-include.php' ;
341 298 }
@@ -365,9 +322,9 @@
365 322
366 323 _doing_it_wrong( __FUNCTION__, esc_html__( 'Action is not allowed!', 'booking' ), '1.0' );
367 324 }
368 325
369 -
326 +
370 327 // Unserializing instances of the class is forbidden
371 328 public function __wakeup() {
372 329
373 330 _doing_it_wrong( __FUNCTION__, esc_html__( 'Action is not allowed!', 'booking' ), '1.0' );
@@ -372,12 +329,12 @@
372 329
373 330 _doing_it_wrong( __FUNCTION__, esc_html__( 'Action is not allowed!', 'booking' ), '1.0' );
374 331 }
375 332
376 -
333 +
377 334 // Initialization
378 335 private function start(){
379 -
336 +
380 337 if ( ( defined( 'DOING_AJAX' ) ) && ( DOING_AJAX ) ){ // New A J A X R e s p o n d e r
381 338
382 339 if ( 1 ) {
383 340 $wpdev_booking_obj_in_ajax = new wpdev_booking(); // GO
@@ -386,10 +343,10 @@
386 343 $wpdev_bk_personal_in_ajax = new wpdev_bk_personal();
387 344 }
388 345 }
389 346
390 - require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-ajax.php'; // Ajax
391 -
347 + require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-ajax.php'; // Ajax
348 +
392 349 return false;
393 350 } else { // Usual Loading of plugin
394 351
395 352 // We are having Response, its executed in other file: wpbc-response.php
@@ -399,12 +356,12 @@
399 356 if( is_admin() ) {
400 357 // Define Notices System
401 358 self::$instance->notice = new WPBC_Notices();
402 359 }
403 -
360 +
404 361 // Normal Start
405 362 self::$instance->booking_obj = new wpdev_booking(); // GO
406 -
363 +
407 364 // Cron Jobs ..... /////////////////////////////////////////////////
408 365 self::$instance->cron = new WPBC_Cron();
409 366 ////////////////////////////////////////////////////////////////////
410 367 }
@@ -409,15 +366,15 @@
409 366 ////////////////////////////////////////////////////////////////////
410 367 }
411 368 return true;
412 369 }
413 -
370 +
414 371 }
415 372
416 373 else: // Its seems that some instance of Booking Calendar still activted!!!
417 -
374 +
418 375 // FixIn: 7.0.1.6.
419 - global $wp_version;
376 + global $wp_version;
420 377 $wpbc_min_wp_version = version_compare( WP_BK_MIN_WP_VERSION, $wp_version, '<=' );
421 378
422 379 // FixIn: 7.0.1.6.
423 380 function wpbc_show_min_wp_version_error() {
@@ -423,27 +380,27 @@
423 380 function wpbc_show_min_wp_version_error() {
424 381
425 382 $message_type = 'error';
426 383 $title = __( 'Error' , 'booking') . '!';
427 -
428 -
384 +
385 +
429 386 $message = 'Booking Calendar ';
430 -
431 - $booking_version_num = get_option( 'booking_version_num');
387 +
388 + $booking_version_num = get_option( 'booking_version_num');
432 389 if ( ! empty( $booking_version_num ) )
433 - $message .= '<strong>' . $booking_version_num . '</strong> ';
434 -
435 -
436 - global $wp_version;
390 + $message .= '<strong>' . $booking_version_num . '</strong> ';
437 391
438 - $message .= sprintf( 'require minimum %s . You are using %s. '
439 - , ' <strong>' . 'WordPress ' . WP_BK_MIN_WP_VERSION . '</strong>'
440 - , ' <strong>' . 'WordPress ' . $wp_version . '</strong>' );
392 +
393 + global $wp_version;
394 +
395 + $message .= sprintf( 'require minimum %s . You are using %s. '
396 + , ' <strong>' . 'WordPress ' . WP_BK_MIN_WP_VERSION . '</strong>'
397 + , ' <strong>' . 'WordPress ' . $wp_version . '</strong>' );
441 398 if ( current_user_can( 'update_core' ) ){
442 399 $message .= ' <a href="' . esc_url( self_admin_url( 'update-core.php' ) ) . '">' . 'Return to Dashboard &rarr; Updates' . '</a>';
443 - }
444 -
445 -
400 + }
401 +
402 +
446 403 $message_content = '';
447 404
448 405 $message_content .= '<div class="clear"></div>';
449 406
@@ -458,29 +415,29 @@
458 415
459 416 $message_content .= '<div class="clear"></div>';
460 417
461 418 echo wp_kses_post( $message_content );
462 - }
463 -
419 + }
420 +
464 421 function wpbc_show_activation_error() {
465 422
466 423 $message_type = 'error';
467 424 $title = __( 'Error' , 'booking') . '!';
468 425 $message = 'Please deactivate previous old version of' . ' ' . 'Booking Calendar';
469 -
470 - $booking_version_num = get_option( 'booking_version_num');
426 +
427 + $booking_version_num = get_option( 'booking_version_num');
471 428 if ( ! empty( $booking_version_num ) )
472 - $message .= ' <strong>' . $booking_version_num . '</strong>';
473 -
474 -
429 + $message .= ' <strong>' . $booking_version_num . '</strong>';
430 +
431 +
475 432 $is_delete_if_deactive = get_bk_option( 'booking_is_delete_if_deactive' ); // check
476 433
477 - if ( $is_delete_if_deactive == 'On' ) {
478 -
434 + if ( $is_delete_if_deactive == 'On' ) {
435 +
479 436 $message .= '<br/><br/> <strong>Warning!</strong> ' . 'All plugin data will be deleted when plugin had deactivated.' . ' '
480 437 . sprintf( 'If you want to save your plugin data, please uncheck the %s"Delete plugin data"%s at the', '<strong>', '</strong>') . ' ' . __( 'Settings' , 'booking' ) . '.';
481 438 }
482 -
439 +
483 440 $message_content = '';
484 441
485 442 $message_content .= '<div class="clear"></div>';
486 443
@@ -493,9 +450,9 @@
493 450
494 451 $message_content .= '</div>';
495 452
496 453 $message_content .= '<div class="clear"></div>';
497 -
454 +
498 455 echo wp_kses_post( $message_content );
499 456 }
500 457
501 458
@@ -502,9 +459,9 @@
502 459 if ( ! $wpbc_min_wp_version ) // FixIn: 7.0.1.6.
503 460 add_action('admin_notices', 'wpbc_show_min_wp_version_error');
504 461 else
505 462 add_action('admin_notices', 'wpbc_show_activation_error');
506 -
463 +
507 464 return; // Exit
508 465
509 466 endif;
510 467
@@ -534,16 +491,16 @@
534 491 $request_uri = $server_request_uri; //FixIn:5.4.1
535 492 if ( strpos( $request_uri, 'page=wpbc') === false ) {
536 493 return;
537 494 }
538 - echo '<div style="width:800px;margin:10px auto;"><style type="text/css"> a:link{background: inherit !important; } pre { white-space: pre-wrap; }</style>';
495 + echo '<div style="width:800px;margin:10px auto;"><style type="text/css"> a:link{background: inherit !important; } pre { white-space: pre-wrap; }</style>';
539 496 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.prevent_path_disclosure_phpinfo
540 497 phpinfo(); echo '</div>'; return;
541 -
542 - ?><div style="width:auto;margin:0 0 0 215px;font-size:11px; "><?php
543 498
499 + ?><div style="width:auto;margin:0 0 0 215px;font-size:11px; "><?php
500 +
544 501 // SYSTEM INFO SHOWING ////////////////////////////////////////////////////////
545 -
502 +
546 503 //Note firstly need to define this in functions.php file: define('SAVEQUERIES', true);
547 504 global $wpdb;
548 505 echo '<div class="clear"></div>START SYSTEM<pre>';
549 506 $qq_kk = 0;
@@ -549,10 +506,10 @@
549 506 $qq_kk = 0;
550 507 $total_time = 0;
551 508 $total_num = 0;
552 509 foreach ( $wpdb->queries as $qq_k => $qq ) {
553 - if (
554 - ( strpos( $qq[0], 'booking') !== false )
510 + if (
511 + ( strpos( $qq[0], 'booking') !== false )
555 512
556 513 ) {
557 514 if ( $qq[1] > 0.002 ) { echo '<div style="color:#A77;font-weight:bold;">'; }
558 515 debuge($qq_kk++, $qq);
@@ -562,21 +519,20 @@
562 519 }
563 520 }
564 521
565 522 echo '<div><pre class="prettyprint linenums" style="font-size:18px;">[' . esc_html( $total_num . '/' . $total_time ) . '] WPBC Requests TOTAL TIME</pre></div>';
566 -
523 +
567 524 echo '<div class="clear"></div>';
568 525
569 526 echo '<div><pre class="prettyprint linenums" style="font-size:18px;">' . esc_html( get_num_queries() . '/' . timer_stop( 0, 3 ) ) . 'qps</pre></div>';
570 -
571 - echo '<div class="clear"></div>';
572 -
527 +
528 + echo '<div class="clear"></div>';
529 +
573 530 echo "</pre>";
574 531 ?><br/><br/><br/><br/><br/><br/><?php
575 - echo '<div class="clear"></div>';
532 + echo '<div class="clear"></div>';
576 533
577 534 ////////////////////////////////////////////////////////////////////////////////
578 535 ?></div><?php
579 -
536 +
580 537 echo '</div>';
581 538 }
582 -