[mlimg]
[xlang:en]

   == AUTO-LOGIN V4 (REMEMBER ME) hacked files for XOOPS 2.2 ==

[b]This package is only for 2.2 released from www.xoops.org. Don't apply it to 2.0.10JP or higher[/b]

Since this hack is fully scratched, you should know this is a beta version.

------------------------------------------------------------------

A new type of auto-login (remember me) hack.

You need not over-write any core files.
All you have to do is:

- copy autologin.php and autologin_main.php into include/ .
- modify mainfile.php manually like this:
[code]
	if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
		require XOOPS_ROOT_PATH."/include/common.php";
		[color=ff0000]include XOOPS_ROOT_PATH."/include/autologin.php" ;[/color]
	}
[/code]
- modify the template system_block_login.html like this:
[code]
    <input type="password" name="pass" size="12" maxlength="32" /><br />
    [color=ff0000]<input type="checkbox" name="rememberme" value="On" class
="formButton" />remember me<br />[/color]
    <input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
[/code]

And if you can, change the value into your "secret key" in this line of include/autologin.php
[code]
// you'd better change the value
define( 'XOOPS_AUTOLOGIN_SECRETKEY' , '[color=ff0000]change-it[/color]' ) ;
[/code]


[/xlang:en]
[xlang:ja]

XOOPS 2.2ѤΥȥϥå (V4)

[b]ܲѤǤ2.2ѤǤϤʤΤǡդƤ[/b]

ȥεǽΤ򡢴˺ľΤǤ뤿ᡢФ餯ϥ١ǰȤޤλ

--------------------------------------------------

פΥȥHackǤ

ΥפǤϡιե򲿰ľ񤭤ޤ
mainfile.php ˣ­ơƥץ졼Ȥ򤤤Ǥ

ʲ񤭤ޤ

- ޤ autologin.php  autologin_main.php  include/ ˥ԡޤ
- ʤ mainfile.php 򳫤ơʲΤ褦ˣɲäƤ
[code]
	if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
		require XOOPS_ROOT_PATH."/include/common.php";
		[color=ff0000]include XOOPS_ROOT_PATH."/include/autologin.php" ;[/color]
	}
[/code]
- ƥץ졼 system_block_login.html ʲΤ褦ԽƤ
[code]
    <input type="password" name="pass" size="12" maxlength="32" /><br />
    [color=ff0000]<input type="checkbox" name="rememberme" value="On" class ="formButton" />IDȥѥɤ򵭲<br />[/color]
    <input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
[/code]

Сinclude/autologin.php ˤ롢ιԤԽơ餫̩ʸꤷƤ
[code]
// you'd better change the value
define( 'XOOPS_AUTOLOGIN_SECRETKEY' , '[color=ff0000]change-it[/color]' ) ;
[/code]


ʾǤ

[/xlang:ja]
