website diff cn/search.php @ rev 1354

News clean up
author Christophe Lincoln <pankso@slitaz.org>
date Wed Sep 21 12:27:46 2022 +0200 (2022-09-21)
parents 0dedd51426ac
children
line diff
     1.1 --- a/cn/search.php	Wed Mar 30 01:56:21 2016 +0300
     1.2 +++ b/cn/search.php	Wed Sep 21 12:27:46 2022 +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