Hi Muthu,

Am Montag, den 27.09.2010, 05:13 +0530 schrieb Ap.Muthu:
> Checking SVN 6667 - the state before I made my first commit at SVN 6668:-

[...]

> Safe change by Robert: 6704 to 6706 changed the use of the original ADOdb 
> variable $PHP_SELF with $_SERVER['SCRIPT_NAME'])

[...]

I will take care. the issue here is not the refactoring of $PHP_SELF
with $_SERVER['SCRIPT_NAME'], the real issue here is the wrong use of
stristr. The previous use of $PHP_SELF was much more confusing and
mostly not working.

Issue here is the wrong use of haystack and needle:

syntax: 
 string stristr ( string $haystack , mixed $needle [, bool
$before_needle = false ] )

used here, e.g. in inc_front_chain_lang.php:

------
if (stristr('inc_front_chain_lang.php',$_SERVER['SCRIPT_NAME'])) 
        die('<meta http-equiv="refresh" content="0; url=../">');
------

Should be:

------
if (stristr($_SERVER['SCRIPT_NAME'],'inc_front_chain_lang.php')) 
die('<meta http-equiv="refresh" content="0; url=../">');
------

I do not see any other alternative as to go script by script and correct
it manually. 

Will do that - with some other things I found in background as well. 

Robert


-- 
--
--------------------------------------------
CARE2X - free Integ Hospital Info System
https://sourceforge.net/projects/care2002/
http://www.care2x.org


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Care2002-developers mailing list
Care2002-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/care2002-developers

Reply via email to