3
Hi
In your XOOPS dir find the "language/include/functions.php " file on the language folder and find the function redirect_header. Paste the code below over the "old one".
Warning: on doing that you?ll remove all redirect functions in your XOOPS site, not only the thank you for logging..........
/*
* Function to redirect a user to certain pages
*/
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($url, ENT_QUOTES));
echo '
<html>
<head>
<title>'.$xoopsConfig['sitename'].'</title>
<meta http-equiv="Content-Type" content="text/html; charset='._CHARSET.'" />
<meta http-equiv="Refresh" content="'.$time.'; url='.$url.'" />
<style type="text/css">
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;}
</style>
</head>
<body>
<div align="center">
<div class="redirect">
<span style="font-size: 16px; font-weight: bold;">'.$message.'</span>
<hr style="height: 3px; border: 3px #E18A00 solid; width: 95%;" />
<p>'.sprintf(_IFNOTRELOAD, $url).'</p>
</div>
</div>
</body>
</html>';
}
exit();
}
Function hacked by
topet05In addition:
find your language xoops? folder,"user.php":
Around line 9, you?ll find:
define("_US_LOGGEDOUT",.........
Log out message
======================================
Around line 12:
define("_US_LOGGINGU",..........
Login message
=======================================
At the same dir:
file global.php
around line 90:
define("_NOPERM",......
You don?t have permission ....bla bla message
I hope this helps a bit.
Regards