projects
/
ip.malte70.de.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb3e97d
)
PS4-Browser und -OS wird wieder korrekt erkannt, inkl. jeweiliger Versionsnummern
main
author
Malte Bublitz
<malte@rolltreppe3.de>
Wed, 24 Jan 2024 17:48:28 +0000
(18:48 +0100)
committer
Malte Bublitz
<malte@rolltreppe3.de>
Wed, 24 Jan 2024 17:48:28 +0000
(18:48 +0100)
clientinfo.class.php
patch
|
blob
|
history
diff --git
a/clientinfo.class.php
b/clientinfo.class.php
index 5fd4a767686a9375137a74a110f14bf0de79e6fa..d0324a1f5677197b62e7db2b5084acd2bf8733a3 100644
(file)
--- a/
clientinfo.class.php
+++ b/
clientinfo.class.php
@@
-242,11
+242,11
@@
class ClientInfo {
$this->browser = "PlayStation 4 Browser";
$pos_version_start = stripos(
$ua,
$this->browser = "PlayStation 4 Browser";
$pos_version_start = stripos(
$ua,
- "
PlayStation 4
"
- ) + strlen("
PlayStation 4
");
+ "
Version/
"
+ ) + strlen("
Version/
");
$pos_version_end = stripos(
$ua,
$pos_version_end = stripos(
$ua,
- "
)
",
+ "
",
$pos_version_start
);
$version = substr(
$pos_version_start
);
$version = substr(
@@
-413,8
+413,23
@@
class ClientInfo {
$pos_version_start,
$pos_version_end - $pos_version_start
);
$pos_version_start,
$pos_version_end - $pos_version_start
);
+
} elseif (stripos($ua, "PlayStation 4") !== false) {
} elseif (stripos($ua, "PlayStation 4") !== false) {
- $this->OS = "PlayStation 4 System";
+ $this->OS = "PlayStation 4 System ";
+ $pos_version_start = stripos(
+ $ua,
+ "PlayStation 4/"
+ ) + strlen("PlayStation 4/");
+ $pos_version_end = stripos(
+ $ua,
+ ")",
+ $pos_version_start
+ );
+ $this->OS .= substr(
+ $ua,
+ $pos_version_start,
+ $pos_version_end - $pos_version_start
+ );
} elseif (stripos($ua, "FreeBSD") !== false) {
$this->OS = "FreeBSD";
} elseif (stripos($ua, "FreeBSD") !== false) {
$this->OS = "FreeBSD";