HEX
Server: Apache
System: Linux flamboyant-gauss.194-164-62-186.plesk.page 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: gamesamphora (10001)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/amphoragames.com/httpdocs/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 );
	}
}