AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 3.147.69.22   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/profile-builder/admin/advanced-settings/includes/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/profile-builder/admin/advanced-settings/includes/fields/datepicker-starts-monday.php
<?php

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

function wppb_toolbox_datepicker_starts_on_monday( $output, $form_location, $field, $user_id, $field_check_errors, $request_data ){
	$field_id = $field['meta-name'];

	$script = '<script>
	jQuery(function(){
	jQuery("#'. $field_id . '").each( function(){
		var currentDatepicker = this;
		jQuery( currentDatepicker ).datepicker("destroy");
		jQuery( currentDatepicker ).datepicker({
	            inline: true,
	            changeYear: true,
				changeMonth: true,
				dateFormat: jQuery( currentDatepicker ).data("dateformat"),
				firstDay: 1,
				yearRange: "c-100:c+30"
			});
		});
	});
	</script>';

	return $output . $script;
}
add_filter( 'wppb_output_form_field_datepicker', 'wppb_toolbox_datepicker_starts_on_monday', 20, 6 );
add_filter( 'wppb_admin_output_form_field_datepicker', 'wppb_toolbox_datepicker_starts_on_monday', 20, 6 );

Anon7 - 2022
AnonSec Team