The Wakaba and Kareha support thread (1000)

331 Name: Anonymous : 2006-09-17 19:28 ID:xHL6uL6t [Del]

How would I go about making a custom ban page, where it would show your ip and what you were banned for?

This is what i've done so far.

futaba_style.pl

use constant BAN_PAGE => q{

<p>Ban ;_; (insert more text later)</p><br />
The IP you were posting with was: <var $ip><br />
<if $comment>Reason for your ban: <var $comment></if><br />
<if !$comment>Reason for your ban: None</if>

};

wakaba.pl (under sub ban_check($$$$)

make_http_header();
print encode_string(BAN_PAGE);

} else {

make_error(S_BADHOST);

}

Should this work? Is there something I need to change?

This thread has been closed. You cannot post in this thread any longer.