HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/luman-plus/vendor/mpdf/mpdf/src/functions.php
<?php

if (!function_exists('str_starts_with')) {
	function str_starts_with($haystack, $needle)
	{
		return 0 === strncmp($haystack, $needle, \strlen($needle));
	}
}

if (!function_exists('str_ends_with')) {
	function str_ends_with($haystack, $needle)
	{
		if ('' === $needle || $needle === $haystack) {
			return true;
		}

		if ('' === $haystack) {
			return false;
		}

		$needleLength = \strlen($needle);

		return $needleLength <= \strlen($haystack) && 0 === substr_compare($haystack, $needle, -$needleLength);
	}
}