Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 727 → Rev 728

/trunk/vendor/composer/InstalledVersions.php
82,7 → 82,7
array (
0 => '9999999-dev',
),
'reference' => 'eb0b3f8ba434d9ee5bc933e83fca2cf25b92bd4b',
'reference' => '20893f173243e648e0f5a726e908cade11ae1a6c',
),
'danielmarschall/uuid_mac_utils' =>
array (
92,7 → 92,7
array (
0 => '9999999-dev',
),
'reference' => '53cc75763e247535acd013f4aad7e0b1a41cee34',
'reference' => 'f99346b5382b1debcdb84c4541941151f700c1be',
),
'danielmarschall/vnag' =>
array (
/trunk/vendor/composer/installed.json
192,18 → 192,18
"source": {
"type": "git",
"url": "https://github.com/danielmarschall/php_utils.git",
"reference": "eb0b3f8ba434d9ee5bc933e83fca2cf25b92bd4b"
"reference": "20893f173243e648e0f5a726e908cade11ae1a6c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/danielmarschall/php_utils/zipball/eb0b3f8ba434d9ee5bc933e83fca2cf25b92bd4b",
"reference": "eb0b3f8ba434d9ee5bc933e83fca2cf25b92bd4b",
"url": "https://api.github.com/repos/danielmarschall/php_utils/zipball/20893f173243e648e0f5a726e908cade11ae1a6c",
"reference": "20893f173243e648e0f5a726e908cade11ae1a6c",
"shasum": ""
},
"require": {
"php": ">=7.0"
},
"time": "2022-01-06T20:55:14+00:00",
"time": "2022-01-07T22:37:29+00:00",
"default-branch": true,
"type": "library",
"installation-source": "dist",
233,18 → 233,18
"source": {
"type": "git",
"url": "https://github.com/danielmarschall/uuid_mac_utils.git",
"reference": "53cc75763e247535acd013f4aad7e0b1a41cee34"
"reference": "f99346b5382b1debcdb84c4541941151f700c1be"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/danielmarschall/uuid_mac_utils/zipball/53cc75763e247535acd013f4aad7e0b1a41cee34",
"reference": "53cc75763e247535acd013f4aad7e0b1a41cee34",
"url": "https://api.github.com/repos/danielmarschall/uuid_mac_utils/zipball/f99346b5382b1debcdb84c4541941151f700c1be",
"reference": "f99346b5382b1debcdb84c4541941151f700c1be",
"shasum": ""
},
"require": {
"php": ">=7.0"
},
"time": "2022-01-06T22:36:33+00:00",
"time": "2022-01-07T23:04:32+00:00",
"default-branch": true,
"type": "library",
"installation-source": "dist",
/trunk/vendor/composer/installed.php
56,7 → 56,7
array (
0 => '9999999-dev',
),
'reference' => 'eb0b3f8ba434d9ee5bc933e83fca2cf25b92bd4b',
'reference' => '20893f173243e648e0f5a726e908cade11ae1a6c',
),
'danielmarschall/uuid_mac_utils' =>
array (
66,7 → 66,7
array (
0 => '9999999-dev',
),
'reference' => '53cc75763e247535acd013f4aad7e0b1a41cee34',
'reference' => 'f99346b5382b1debcdb84c4541941151f700c1be',
),
'danielmarschall/vnag' =>
array (
/trunk/vendor/danielmarschall/php_utils/VtsBrowserDownload.class.php
33,6 → 33,10
 
private static function getMimeType($file_extension) {
$file_extension = strtolower($file_extension);
if (!class_exists('VtsFileTypeDetect')) {
// https://github.com/danielmarschall/fileformats
throw new Exception("Require 'fileformats' package");
}
return VtsFileTypeDetect::getMimeType('dummy.'.$file_extension);
}
 
/trunk/vendor/danielmarschall/php_utils/VtsLDAPUtils.class.php
25,10 → 25,18
private static function _L($str, ...$sprintfArgs) {
if (function_exists('_L')) {
return _L($str, $sprintfArgs);
} else if (function_exists('my_vsprintf')) {
return my_vsprintf($str, $sprintfArgs);
} else {
return my_vsprintf($str, $sprintfArgs);
$n = 1;
foreach ($sprintfArgs as $val) {
$str = str_replace("%$n", $val, $str);
$n++;
}
$str = str_replace("%%", "%", $str);
return $str;
}
}
 
public static function getString($ldap_userinfo, $attributeName) {
$ary = self::getArray($ldap_userinfo, $attributeName);
/trunk/vendor/danielmarschall/php_utils/git_utils.inc.php
127,6 → 127,7
// Find the exact object number
fseek($fp, $fanout_offset + 4*256 + 20*$object_no);
$object_no--;
$pack_offset = -1; // avoid that phpstan complains
do {
$object_no++;
if ($version == 1) {
/trunk/vendor/danielmarschall/php_utils/ip_functions.inc.php
2,8 → 2,8
 
/*
* IP functions
* Copyright 2015 Daniel Marschall, ViaThinkSoft
* Version 2015-10-27
* Copyright 2015-2022 Daniel Marschall, ViaThinkSoft
* Version 2021-01-07
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
18,11 → 18,12
* limitations under the License.
*/
 
function get_real_ip() {
// Attention in re $allow_proxy: It is not secure to use these, since they are not validated: http://www.thespanner.co.uk/2007/12/02/faking-the-unexpected/
function get_real_ip($allow_proxy=false) {
/* Eindeutige IP Adresse erhalten, auch bei Proxies und (neu:) von SSH connections im CLI modus */
// http://lists.phpbar.de/pipermail/php/Week-of-Mon-20040322/007749.html
// Modificated by VTS
// Version: 2015-10-27
// Version: 2021-01-07
 
// TODO: ipv6
 
29,12 → 30,8
if (isset($_SERVER['SSH_CLIENT'])) { $ary = explode(' ', $_SERVER['SSH_CLIENT']); return $ary[0]; }
if (isset($_SERVER['SSH_CONNECTION'])) { $ary = explode(' ', $_SERVER['SSH_CONNECTION']); return $ary[0]; }
 
$client_ip = (isset($_SERVER['HTTP_CLIENT_IP'])) ? $_SERVER['HTTP_CLIENT_IP'] : '';
 
// It is not secure to use these, since they are not validated: http://www.thespanner.co.uk/2007/12/02/faking-the-unexpected/
// $x_forwarded_for = (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : '';
$x_forwarded_for = '';
 
$client_ip = ($allow_proxy && isset($_SERVER['HTTP_CLIENT_IP'])) ? $_SERVER['HTTP_CLIENT_IP'] : '';
$x_forwarded_for = ($allow_proxy && isset($_SERVER['HTTP_X_FORWARDED_FOR'])) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : '';
$remote_addr = (isset($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : '';
 
if (!empty($client_ip)) {
/trunk/vendor/danielmarschall/php_utils/ipresolution.inc.php
79,7 → 79,7
}
}
 
# VTS-Modified: IP4+IP6 merged
# VTS-Modified: Output IP4+IP6 merged instead of giving only IPv6 or IPv4
$merged = array_merge($ip4, $ip6);
if (count($merged) < 1) {
return false;
86,7 → 86,7
} else {
return $merged;
}
 
/*
if (count($ip6) < 1) {
if ($try_a == true) {
if (count($ip4) < 1) {
100,4 → 100,5
} else {
return $ip6;
}
*/
}
/trunk/vendor/danielmarschall/php_utils/last_weekday_date.inc.php
20,7 → 20,7
 
function get_last_weekday_date($dow) {
for ($i=0; $i<=6; $i++) {
$d = ftime()-$i*86400;
$d = time()-$i*86400;
$e = date('N', $d);
if ($e == $dow) {
return date('d.m.Y', $d);
/trunk/vendor/danielmarschall/php_utils/oid_utils.inc.php
3,7 → 3,7
/*
* OID-Utilities for PHP
* Copyright 2011-2022 Daniel Marschall, ViaThinkSoft
* Version 2022-01-06
* Version 2022-01-07
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
333,14 → 333,15
* @version 2015-08-17
* @param string $oid<br/>
* An OID in dot notation.
* @param boolean $leading_dot<br/>
* @param mixed $leading_dot<br/>
* true: The OID is valid, if it contains a leading dot.<br/>
* false (default): The OID is valid, if it does not contain a leading dot.
* 'auto: Allow both
* @return string|false The OID without leading dots, or <code>false</code> if the OID is syntactically wrong.
**/
$oid_sanitize_cache = array();
function sanitizeOID($oid, $leading_dot=false) {
static $oid_sanitize_cache = array();
 
if ($leading_dot) $leading_dot = substr($oid,0,1) == '.';
 
// We are using a cache, since this function is used very often by OIDplus
/trunk/vendor/danielmarschall/php_utils/phpstan.neon.dist
0,0 → 1,14
parameters:
level: 5
paths:
- .
excludePaths:
analyseAndScan:
- .phpstan.tmp
tmpDir: .phpstan.tmp
ignoreErrors:
#- '#is always (true|false)\.#'
- '#Call to function assert\(\) with false will always evaluate to false\.#'
#- '#with no typehint specified\.#'
 
 
/trunk/vendor/danielmarschall/php_utils/x_509_utils.inc.php
121,9 → 121,8
}
 
 
// TODO: Needs caching, otherwise the page is too slow
function x_509_ocsp_check_chain($infile, $CApath) {
return '(Skipped)'; # TODO: we need caching, otherwise the page is too slow
 
$x = x_509_chain($infile, $CApath);
 
if ($x === false) {
/trunk/vendor/danielmarschall/uuid_mac_utils/includes/OidDerConverter.class.php
2,7 → 2,7
 
/*
* OidDerConverter.class.php, Version 1.1; Based on version 1.11 of oid.c
* Copyright 2014-2015 Daniel Marschall, ViaThinkSoft
* Copyright 2014-2022 Daniel Marschall, ViaThinkSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
44,7 → 44,7
}
 
/**
* @return string Outputs .<oid> for an absolute OID and <oid> for a relative OID.
* @return string|false Outputs .<oid> for an absolute OID and <oid> for a relative OID.
*/
public static function derToOID($abBinary, $verbose=false) {
$output_oid = array();
72,6 → 72,8
 
$arcBeginning = true;
 
$isRelative = null; // to avoid that phpstan complains
 
foreach ($abBinary as $nn => &$pb) {
if ($part == 0) { // Class Tag
// Leading octet
189,7 → 191,7
// 2.48 and up => 2+ octets
// Output in "part 3"
 
if ($arcBeginning && ($pb == 0x80)) {
if ($pb == 0x80) {
if ($verbose) fprintf(STDERR, "Encoding error. Illegal 0x80 paddings. (See Rec. ITU-T X.690, clause 8.19.2)\n");
return false;
} else {
352,7 → 354,7
 
$nBinaryWork = $nBinary;
do {
$output[] = nBinaryWork & 0xFF;
$output[] = $nBinaryWork & 0xFF;
$nBinaryWork /= 0x100;
} while ($nBinaryWork > 0);
}
/trunk/vendor/danielmarschall/uuid_mac_utils/includes/uuid_utils.inc.php
162,7 → 162,7
 
if (function_exists('decode_mac')) {
echo "\nIn case that this Node ID is a MAC address, here is the interpretation of that MAC address:\n";
echo decode_mac($nodeid); /** @phpstan-ignore-line */
echo decode_mac($nodeid);
}
 
break;
220,7 → 220,7
 
if (function_exists('decode_mac')) {
echo "\nIn case that this Node ID is a MAC address, here is the interpretation of that MAC address:\n";
echo decode_mac($nodeid); /** @phpstan-ignore-line */
echo decode_mac($nodeid);
}
 
break;
/trunk/vendor/danielmarschall/uuid_mac_utils/phpstan.neon.dist
0,0 → 1,8
parameters:
level: 5
paths:
- .
excludePaths:
analyseAndScan:
- .phpstan.tmp
tmpDir: .phpstan.tmp
/trunk/vendor/licenses
7,8 → 7,8
components/jquery 3.6.0 MIT
components/jqueryui 1.12.1 MIT
danielmarschall/fileformats dev-master acfeaf4 Apache-2.0
danielmarschall/php_utils dev-master eb0b3f8 Apache-2.0
danielmarschall/uuid_mac_utils dev-master 53cc757 Apache-2.0
danielmarschall/php_utils dev-master 20893f1 Apache-2.0
danielmarschall/uuid_mac_utils dev-master f99346b Apache-2.0
danielmarschall/vnag dev-master 8bf513c Apache-2.0
dcodeio/bcrypt.js master master BSD-3-Clause, MIT
emn178/js-sha3 master master MIT