1
mauriciolima
Function redirect_header

Someone knows how to remove the redirection messages in XOOPS by changing the function "redirect_header" in the file /include/functions.php? That way you don't need to make hacks in every module to make it function...

2
sbkiller
Re: Function redirect_header
  • 2004/12/22 3:17

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Try this:

function redirect_header($url$time 3$message ''$addredirect true)


to:

function redirect_header($url$time 0$message ''$addredirect false)

3
mauriciolima
Re: Function redirect_header

I tried it already, but not functioned here. Someone know another way?

4
Dave_L
Re: Function redirect_header
  • 2004/12/22 5:55

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


There's a recent existing topic about this: https://xoops.org/modules/newbb/viewtopic.php?topic_id=28346

5
mauriciolima
Re: Function redirect_header

Hack this function, replace functions for this:

function redirect_header($url$time 3$message ''$addredirect true)
{
    global 
$xoopsConfig$xoopsRequestUri;
    if (!
defined('XOOPS_CPFUNC_LOADED')) {
        
header("Location: $url");
        exit();
    } else {
        
$url preg_replace("/&/i"'&'htmlspecialchars($urlENT_QUOTES));
        echo 
'
        
        
        '</span><span style="color: #007700">.</span><span style="color: #0000BB">$xoopsConfig</span><span style="color: #007700">[</span><span style="color: #DD0000">'sitename'</span><span style="color: #007700">].</span><span style="color: #DD0000">'
        
        .$time.'; url='.$url.'" />
        
                body {background-color : #fcfcfc; font-size: 12px; font-family: Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; margin: 0px;}
                .redirect {width: 70%; margin: 110px; text-align: center; padding: 15px; border: #e0e0e0 1px solid; color: #666666; background-color: #f6f6f6;}
                .redirect a:link {color: #666666; text-decoration: none; font-weight: bold;}
                .redirect a:visited {color: #666666; text-decoration: none; font-weight: bold;}
                .redirect a:hover {color: #999999; text-decoration: underline; font-weight: bold;}
        
        
        
        
        
          '
.$message.'
          
          

'.sprintf(_IFNOTRELOAD$url).'


        

        

        
        ';
    }
    exit();
}

Login

Who's Online

183 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 183


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits