diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2010-10-24 19:30:13 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2010-10-24 19:30:13 +0000 |
commit | 4641de870cfa9c5d4c41a94328a8fb1f4adfdc78 (patch) | |
tree | 10ba2ad1ca50c4a91d605858d054fdd948927c2f /h-source/Application/Controllers/DownloadController.php | |
parent | 871d4231da58aff1902cdf260e887e1ee52d1716 (diff) |
added 3G cards
Diffstat (limited to 'h-source/Application/Controllers/DownloadController.php')
-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 4952456..d37cf36 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -93,11 +93,16 @@ class DownloadController extends BaseController $xml .= "\t\t<videocard>".$row['hardware']['video_card_type']."</videocard>\n"; } - if ($type === 'notebook' or $type === 'wifi') + if ($type === 'notebook') { $xml .= "\t\t<wifi_works>".$row['hardware']['wifi_works']."</wifi_works>\n"; } + if ($type === '3G-card' or $type === 'wifi') + { + $xml .= "\t\t<it_works>".$row['hardware']['wifi_works']."</it_works>\n"; + } + if ($type === 'notebook' or $type === 'videocard') { $xml .= "\t\t<videocard_works>".$row['hardware']['video_card_works']."</videocard_works>\n"; @@ -196,4 +201,17 @@ class DownloadController extends BaseController $this->clean(); $this->load('xml'); } + + public function threegcards($lang = 'en') + { + header ("Content-Type:text/xml"); + + $res = $this->m['HardwareModel']->clear()->select()->where(array('type'=>'3G-card','-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 |