aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r--h-source/Application/Controllers/DownloadController.php65
1 files changed, 31 insertions, 34 deletions
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<kernel_libre>".$row['hardware']['kernel']."</kernel_libre>\n";
$xml .= "\t\t<distribution>".$row['hardware']['distribution']."</distribution>\n";
$xml .= "\t\t<year>".$row['hardware']['comm_year']."</year>\n";
+
if ($type !== 'notebook')
{
$xml .= "\t\t<interface>".$row['hardware']['interface']."</interface>\n";
@@ -95,67 +96,58 @@ class DownloadController extends BaseController
{
$xml .= "\t\t<compatibility>".$row['hardware']['compatibility']."</compatibility>\n";
}
-
- if ($type === 'printer')
- {
- $xml .= "\t\t<it_tracks_users>".$row['hardware']['it_tracks_users']."</it_tracks_users>\n";
- }
-
- if ($type === 'notebook')
- {
- $xml .= "\t\t<wifi_card>".$row['hardware']['wifi_type']."</wifi_card>\n";
- $xml .= "\t\t<videocard>".$row['hardware']['video_card_type']."</videocard>\n";
- $xml .= "\t\t<webcam>".$row['hardware']['webcam_type']."</webcam>\n";
- $xml .= "\t\t<wifi_works>".$row['hardware']['wifi_works']."</wifi_works>\n";
- $xml .= "\t\t<videocard_works>".$row['hardware']['video_card_works']."</videocard_works>\n";
- $xml .= "\t\t<webcam_works>".$row['hardware']['webcam_works']."</webcam_works>\n";
- }
-
- if ($type === '3G-card' or $type === 'wifi')
+ else if ($type === '3G-card' or $type === 'wifi')
{
$xml .= "\t\t<it_works>".$row['hardware']['wifi_works']."</it_works>\n";
}
-
- if ($type === 'soundcard')
+ else if ($type === 'soundcard')
{
$xml .= "\t\t<it_works>".$row['hardware']['sound_card_works']."</it_works>\n";
}
-
- if ($type === 'bluetooth')
+ else if ($type === 'bluetooth')
{
$xml .= "\t\t<it_works>".$row['hardware']['bluetooth_works']."</it_works>\n";
}
-
- if ($type === 'webcam')
+ else if ($type === 'webcam')
{
$xml .= "\t\t<it_works>".$row['hardware']['webcam_works']."</it_works>\n";
}
-
- if ($type === 'videocard')
+ else if ($type === 'videocard')
{
$xml .= "\t\t<it_works>".$row['hardware']['video_card_works']."</it_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<it_works>".$row['hardware']['compatibility']."</it_works>\n";
}
-
- if ($type === 'fingerprint-reader')
+ else if ($type === 'fingerprint-reader')
{
$xml .= "\t\t<it_works>".$row['hardware']['fingerprint_works']."</it_works>\n";
}
-
- if ($type === 'ethernet-card')
+ else if ($type === 'ethernet-card')
{
$xml .= "\t\t<it_works>".$row['hardware']['ethernet_card_works']."</it_works>\n";
}
-
- if ($type === 'sd-card-reader')
+ else if ($type === 'sd-card-reader')
{
$xml .= "\t\t<it_works>".$row['hardware']['sd_card_works']."</it_works>\n";
}
-
+
+ if ($type === 'printer')
+ {
+ $xml .= "\t\t<it_tracks_users>".$row['hardware']['it_tracks_users']."</it_tracks_users>\n";
+ }
+
+ if ($type === 'notebook')
+ {
+ $xml .= "\t\t<wifi_card>".$row['hardware']['wifi_type']."</wifi_card>\n";
+ $xml .= "\t\t<videocard>".$row['hardware']['video_card_type']."</videocard>\n";
+ $xml .= "\t\t<webcam>".$row['hardware']['webcam_type']."</webcam>\n";
+ $xml .= "\t\t<wifi_works>".$row['hardware']['wifi_works']."</wifi_works>\n";
+ $xml .= "\t\t<videocard_works>".$row['hardware']['video_card_works']."</videocard_works>\n";
+ $xml .= "\t\t<webcam_works>".$row['hardware']['webcam_works']."</webcam_works>\n";
+ }
+
if ($type !== "notebook")
{
$xml .= "\t\t<driver>".$row['hardware']['driver']."</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