diff options
Diffstat (limited to 'h-source')
-rw-r--r-- | h-source/Application/Controllers/DownloadController.php | 25 | ||||
-rw-r--r-- | h-source/Application/Controllers/WikiController.php | 7 | ||||
-rw-r--r-- | h-source/Application/Include/hardware.php | 2 | ||||
-rw-r--r-- | h-source/Application/Include/languages.php | 2 | ||||
-rw-r--r-- | h-source/Application/Views/Download/index.php | 8 | ||||
-rw-r--r-- | h-source/Application/Views/Hardware/left.php | 2 | ||||
-rw-r--r-- | h-source/Config/Route.php | 2 | ||||
-rw-r--r-- | h-source/Credits.txt | 4 | ||||
-rw-r--r-- | h-source/Public/Img/fingerprint_icon-22.png | bin | 0 -> 1314 bytes | |||
-rw-r--r-- | h-source/Public/Img/fingerprint_icon.png | bin | 0 -> 5032 bytes |
10 files changed, 46 insertions, 6 deletions
diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index fba20f0..bfc4346 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -92,7 +92,7 @@ class DownloadController extends BaseController { $xml .= "\t\t<compatibility>".$row['hardware']['compatibility']."</compatibility>\n"; } - + if ($type === 'notebook') { $xml .= "\t\t<wifi_card>".$row['hardware']['wifi_type']."</wifi_card>\n"; @@ -128,7 +128,17 @@ class DownloadController extends BaseController $xml .= "\t\t<it_works>".$row['hardware']['video_card_works']."</it_works>\n"; } - $devicesWithDriverEntry = array('printer','scanner','soundcard','webcam','bluetooth','wifi','videocard'); + if ($type === 'acquisition-card') + { + $xml .= "\t\t<it_works>".$row['hardware']['compatibility']."</it_works>\n"; + } + + if ($type === 'fingerprint-reader') + { + $xml .= "\t\t<it_works>".$row['hardware']['fingerprint_works']."</it_works>\n"; + } + + $devicesWithDriverEntry = array('printer','scanner','soundcard','webcam','bluetooth','wifi','videocard','acquisition-card','fingerprint-reader'); if (in_array($type,$devicesWithDriverEntry)) { $xml .= "\t\t<driver>".$row['hardware']['driver']."</driver>\n"; @@ -209,5 +219,14 @@ class DownloadController extends BaseController { $this->printXml($lang, array('type'=>'bluetooth','-deleted'=>'no')); } - + + public function acquisitioncards($lang = 'en') + { + $this->printXml($lang, array('type'=>'acquisition-card','-deleted'=>'no')); + } + + public function fingerprintreaders($lang = 'en') + { + $this->printXml($lang, array('type'=>'fingerprint-reader','-deleted'=>'no')); + } }
\ No newline at end of file diff --git a/h-source/Application/Controllers/WikiController.php b/h-source/Application/Controllers/WikiController.php index 8f389e5..0e05ffd 100644 --- a/h-source/Application/Controllers/WikiController.php +++ b/h-source/Application/Controllers/WikiController.php @@ -61,6 +61,7 @@ class WikiController extends BaseController if ($this->m['WikiModel']->queryResult) { header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean); + die(); } } @@ -120,6 +121,7 @@ class WikiController extends BaseController if ($this->m['WikiModel']->queryResult) { header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean); + die(); } } @@ -140,6 +142,7 @@ class WikiController extends BaseController else { header('Location: http://'.DOMAIN_NAME."/users/login/".$this->lang."?redirect=".$this->controller."/page/".$this->lang."/".titleForRedirect($title)); + die(); } } else @@ -200,6 +203,7 @@ class WikiController extends BaseController $newTitle = $this->m['WikiModel']->getTheModelName($clean['idWiki']); $n = titleForRedirect($newTitle); header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$n); + die(); } else { @@ -425,6 +429,7 @@ class WikiController extends BaseController if ($this->m['WikiModel']->queryResult) { header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean); + die(); } $data['notice'] = $this->m['WikiModel']->notice; @@ -476,7 +481,7 @@ class WikiController extends BaseController if ($this->m['WikitalkModel']->queryResult) { header('Refresh: 0;url=http://'.DOMAIN_NAME.$_SERVER['REQUEST_URI']); - exit; + die(); } } } diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index c55515c..17ea425 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -44,7 +44,7 @@ class Hardware 'webcam' => 'H2O/camera-web_22.png', 'bluetooth' => 'H2O/preferences-system-bluetooth-22.png', 'acquisition-card' => 'Crystal/cam_mount-22.png', - 'fingerprint-reader' => 'Crystal/cam_mount-22.png', + 'fingerprint-reader' => 'fingerprint_icon-22.png', ); public static $typeToController = array( diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 6f80831..db2d717 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -218,6 +218,8 @@ class Lang "License information" => "Informazioni sulla licenza", "No acquisition card found" => "Non è stata trovata alcuna scheda d'acquisizione", "No fingerprint readers found" => "Non è stato trovato alcun lettore di impronte digitali", + "Download the xml file of all the <b>acquisition cards</b> in the database" => "Scarica il file xml di tutte le <b>schede di acquisizione</b> presenti nel database", + "Download the xml file of all the <b>fingerprint readers</b> in the database" => "Scarica il file xml di tutti i <b>lettori di impronte digitali</b> presenti nel database", ), 'es' => array ( diff --git a/h-source/Application/Views/Download/index.php b/h-source/Application/Views/Download/index.php index 1eb2a63..5fbbef8 100644 --- a/h-source/Application/Views/Download/index.php +++ b/h-source/Application/Views/Download/index.php @@ -77,6 +77,14 @@ <td><?php echo gtext("Download the xml file of all the <b>bluetooth devices</b> in the database");?></td> <td><a href="<?php echo $this->baseUrl."/download/bluetooth/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> </tr> + <tr> + <td><?php echo gtext("Download the xml file of all the <b>acquisition cards</b> in the database");?></td> + <td><a href="<?php echo $this->baseUrl."/download/acquisitioncards/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td><?php echo gtext("Download the xml file of all the <b>fingerprint readers</b> in the database");?></td> + <td><a href="<?php echo $this->baseUrl."/download/fingerprintreaders/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> </table> </div> </div> diff --git a/h-source/Application/Views/Hardware/left.php b/h-source/Application/Views/Hardware/left.php index 4583a9c..101a6ce 100644 --- a/h-source/Application/Views/Hardware/left.php +++ b/h-source/Application/Views/Hardware/left.php @@ -67,7 +67,7 @@ </div> <div class="hardware_element"> - <img align="middle" class="hardware_element_image" src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/cam_mount.png"><a class="hardware_element_link" href="<?php echo $this->baseUrl?>/fingerprintreaders/catalogue/<?php echo $lang;?>">Fingerprint readers</a> + <img align="middle" class="hardware_element_image" src="<?php echo $this->baseUrl;?>/Public/Img/fingerprint_icon.png"><a class="hardware_element_link" href="<?php echo $this->baseUrl?>/fingerprintreaders/catalogue/<?php echo $lang;?>">Fingerprint readers</a> </div> </div>
\ No newline at end of file diff --git a/h-source/Config/Route.php b/h-source/Config/Route.php index e340a53..5ede113 100644 --- a/h-source/Config/Route.php +++ b/h-source/Config/Route.php @@ -101,6 +101,8 @@ class Route 'download,soundcards', 'download,webcams', 'download,bluetooth', + 'download,acquisitioncards', + 'download,fingerprintreaders', 'history,hide', 'history,show', 'history,block', diff --git a/h-source/Credits.txt b/h-source/Credits.txt index 0e2adb1..83407f6 100644 --- a/h-source/Credits.txt +++ b/h-source/Credits.txt @@ -32,3 +32,7 @@ license: GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Icons: The icons used inside h-node.com are taken from the ACUN Simgeleri 0.7 incon theme (http://kde-look.org/content/show.php/ACUN+Simgeleri?content=83018) and from the H2O Icon Theme 0.0.5 (http://kde-look.org/content/show.php/ACUN+Simgeleri?content=83018), both licensed under the GNU GPL license, from the Crystal Projects icons (http://www.everaldo.com/crystal/?action=downloads), licensed under the LGPL, from the glaze icons set (http://www.notmart.org/index.php/Graphics) (LGPL) and from the DarkGlass_Reworked icons theme (http://kde-look.org/content/show.php/Dark-Glass+reviewed?content=67902) (GPL). The flag icons are taken from the FAMFAMFAM (http://www.famfamfam.com/lab/icons/flags/) icons set (Public Domain) +Fingerprint icons: +The fingerprint icons (listed below) are a derived work from a wikipedia fingerprint icon (http://en.wikipedia.org/wiki/File:Fingerprint_picture.svg) licensed under Creative Commons Attribution-Share Alike 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/deed.en) +Public/Img/fingerprint_icon.png +Public/Img/fingerprint_icon-22.png
\ No newline at end of file diff --git a/h-source/Public/Img/fingerprint_icon-22.png b/h-source/Public/Img/fingerprint_icon-22.png Binary files differnew file mode 100644 index 0000000..5593419 --- /dev/null +++ b/h-source/Public/Img/fingerprint_icon-22.png diff --git a/h-source/Public/Img/fingerprint_icon.png b/h-source/Public/Img/fingerprint_icon.png Binary files differnew file mode 100644 index 0000000..989ba28 --- /dev/null +++ b/h-source/Public/Img/fingerprint_icon.png |