/trunk/vendor/composer/installed.json |
---|
350,12 → 350,12 |
"source": { |
"type": "git", |
"url": "https://github.com/danielmarschall/php_utils.git", |
"reference": "4a41123a727d2607c931f2486c94d91f46cc58f0" |
"reference": "2f698ec0e86f780b699cec900ae142fe5aad0f08" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/danielmarschall/php_utils/zipball/4a41123a727d2607c931f2486c94d91f46cc58f0", |
"reference": "4a41123a727d2607c931f2486c94d91f46cc58f0", |
"url": "https://api.github.com/repos/danielmarschall/php_utils/zipball/2f698ec0e86f780b699cec900ae142fe5aad0f08", |
"reference": "2f698ec0e86f780b699cec900ae142fe5aad0f08", |
"shasum": "" |
}, |
"require": { |
362,7 → 362,7 |
"ext-zlib": "*", |
"php": ">=7.0" |
}, |
"time": "2023-04-21T07:50:32+00:00", |
"time": "2023-08-01T20:16:14+00:00", |
"default-branch": true, |
"type": "library", |
"installation-source": "dist", |
/trunk/vendor/composer/installed.php |
---|
84,7 → 84,7 |
'danielmarschall/php_utils' => array( |
'pretty_version' => 'dev-master', |
'version' => 'dev-master', |
'reference' => '4a41123a727d2607c931f2486c94d91f46cc58f0', |
'reference' => '2f698ec0e86f780b699cec900ae142fe5aad0f08', |
'type' => 'library', |
'install_path' => __DIR__ . '/../danielmarschall/php_utils', |
'aliases' => array( |
/trunk/vendor/danielmarschall/php_utils/misc_functions.inc.php |
---|
3,7 → 3,7 |
/* |
* PHP Utilities - Misc functions |
* Copyright 2019 - 2023 Daniel Marschall, ViaThinkSoft |
* Revision: 2023-02-27 |
* Revision: 2023-08-01 |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
137,23 → 137,34 |
} |
function isInternetExplorer() { |
// see also includes/oidplus_base.js |
$ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; |
return ((strpos($ua,'MSIE ') !== false) || (strpos($ua,'Trident/') !== false)); |
} |
if (!function_exists('str_starts_with')) { |
// PHP 7.x compatibility |
// source: Laravel Framework |
// https://github.com/laravel/framework/blob/8.x/src/Illuminate/Support/Str.php |
function str_starts_with($haystack, $needle) { |
return (string)$needle !== '' && strncmp($haystack, $needle, strlen($needle)) === 0; |
} |
} |
if (!function_exists('str_ends_with')) { |
// PHP 7.x compatibility |
// source: Laravel Framework |
// https://github.com/laravel/framework/blob/8.x/src/Illuminate/Support/Str.php |
function str_ends_with($haystack, $needle) { |
$length = strlen($needle); |
return $length > 0 ? substr($haystack, -$length) === $needle : true; |
return $needle !== '' && substr($haystack, -strlen($needle)) === (string)$needle; |
} |
} |
if (!function_exists('str_starts_with')) { |
if (!function_exists('str_contains')) { |
// PHP 7.x compatibility |
function str_starts_with($haystack, $needle) { |
return strpos($haystack, $needle) === 0; |
// source: Laravel Framework |
// https://github.com/laravel/framework/blob/8.x/src/Illuminate/Support/Str.php |
function str_contains($haystack, $needle) { |
return $needle !== '' && mb_strpos($haystack, $needle) !== false; |
} |
} |
/trunk/vendor/licenses |
---|
14,8 → 14,8 |
danielmarschall/oidconverter dev-master 75088eb Apache-2.0 |
danielmarschall/php-sha3 9999999-dev 5605bd5 MIT |
danielmarschall/php-sha3 dev-master 5605bd5 MIT |
danielmarschall/php_utils 9999999-dev 4a41123 Apache-2.0 |
danielmarschall/php_utils dev-master 4a41123 Apache-2.0 |
danielmarschall/php_utils 9999999-dev 2f698ec Apache-2.0 |
danielmarschall/php_utils dev-master 2f698ec Apache-2.0 |
danielmarschall/uuid_mac_utils 9999999-dev ce6991c Apache-2.0 |
danielmarschall/uuid_mac_utils dev-master ce6991c Apache-2.0 |
danielmarschall/vnag 9999999-dev 1c01739 Apache-2.0 |