PEAK XOOPS - Re: Speed up your XOOPS site:-) updated in englishin japanese

Re: Speed up your XOOPS site:-) updated

Target News
Subject Speed up your XOOPS site:-) updated
Summary redirect_header() makes your site slow.You can make your site fast only by hack just 2 or 3 point.This site demonstrates it to you.The message is displayed as a left block in the redirected page.The inserting point for hacked codes is different each ot...

List posts in the topic

normal Re: Speed up your XOOPS site:-) updated

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2006/3/25 19:38 | Last modified
JimKarvo  Private 1st Class   Posts: 19
Hello!

Congratulations for your useful tips and hack!


Quote:
----
2005/8/15 fixed

from:
- header( "Location: $url" ) ;
to:
- header( "Location: ".preg_replace("/& amp;/i",'&',$url) ) ;


----
2005/11/14 modified (for the security reason)

from:
- header( "Location: ".preg_replace("/& amp;/i",'&',$url) ) ;
to:
- header( "Location: ".strtr(preg_replace("/& amp;/i",'&',$url),"\r\n\0"," ") ) ;

----
2005/11/17 modified (it is not necessary to convert & ) and added 2.2.3final

from:
- header( "Location: ".strtr(preg_replace("/& amp;/i",'&',$url),"\r\n\0"," ") ) ;
to:
- header( "Location: ".strtr($url,array("\r"=>'',"\n"=>'') ) ) ;

You Hva allready change main code with that chenges?
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!