$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_start
);
$version = substr(
$pos_version_start,
$pos_version_end - $pos_version_start
);
+
} 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";