diff options
Diffstat (limited to 'h-source/Application/Include')
| -rw-r--r-- | h-source/Application/Include/hardware.php | 43 | ||||
| -rw-r--r-- | h-source/Application/Include/languages.php | 20 | ||||
| -rw-r--r-- | h-source/Application/Include/myFunctions.php | 26 | 
3 files changed, 87 insertions, 2 deletions
| diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index 852cd62..e0919a9 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -24,7 +24,7 @@ if (!defined('EG')) die('Direct access not allowed!');  class Hardware  { -	public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards'); //used by UsersController::login() +	public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards','soundcards'); //used by UsersController::login()  	public static $commYear = 'not-specified,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2000,1999,1998,1997,1996,1995,1994,1993,1992'; @@ -290,4 +290,45 @@ class ThreeGcards extends Wifi  	{  		return implode(',',array_values(self::$vendors));  	} +} + +class Soundcards extends Hardware +{ +	public static $vendors = array( +		"ALi Corporation" => "ALi-Corporation", +		"Advanced Micro Devices (AMD)"	=>	"Advanced-Micro-Devices", +		"Analog Devices"	=>	"Analog-Devices", +		"ATI Technologies Inc"	=>	"ATI-Technologies-Inc", +		"Aureal Semiconductor"	=>	"Aureal-Semiconductor", +		"Avance Logic Inc (ALI)"	=>	"Avance-Logic-Inc", +		"Aztech System Ltd"	=>	"Aztech-System-Ltd", +		"Brooktree Corporation"	=>	"Brooktree-Corporation", +		"C-Media Electronics Inc"	=>	"C-Media-Electronics-Inc", +		"Cirrus Logic"	=>	"Cirrus-Logic", +		"Creative Labs"	=>	"Creative-Labs", +		"Ensoniq"	=>	"Ensoniq", +		"ESS Technology"	=>	"ESS-Technology", +		"ForteMedia Inc"	=>	"ForteMedia-Inc", +		"Intel Corporation"	=>	"Intel-Corporation", +		"Motorola"	=>	"Motorola", +		"National Semiconductor Corporation"	=>	"National-Semiconductor-Corporation", +		"Neomagic Corp"	=>	"Neomagic-Corp", +		"nVidia Corporation"	=>	"nVidia-Corporation", +		"RME"	=>	"RME", +		"S3 Inc"	=>	"S3-Inc", +		"Silicon Integrated Systems (SiS)"	=>	"Silicon-Integrated-Systems", +		"Trident Microsystems"	=>	"Trident-Microsystems", +		"VIA Technologies Inc"	=>	"VIA-Technologies-Inc", +		"Xilinx Corporation"	=>	"Xilinx-Corporation", +		"Yamaha Corporation"	=>	"Yamaha-Corporation", +	); +	 +	public static $audioSelect = 'yes,no'; +	 +	public static $interface = "not-specified,PCI,ISA,USB,Firewire,Parallel,PCI-E,PCMCIA"; + +	public static function vendorsList() +	{ +		return implode(',',array_values(self::$vendors)); +	}  }
\ No newline at end of file diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 2d1514b..44c9020 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -139,6 +139,7 @@ class Lang  				"My description"	=>	"La mia descrizione",  				"contributions"	=>	"contributi",  				"contributions of"	=>	"contributi di", +				"No sound cards found"	=>	"Non รจ stata trovata alcuna scheda audio",  			),  		'es'	=>	array  			( @@ -318,6 +319,10 @@ class MyStrings  			'threegcards' => array(  				'element' => '3G-card',  			), +			 +			'soundcards' => array( +				'element' => 'sound card', +			),  		),  		'fr' =>	array( @@ -345,6 +350,10 @@ class MyStrings  			'threegcards' => array(  				'element' => '3G-card',  			), +			 +			'soundcards' => array( +				'element' => 'sound card', +			),  		),  		'it' =>	array( @@ -372,6 +381,10 @@ class MyStrings  			'threegcards' => array(  				'element' => '3G-card',  			), +			 +			'soundcards' => array( +				'element' => 'sound card', +			),  		),  		'es' =>	array( @@ -399,6 +412,10 @@ class MyStrings  			'threegcards' => array(  				'element' => '3G-card',  			), +			 +			'soundcards' => array( +				'element' => 'sound card', +			),  		),  	); @@ -409,7 +426,8 @@ class MyStrings  		'videocard'	=>	'videocards',  		'printer'	=>	'printers',  		'scanner'	=>	'scanners', -		'3G-card'	=>	'threegcards' +		'3G-card'	=>	'threegcards', +		'soundcard'	=>	'soundcards',  	);  	public static function getTypes() diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index e182690..0aa5aca 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -318,6 +318,32 @@ function betterVendor($string)  		"Franklin-Wireless-Corporation"	=>	"Franklin Wireless Corporation",  		"Novatel-Wireless"	=>	"Novatel Wireless",  		"Sierra-Wireless"	=>	"Sierra Wireless", +		"ALi-Corporation" => "ALi Corporation", +		"Advanced-Micro-Devices"	=>	"Advanced Micro Devices (AMD)", +		"Analog-Devices"	=>	"Analog Devices", +		"ATI-Technologies-Inc"	=>	"ATI Technologies Inc", +		"Aureal-Semiconductor"	=>	"Aureal Semiconductor", +		"Avance-Logic-Inc"	=>	"Avance Logic Inc (ALI)", +		"Aztech-System-Ltd"	=>	"Aztech System Ltd", +		"Brooktree-Corporation"	=>	"Brooktree Corporation", +		"C-Media-Electronics-Inc"	=>	"C-Media Electronics Inc", +		"Cirrus-Logic"	=>	"Cirrus Logic", +		"Creative-Labs"	=>	"Creative Labs", +		"Ensoniq"	=>	"Ensoniq", +		"ESS-Technology"	=>	"ESS Technology", +		"ForteMedia-Inc"	=>	"ForteMedia Inc", +		"Intel-Corporation"	=>	"Intel Corporation", +		"Motorola"	=>	"Motorola", +		"National-Semiconductor-Corporation"	=>	"National Semiconductor Corporation", +		"Neomagic-Corp"	=>	"Neomagic Corp", +		"nVidia-Corporation"	=>	"nVidia Corporation", +		"RME"	=>	"RME", +		"S3 Inc"	=>	"S3-Inc", +		"Silicon-Integrated-Systems"	=>	"Silicon Integrated Systems (SiS)", +		"Trident-Microsystems"	=>	"Trident Microsystems", +		"VIA-Technologies-Inc"	=>	"VIA Technologies Inc", +		"Xilinx-Corporation"	=>	"Xilinx Corporation", +		"Yamaha-Corporation"	=>	"Yamaha Corporation",  	);  	return (array_key_exists($string,$names)) ? $names[$string] : $string; | 
