HEX
Server: Apache
System: Linux webm004.cluster121.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: grainesdfo (155059)
PHP: 8.2.29
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/grainesdfo/www/wp-content/plugins/backwpup/src/compat.php
<?php
defined( 'ABSPATH' ) || exit;

// Make sure CAL_GREGORIAN defined.
if ( ! defined( 'CAL_GREGORIAN' ) ) {
	define( 'CAL_GREGORIAN', 1 );
}

// Sometimes we will not find this function because calendar extension is not enabled, rare case but this happens.
if ( ! function_exists( 'cal_days_in_month' ) ) {

	/**
	 * Compatibility code for cal_days_in_month.
	 *
	 * @param int $calendar Only accepts GREGORIAN.
	 * @param int $month Month.
	 * @param int $year Year.
	 *
	 * @return int
	 */
	function cal_days_in_month( $calendar, $month, $year ) {
		return backwpup_cal_days_in_month( $month, $year );
	}
}