Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions www/www.reactos.org/testman/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@
<option></option>
<option value="reactos">ReactOS</option>
<option value="5.2">Windows Server 2003</option>
<option value="6.0">Windows Vista</option>
<option value="6.1">Windows 7</option>
<option value="6.3">Windows 8.1</option>
<option value="10.0">Windows 10</option>
</select><br>
</div>
</div>
Expand Down
32 changes: 30 additions & 2 deletions www/www.reactos.org/testman/utils.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,43 @@ function GetPlatformString($platform)
switch ($minor)
{
case 0:
if ($type = "s")
if ($type == "s")
$str = "Windows Server 2008";
else
$str = "Windows Vista";

break;

case 1:
$str = "Windows 7";
if ($type == "s")
$str = "Windows Server 2008 R2";
else
$str = "Windows 7";

break;

case 3:
if ($type == "s")
$str = "Windows Server 2012 R2";
else
$str = "Windows 8.1";
break;

default:
return $platform;
}

break;

case 10:
switch ($minor)
{
case 0:
if ($type == "s")
$str = "Windows Server 2016";
else
$str = "Windows 10";

break;

default:
Expand Down