mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-20 18:09:54 +00:00
23 lines
376 B
PHP
23 lines
376 B
PHP
<?php
|
|
|
|
function getProductIdSuffix($row)
|
|
{
|
|
$vidpid = $row['vendorid'];
|
|
|
|
// todo: database product table...
|
|
$known = array(
|
|
// ASUS 970
|
|
'1043:8508' => 'Strix',
|
|
// Gigabyte 750 ti
|
|
'1458:3649' => 'Black',
|
|
// Gigabyte 960
|
|
'1458:36ae' => '4GB',
|
|
// EVGA 970
|
|
'3842:3975' => 'SSC',
|
|
);
|
|
|
|
if (isset($known[$vidpid])) {
|
|
return ' '.$known[$vidpid];
|
|
}
|
|
return '';
|
|
}
|