From ec480291d35e5d69a0689aa905fdddeddfa13524 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 8 May 2012 06:39:47 +0000 Subject: added PCMCIA controllers - part 2 --- .../Application/Controllers/DownloadController.php | 65 +++++++++++----------- 1 file changed, 31 insertions(+), 34 deletions(-) (limited to 'h-source/Application/Controllers') diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index 7994329..5e15e7e 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -86,6 +86,7 @@ class DownloadController extends BaseController $xml .= "\t\t".$row['hardware']['kernel']."\n"; $xml .= "\t\t".$row['hardware']['distribution']."\n"; $xml .= "\t\t".$row['hardware']['comm_year']."\n"; + if ($type !== 'notebook') { $xml .= "\t\t".$row['hardware']['interface']."\n"; @@ -95,67 +96,58 @@ class DownloadController extends BaseController { $xml .= "\t\t".$row['hardware']['compatibility']."\n"; } - - if ($type === 'printer') - { - $xml .= "\t\t".$row['hardware']['it_tracks_users']."\n"; - } - - if ($type === 'notebook') - { - $xml .= "\t\t".$row['hardware']['wifi_type']."\n"; - $xml .= "\t\t".$row['hardware']['video_card_type']."\n"; - $xml .= "\t\t".$row['hardware']['webcam_type']."\n"; - $xml .= "\t\t".$row['hardware']['wifi_works']."\n"; - $xml .= "\t\t".$row['hardware']['video_card_works']."\n"; - $xml .= "\t\t".$row['hardware']['webcam_works']."\n"; - } - - if ($type === '3G-card' or $type === 'wifi') + else if ($type === '3G-card' or $type === 'wifi') { $xml .= "\t\t".$row['hardware']['wifi_works']."\n"; } - - if ($type === 'soundcard') + else if ($type === 'soundcard') { $xml .= "\t\t".$row['hardware']['sound_card_works']."\n"; } - - if ($type === 'bluetooth') + else if ($type === 'bluetooth') { $xml .= "\t\t".$row['hardware']['bluetooth_works']."\n"; } - - if ($type === 'webcam') + else if ($type === 'webcam') { $xml .= "\t\t".$row['hardware']['webcam_works']."\n"; } - - if ($type === 'videocard') + else if ($type === 'videocard') { $xml .= "\t\t".$row['hardware']['video_card_works']."\n"; } - - if ($type === 'acquisition-card' or $type === 'modem' or $type === 'RAID-adapter') + else if ($type === 'acquisition-card' or $type === 'modem' or $type === 'RAID-adapter' or $type === 'PCMCIA-controller') { $xml .= "\t\t".$row['hardware']['compatibility']."\n"; } - - if ($type === 'fingerprint-reader') + else if ($type === 'fingerprint-reader') { $xml .= "\t\t".$row['hardware']['fingerprint_works']."\n"; } - - if ($type === 'ethernet-card') + else if ($type === 'ethernet-card') { $xml .= "\t\t".$row['hardware']['ethernet_card_works']."\n"; } - - if ($type === 'sd-card-reader') + else if ($type === 'sd-card-reader') { $xml .= "\t\t".$row['hardware']['sd_card_works']."\n"; } - + + if ($type === 'printer') + { + $xml .= "\t\t".$row['hardware']['it_tracks_users']."\n"; + } + + if ($type === 'notebook') + { + $xml .= "\t\t".$row['hardware']['wifi_type']."\n"; + $xml .= "\t\t".$row['hardware']['video_card_type']."\n"; + $xml .= "\t\t".$row['hardware']['webcam_type']."\n"; + $xml .= "\t\t".$row['hardware']['wifi_works']."\n"; + $xml .= "\t\t".$row['hardware']['video_card_works']."\n"; + $xml .= "\t\t".$row['hardware']['webcam_works']."\n"; + } + if ($type !== "notebook") { $xml .= "\t\t".$row['hardware']['driver']."\n"; @@ -266,4 +258,9 @@ class DownloadController extends BaseController { $this->printXml($lang, array('type'=>'RAID-adapter','-deleted'=>'no')); } + + public function pcmcia($lang = 'en') + { + $this->printXml($lang, array('type'=>'PCMCIA-controller','-deleted'=>'no')); + } } \ No newline at end of file -- cgit v1.2.3