diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-21 14:17:28 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-21 14:17:28 +0000 |
commit | 32e60f1c2228e2a46707d15bec10cd54e476076c (patch) | |
tree | b175c135564801c598bd20644edbfa85580ae220 /h-source/Application/Include | |
parent | 5f551b2d89b02cd159bf35723695ab2343a87248 (diff) |
added ethernet cards to the list of allowed hardware
Diffstat (limited to 'h-source/Application/Include')
-rw-r--r-- | h-source/Application/Include/hardware.php | 17 | ||||
-rw-r--r-- | h-source/Application/Include/languages.php | 2 | ||||
-rw-r--r-- | h-source/Application/Include/params.php | 2 |
3 files changed, 20 insertions, 1 deletions
diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index 5f6ea9b..999a540 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -24,13 +24,17 @@ if (!defined('EG')) die('Direct access not allowed!'); class Hardware { - public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards','soundcards','webcams','bluetooth','acquisitioncards','fingerprintreaders'); //used by UsersController::login() + public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards','soundcards','webcams','bluetooth','acquisitioncards','fingerprintreaders','ethernetcards'); //used by UsersController::login() //classId => controller public static $deviceClasses = array( '0403' => 'soundcards', '0280' => 'wifi', '0300' => 'videocards', + '0200' => 'ethernetcards', + '0400' => 'acquisitioncards', + '0401' => 'acquisitioncards', + '0480' => 'acquisitioncards', ); public static $icons = array( @@ -45,6 +49,7 @@ class Hardware 'bluetooth' => 'H2O/preferences-system-bluetooth-22.png', 'acquisition-card' => 'Crystal/cam_mount-22.png', 'fingerprint-reader' => 'fingerprint_icon-22.png', + 'ethernet-card' => 'H2O/network-wired_22.png', ); public static $typeToController = array( @@ -59,6 +64,7 @@ class Hardware 'bluetooth' => 'bluetooth', 'acquisition-card' => 'acquisitioncards', 'fingerprint-reader' => 'fingerprintreaders', + 'ethernet-card' => 'ethernetcards', ); public static function getTypes() @@ -369,4 +375,13 @@ class Fingerprintreaders extends Hardware public static $interface = "not-specified,USB,PCI,PCI-E,mini-PCI,mini-PCI-E,ExpressCard,PC-Card,Firewire,Parallel,Serial"; +} + +class Ethernetcards extends Hardware +{ + + public static $select = 'yes,no'; + + public static $interface = "not-specified,USB,PCI,PCI-E,mini-PCI,mini-PCI-E,ExpressCard,PC-Card,Firewire,Parallel,Serial"; + }
\ No newline at end of file diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 940ea02..986f42a 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -244,6 +244,7 @@ class Lang /*0206*/"The device page has to be approved by an administrator of the website" => "La pagina del dispositivo deve essere approvata da un amministratore del sito", /*0207*/"permanently delete the device page" => "cancella definitivamente la pagina", /*0208*/"This page has been permanently deleted by an administrator of the website" => "Questa pagina è stata definitivamente cancellata da un amministratore del sito", + /*0209*/"No ethernet devices found" => "Non è stata trovata alcuna scheda ethernet", ), 'es' => array ( @@ -1011,6 +1012,7 @@ class MyStrings 'bluetooth' => 'bluetooth', 'acquisition-card' => 'acquisitioncards', 'fingerprint-reader' => 'fingerprintreaders', + 'ethernet-card' => 'ethernetcards', ); public static function getTypes() diff --git a/h-source/Application/Include/params.php b/h-source/Application/Include/params.php index 1d3533b..ba4fef3 100644 --- a/h-source/Application/Include/params.php +++ b/h-source/Application/Include/params.php @@ -31,6 +31,8 @@ class Website static public $mailServer = ""; static public $mailPassword = ""; + + static public $allowAnonymousSubmission = "yes"; } class Account |