diff options
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r-- | h-source/Application/Controllers/DownloadController.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index 72292f6..f79fe7e 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -113,6 +113,11 @@ class DownloadController extends BaseController $xml .= "\t\t<it_works>".$row['hardware']['sound_card_works']."</it_works>\n"; } + if ($type === 'bluetooth') + { + $xml .= "\t\t<it_works>".$row['hardware']['bluetooth_works']."</it_works>\n"; + } + if ($type === 'webcam') { $xml .= "\t\t<it_works>".$row['hardware']['webcam_works']."</it_works>\n"; @@ -123,7 +128,7 @@ class DownloadController extends BaseController $xml .= "\t\t<it_works>".$row['hardware']['video_card_works']."</it_works>\n"; } - if ($type === 'printer' or $type === 'scanner' or $type === 'soundcard' or $type === 'webcam') + if ($type === 'printer' or $type === 'scanner' or $type === 'soundcard' or $type === 'webcam' or $type === 'bluetooth') { $xml .= "\t\t<driver>".$row['hardware']['driver']."</driver>\n"; } @@ -257,4 +262,17 @@ class DownloadController extends BaseController $this->clean(); $this->load('xml'); } + + public function bluetooth($lang = 'en') + { + header ("Content-Type:text/xml"); + + $res = $this->m['HardwareModel']->clear()->select()->where(array('type'=>'bluetooth','-deleted'=>'no'))->orderBy("type,hardware.id_hard")->send(); + + $data['xml'] = $this->getXml($res); + + $this->append($data); + $this->clean(); + $this->load('xml'); + } }
\ No newline at end of file |