A simple way to solve this problew is it that follow.
in
/incl/template.php, change:
case 'diff':
html_diff();
break;
with:
case 'diff':
if ($_SERVER['REMOTE_USER'])
{
$first = is_numeric($_REQUEST['first']) ? intval($_REQUEST['first']) : 0;
html_diff($first);
}
else
html_login();
break;
in this way, if you are a logged-in user, you can display the DIFFERENCE section, with code confront.
if you are not logged, it displays a form for login.
:D
thanks to
redgoblin: read his solution at:
http://forum.dokuwiki.org/thread/2664