Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#106 Hack ? Using redirection on TurneOff mode

Patches
closed
Skalpa Keo
5
2012-09-25
2005-05-21
No

Hi,

I'm a poor french guy, but with new philosophy in Xoops
2.1 (roadmap and hack integration) I propose some perso
hack... It's the right forum ? Tk

For redirection user in TurneOff mode after
authentification...

1 - In folder "include/" edit file "common.php" :

Line 248 :
$xoopsTpl->assign(array('sitename' =>
$xoopsConfig['sitename'], 'xoops_themecss' =>
xoops_getcss(), 'xoops_imageurl' =>
XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/',
'lang_login' => _LOGIN, 'lang_username' => _USERNAME,
'lang_password' => _PASSWORD, 'lang_siteclosemsg' =>
$xoopsConfig['closesite_text']));

change with :
$xoopsTpl->assign(array('sitename' =>
$xoopsConfig['sitename'], 'xoops_themecss' =>
xoops_getcss(), 'xoops_imageurl' =>
XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/',
'lang_login' => _LOGIN, 'lang_username' => _USERNAME,
'lang_password' => _PASSWORD, 'lang_siteclosemsg' =>
$xoopsConfig['closesite_text'],'xoops_requesturi' =>
$_SERVER['REQUEST_URI']));

2 - change $xoopsTpl->xoops_setCaching(1); par
$xoopsTpl->xoops_setCaching(0);

3 - edit
"modules/system/templates/system_siteclosed.html" file :

change by :

<{$xoops_requesturi}>">

4 - Update your system module..

Thank you !!

Discussion

  • Skalpa Keo
    Skalpa Keo
    2006-05-13

    Logged In: YES
    user_id=882380

    Fixed on branch #126903, to be released with 2.0.14 / 2.2.5