HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/mobilech/alliancelaptoptraining.com.np/wp-content/plugins/backup/src/JetBackup/functions.php
<?php

if (!defined( '__JETBACKUP__')) die('Direct access is not allowed');

/**
 * @param $data
 * @param $exit
 *
 * @return void
 */
function po($data, $exit=0) {
	echo "<pre>";
	print_r($data);
	if($exit) exit;
}

/**
 * PHP 7.4 Backward compatability
 * This is taken and provided by WordPress, however during restore procedure we are not inside WordPress ecosystem
 */
if ( ! function_exists( 'str_starts_with' ) ) {
	/**
	 * @param $haystack
	 * @param $needle
	 *
	 * @return bool
	 */
	function str_starts_with( $haystack, $needle ): bool {
		if ( '' === $needle ) return true;
		return 0 === strpos( $haystack, $needle );
	}
}

/**
 * PHP 7.4 Backward compatability
 * This is taken and provided by WordPress, however during restore procedure we are not inside WordPress ecosystem
 */
if ( ! function_exists( 'str_ends_with' ) ) {
	/**
	 * @param $haystack
	 * @param $needle
	 *
	 * @return bool
	 */
	function str_ends_with( $haystack, $needle ): bool {
		if ( '' === $haystack && '' !== $needle ) return false;
		$len = strlen( $needle );
		return 0 === substr_compare( $haystack, $needle, -$len, $len );
	}
}