website rev 1331
Use DuckDuckGo custom search instead of Google
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 14 13:14:01 2019 +0200 (2019-08-14) |
parents | 2322a799c58e |
children | 509f4340ce25 |
files | cn/search.php da/search.php de/search.php en/search.php es/search.php fr/search.php ja/search.php pt/search.php ru/search.php |
line diff
1.1 --- a/cn/search.php Tue Feb 26 12:26:04 2019 +0100 1.2 +++ b/cn/search.php Wed Aug 14 13:14:01 2019 +0200 1.3 @@ -11,6 +11,7 @@ 1.4 <body> 1.5 1.6 <?php include("../lib/html/header.html"); ?> 1.7 +<?php $engine="DuckDuckGo"; ?> 1.8 1.9 <!-- Block --> 1.10 <div id="block"> 1.11 @@ -20,7 +21,7 @@ 1.12 <h4>搜索</h4> 1.13 <p> 1.14 这个网页可以搜索SliTaz网站、邮件列表、论坛中的内容。 1.15 - 这个网页由Google自定义搜索为SliTaz创建。 1.16 + 这个网页由<?php echo $engine; ?>自定义搜索为SliTaz创建。 1.17 </p> 1.18 </div> 1.19 </div> 1.20 @@ -30,6 +31,7 @@ 1.21 <!-- Content --> 1.22 <div id="content"> 1.23 1.24 +<?php if ($engine == "Google") { ?> 1.25 <div class="searchbox"> 1.26 <div id="cse-search-form" style="width: 100%;"><img 1.27 src="/images/loader.gif" alt="*" /> Loading</div> 1.28 @@ -45,6 +47,13 @@ 1.29 }, true); 1.30 </script> 1.31 </div> 1.32 +<?php } if ($engine == "DuckDuckGo") { ?> 1.33 +<div class="searchbox"> 1.34 + <iframe src="https://duckduckgo.com/search.html?&kl=cn-zh&t=slitaz&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Search DuckDuckGo" 1.35 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 1.36 + </iframe> 1.37 +</div> 1.38 +<?php } ?> 1.39 1.40 <div id="cse" style="width:100%;"></div> 1.41
2.1 --- a/da/search.php Tue Feb 26 12:26:04 2019 +0100 2.2 +++ b/da/search.php Wed Aug 14 13:14:01 2019 +0200 2.3 @@ -22,12 +22,14 @@ 2.4 <div id="block_info"> 2.5 <h4>Søgning</h4> 2.6 <p> 2.7 - Denne side tillader dig at gennemsøge hele SliTa GNU/Linux hjemmesiden, 2.8 + Denne side tillader dig at gennemsøge hele SliTaz GNU/Linux hjemmesiden, 2.9 <a href="http://doc.slitaz.org/">vejledningswikien</a>, i 2.10 <a href="mailing-list.php">postlistens arkiver</a> 2.11 og i <a href="http://forum.slitaz.org/">forumet</a>. 2.12 +<?php if (false) { ?> 2.13 Denne søgemaskine er lavet for SliTaz af Google Co-op custom 2.14 søgemaskinen. 2.15 +<?php } ?> 2.16 </p> 2.17 </div> 2.18 </div> 2.19 @@ -38,6 +40,7 @@ 2.20 <div id="content"> 2.21 2.22 <div class="searchbox"> 2.23 +<?php if (false) { ?> 2.24 <div id="cse-search-form" style="width: 100%;"><img 2.25 src="/images/loader.gif" alt="*" /> Loading</div> 2.26 <script src="http://www.google.com/jsapi" type="text/javascript"></script> 2.27 @@ -51,6 +54,11 @@ 2.28 customSearchControl.draw('cse', options); 2.29 }, true); 2.30 </script> 2.31 +<?php } if (true) { ?> 2.32 + <iframe src="https://duckduckgo.com/search.html?t=slitaz&kl=dk-da&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Tilpasset søgning" 2.33 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 2.34 + </iframe> 2.35 +<?php } ?> 2.36 </div> 2.37 2.38 <div id="cse"></div>
3.1 --- a/de/search.php Tue Feb 26 12:26:04 2019 +0100 3.2 +++ b/de/search.php Wed Aug 14 13:14:01 2019 +0200 3.3 @@ -22,6 +22,7 @@ 3.4 3.5 <h2>Suche</h2> 3.6 3.7 +<?php if (false) { ?> 3.8 <p> 3.9 Auf dieser Seite können Sie die gesamte Projektseite von 3.10 SliTaz GNU/Linux, die Archive der 3.11 @@ -46,6 +47,21 @@ 3.12 }, true); 3.13 </script> 3.14 </div> 3.15 +<?php } if (true) { ?> 3.16 +<p> 3.17 + Auf dieser Seite können Sie die gesamte Projektseite von 3.18 + SliTaz GNU/Linux, die Archive der 3.19 + <a href="mailing-list.php">Mailing Listen</a> und das 3.20 + <a href="http://forum.slitaz.org/">Forum</a> nach Begriffen 3.21 + durchsuchen. 3.22 +</p> 3.23 + 3.24 +<div class="searchbox"> 3.25 + <iframe src="https://duckduckgo.com/search.html?t=slitaz&kl=de-de&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Benutzerdefinierte Suche" 3.26 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 3.27 + </iframe> 3.28 +</div> 3.29 +<?php } ?> 3.30 3.31 <div id="cse"></div> 3.32
4.1 --- a/en/search.php Tue Feb 26 12:26:04 2019 +0100 4.2 +++ b/en/search.php Wed Aug 14 13:14:01 2019 +0200 4.3 @@ -67,6 +67,7 @@ 4.4 </form> 4.5 </div> 4.6 4.7 +<?php if (false) { ?> 4.8 <h2>Google Search</h2> 4.9 4.10 <p> 4.11 @@ -93,6 +94,22 @@ 4.12 }, true); 4.13 </script> 4.14 </div> 4.15 +<?php } if (true) { ?> 4.16 +<h2>Recherche DuckDuckGo</h2> 4.17 + 4.18 +<p> 4.19 + This page lets you also search the entire website SliTaz GNU/Linux, 4.20 + the <a href="http://doc.slitaz.org/">documentation</a> wiki and in 4.21 + the archives of the <a href="mailing-list.php">Mailing List</a> 4.22 + and also in the <a href="http://forum.slitaz.org/">Forum</a>. 4.23 +</p> 4.24 + 4.25 +<div class="searchbox"> 4.26 + <iframe src="https://duckduckgo.com/search.html?t=slitaz&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Search DuckDuckGo" 4.27 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 4.28 + </iframe> 4.29 +</div> 4.30 +<?php } ?> 4.31 4.32 <div id="cse"></div> 4.33
5.1 --- a/es/search.php Tue Feb 26 12:26:04 2019 +0100 5.2 +++ b/es/search.php Wed Aug 14 13:14:01 2019 +0200 5.3 @@ -32,6 +32,7 @@ 5.4 <div id="content"> 5.5 5.6 <div class="searchbox"> 5.7 +<?php if (false) { ?> 5.8 <div id="cse-search-form" style="width: 100%;"><img 5.9 src="/images/loader.gif" alt="*" /> Loading</div> 5.10 <script src="http://www.google.com/jsapi" type="text/javascript"></script> 5.11 @@ -45,6 +46,11 @@ 5.12 customSearchControl.draw('cse', options); 5.13 }, true); 5.14 </script> 5.15 +<?php } if (true) { ?> 5.16 + <iframe src="https://duckduckgo.com/search.html?t=slitaz&kl=es-es&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Búsqueda personalizada de DuckDuckGo" 5.17 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 5.18 + </iframe> 5.19 +<?php } ?> 5.20 </div> 5.21 5.22 <div id="cse"></div>
6.1 --- a/fr/search.php Tue Feb 26 12:26:04 2019 +0100 6.2 +++ b/fr/search.php Wed Aug 14 13:14:01 2019 +0200 6.3 @@ -12,7 +12,8 @@ 6.4 6.5 <?php 6.6 include("../lib/html/header.html"); 6.7 -include("../lib/html/nav-ng.fr.html"); 6.8 +include("../lib/html/nav.fr.html"); 6.9 +// include("../lib/html/nav-ng.fr.html"); 6.10 include("../lib/lang.php"); 6.11 ?> 6.12 6.13 @@ -68,6 +69,7 @@ 6.14 </form> 6.15 </div> 6.16 6.17 +<?php if (false) { ?> 6.18 <h2>Recherche Google</h2> 6.19 6.20 <p> 6.21 @@ -96,6 +98,23 @@ 6.22 }, true); 6.23 </script> 6.24 </div> 6.25 +<?php } if (true) { ?> 6.26 +<h2>Recherche DuckDuckGo</h2> 6.27 + 6.28 +<p> 6.29 + Cette page vous permet de lancer une recherche, sur 6.30 + l'ensemble du site web de SliTaz GNU/Linux, le wiki de 6.31 + <a href="http://doc.slitaz.org/">documentation</a>, dans 6.32 + l'archive de <a href="mailing-list.php">la liste de discussion</a> 6.33 + et dans <a href="http://forum.slitaz.org/">le forum</a>. 6.34 +</p> 6.35 + 6.36 +<div class="searchbox"> 6.37 + <iframe src="https://duckduckgo.com/search.html?t=slitaz&kl=fr-fr&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Recherche personnalisée" 6.38 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 6.39 + </iframe> 6.40 +</div> 6.41 +<?php } ?> 6.42 6.43 <div id="cse"></div> 6.44
7.1 --- a/ja/search.php Tue Feb 26 12:26:04 2019 +0100 7.2 +++ b/ja/search.php Wed Aug 14 13:14:01 2019 +0200 7.3 @@ -67,6 +67,7 @@ 7.4 </form> 7.5 </div> 7.6 7.7 +<?php if (false) { ?> 7.8 <h2>Google 検索</h2> 7.9 7.10 <p> 7.11 @@ -89,6 +90,20 @@ 7.12 }, true); 7.13 </script> 7.14 </div> 7.15 +<?php } if (true) { ?> 7.16 +<h2>DuckDuckGo 検索</h2> 7.17 + 7.18 +<p> 7.19 + DuckDuckGo 検索では、ウェブサイトSliTaz GNU/Linux 全体、<a href="http://doc.slitaz.org/">ドキュメント</a> Wiki、<a href="mailing-list.php">メーリングリスト</a> のアーカイブ、<a href="http://forum.slitaz.org/">フォーラム</a> も検索することができます。 7.20 + この検索エンジンは、DuckDuckGo Co-op カスタム検索エンジンによって SliTaz 用に作成されました。 7.21 +</p> 7.22 + 7.23 +<div class="searchbox"> 7.24 + <iframe src="https://duckduckgo.com/search.html?t=slitaz&kl=jp-jp&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Search DuckDuckGo" 7.25 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 7.26 + </iframe> 7.27 +</div> 7.28 +<?php } ?> 7.29 7.30 <div id="cse"></div> 7.31
8.1 --- a/pt/search.php Tue Feb 26 12:26:04 2019 +0100 8.2 +++ b/pt/search.php Wed Aug 14 13:14:01 2019 +0200 8.3 @@ -68,6 +68,7 @@ 8.4 </form> 8.5 </div> 8.6 8.7 +<?php if (false) { ?> 8.8 <h2>Busca do Google</h2> 8.9 8.10 <p> 8.11 @@ -93,6 +94,22 @@ 8.12 }, true); 8.13 </script> 8.14 </div> 8.15 +<?php } if (true) { ?> 8.16 +<h2>Busca do DuckDuckGo</h2> 8.17 + 8.18 +<p> 8.19 + Esta página também permite buscar termos no website do projeto, na 8.20 + <a href="http://doc.slitaz.org/">documentação</a>, nos arquivos da 8.21 + <a href="mailing-list.php">lista de discussão</a> e também no 8.22 + <a href="http://forum.slitaz.org/">Fórum</a>. 8.23 +</p> 8.24 + 8.25 +<div class="searchbox"> 8.26 + <iframe src="https://duckduckgo.com/search.html?t=slitaz&kl=pt-pt&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Pesquisa personalizada" 8.27 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 8.28 + </iframe> 8.29 +</div> 8.30 +<?php } ?> 8.31 8.32 <div id="cse"></div> 8.33
9.1 --- a/ru/search.php Tue Feb 26 12:26:04 2019 +0100 9.2 +++ b/ru/search.php Wed Aug 14 13:14:01 2019 +0200 9.3 @@ -66,6 +66,7 @@ 9.4 </div> 9.5 9.6 9.7 +<?php if (false) { ?> 9.8 <h2>Поиск Google</h2> 9.9 9.10 <p> 9.11 @@ -88,6 +89,20 @@ 9.12 }, true); 9.13 </script> 9.14 </div> 9.15 +<?php } if (true) { ?> 9.16 +<h2>Поиск DuckDuckGo</h2> 9.17 + 9.18 +<p> 9.19 +Эта страница позволяет выполнить поиск по всему сайту SliTaz GNU/Linux, в <a href="http://doc.slitaz.org/">документации</a> вики, в архиве <a href="mailing-list.php">рассылки</a>, а также на <a href="http://forum.slitaz.org/">форуме</a>. 9.20 +Эта поисковая система была создана специально для SliTaz на основе пользовательского поиска DuckDuckGoTM. 9.21 +</p> 9.22 + 9.23 +<div class="searchbox"> 9.24 + <iframe src="https://duckduckgo.com/search.html?t=slitaz&kl=ru-ru&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Пользовательский поиск" 9.25 + style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0"> 9.26 + </iframe> 9.27 +</div> 9.28 +<?php } ?> 9.29 9.30 <div id="cse"></div> 9.31