cvs: php4 /ext/mnogosearch index.php
| From: | Sergey Kartashoff | Date: | Sat, 03 Nov 2001 22:37:49 +0000 |
| Subject: | cvs: php4 /ext/mnogosearch index.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8069@lists.php.net to get a copy of this message | ||
gluke Sat Nov 3 17:37:49 2001 EDT
Modified files:
/php4/ext/mnogosearch index.php
Log:
@- mnoGoSearch module example updates for 3.2.x compatibility
- mnoGoSearch module example updates for 3.2.x compatibility
Index: php4/ext/mnogosearch/index.php
diff -u php4/ext/mnogosearch/index.php:1.3 php4/ext/mnogosearch/index.php:1.4
--- php4/ext/mnogosearch/index.php:1.3 Sat Sep 29 10:09:40 2001
+++ php4/ext/mnogosearch/index.php Sat Nov 3 17:37:49 2001
@@ -1,11 +1,11 @@
<!--
$Source: /usr/repository/php4/ext/mnogosearch/index.php,v $
- $Id: index.php,v 1.3 2001/09/29 14:09:40 gluke Exp $
+ $Id: index.php,v 1.4 2001/11/03 22:37:49 gluke Exp $
-->
<?
-/* mnoGoSearch-php-lite v.1.0
+/* mnoGoSearch-php-lite v.1.1
* for mnoGoSearch ( formely known as UdmSearch ) free web search engine
* (C) 2001 by Sergey Kartashoff <gluke@mail.ru>,
* mnoGoSearch Developers Team <devel@mnogosearch.org>
@@ -32,6 +32,7 @@
$dbmode='single';
$localcharset='koi8-r';
+$browsercharset='utf-8';
$phrase=$cache=$crosswords='no';
$ispelluseprefixes=$trackquery='no';
$spell_host=$vardir=$datadir='';
@@ -545,16 +546,27 @@
Udm_Set_Agent_Param($udm_agent,UDM_PARAM_CHARSET,$localcharset);
}
- if (Udm_Api_Version() >= 30200) {
+ if (Udm_Api_Version() >= 30200) {
if ($localcharset == '')
Udm_Set_Agent_Param($udm_agent,UDM_PARAM_CHARSET,'utf-8');
if ($browsercharset != '') {
Udm_Set_Agent_Param($udm_agent,UDM_PARAM_BROWSER_CHARSET,$browsercharset);
- Header ("Content-Type: text/html; charset=$browsercharset"); ?>
+ Header ("Content-Type: text/html; charset=$browsercharset");
} else {
Udm_Set_Agent_Param($udm_agent,UDM_PARAM_BROWSER_CHARSET,'utf-8');
- Header ("Content-Type: text/html; charset=utf-8"); ?>
+ Header ("Content-Type: text/html; charset=utf-8");
}
+ if ($hlbeg != '') {
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_HLBEG,$hlbeg);
+ } else {
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_HLBEG,'<font
color="000088"><b>');
+ }
+ if ($hlend != '') {
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_HLEND,$hlend);
+ } else {
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_HLEND,'</b></font>');
+ }
}
+
for ($i=0; $i < count($stopwordtable_arr); $i++) {
if ($stopwordtable_arr[$i] != '') {