cvs: php4 /ext/mnogosearch index.php

From: Date: Sat, 29 Sep 2001 14:09:40 +0000
Subject: cvs: php4 /ext/mnogosearch index.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7614@lists.php.net to get a copy of this message
gluke Sat Sep 29 10:09:40 2001 EDT Modified files: /php4/ext/mnogosearch index.php Log: Search frontend example has been updated. Index: php4/ext/mnogosearch/index.php diff -u php4/ext/mnogosearch/index.php:1.2 php4/ext/mnogosearch/index.php:1.3 --- php4/ext/mnogosearch/index.php:1.2 Sat Sep 29 05:25:21 2001 +++ php4/ext/mnogosearch/index.php Sat Sep 29 10:09:40 2001 @@ -1,6 +1,6 @@ <!-- $Source: /usr/repository/php4/ext/mnogosearch/index.php,v $ - $Id: index.php,v 1.2 2001/09/29 09:25:21 gluke Exp $ + $Id: index.php,v 1.3 2001/09/29 14:09:40 gluke Exp $ --> <? @@ -543,6 +543,17 @@ if ($localcharset != '') { Udm_Set_Agent_Param($udm_agent,UDM_PARAM_CHARSET,$localcharset); + } + + 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"); ?> + } else { + Udm_Set_Agent_Param($udm_agent,UDM_PARAM_BROWSER_CHARSET,'utf-8'); + Header ("Content-Type: text/html; charset=utf-8"); ?> + } } for ($i=0; $i < count($stopwordtable_arr); $i++) {

« previous php.cvs (#7614) next »