[pmwiki-users] Help this urgent
Mark Trumpold
mark at ruthtrumpold.id.au
Mon May 19 03:56:19 CDT 2008
Hi all
I cant believe I did this and my kids need the wiki to study.
I was making changes mentioned below and now when you try to access
http://www.ruthtrumpold.id.au/itgswiki/pmwiki.php
I get this
403 Permission Denied
You do not have permission for this request /itgswiki/pmwiki.php
What do i do my kids have exams today and tomorrow
Mark
On 12/05/2008, at 10:22 AM, Peter K.H. Gragert wrote:
Trying to find a solution for the guestbook you use
I changed it with a captcha usage it looks now as follows:
Picture of test:
<image001.jpg>
End of picture
First you have to fill in the captcha digits to see the Guestbook
input fields. Then you may ad a message. (only clicking OK of the
guestbookform)
If the message contains http:// (any case) nothing is added!!!
Otherwise it is immediately added after “Start of Guestbook”.
The changes in guestbook.php are as follows:
------in guestbook.php-------
$msg = StripCSlashes($_GET['message']);
if(ereg("http://",$msg)){
$rcpage = ReadPage($pagename,"");
} else {
$default = "----";
$rcpage = ReadPage($pagename,"");
$pos=strpos($rcpage['text'],"Start of Guestbook");
$len=strlen("Start of Guestbook");
$before=substr($rcpage['text'],0,$pos+$len);
$after=substr($rcpage['text'],$pos+$len);
$rcpage['text'] = $before.
/* "\n$$$$\$default". pog? */
"\n\n%green%Posted on ''".strftime($TimeFmt,$Now).
" by ''".StripCSlashes($_GET["name"])."%%[[<<]]".
(($_GET["homepage"])?StripCSlashes($_GET
["homepage"]):"")."\n\n". $msg .
"\n\n----".$homepage. "". $HTTP_GET_VARS["homepage"].
$after;
}
WritePage($pagename,$rcpage);
Redirect($pagename);
--------end part of guestbook.php
The Guestbook PmWiki source
==================start page======================
!!To go against evil bots
Fill in the captcha, to send a message!\\
(:input form action={*$PageUrl} method=post:)
Enter value: {$Captcha} (:input captcha:)
(:input submit:)
(:input end:)
----
(:if captcha:)
%green%You may enter a message%%
(:$Guestbook:)
(:else:)
%red%Not allowed%%
(:ifend:)
!!Start of Guestbook
%green%Posted on ''12 mei 2008 om 09:09 by ''PKHG%%[[<<]]pepe.cwsurf.de
Second try without a www adres
----
%green%Posted on ''12 mei 2008 om 09:06 by ''Wo kommt dies an?%%[[<<]]
Peter war hier!
===========end page=================
-----Oorspronkelijk bericht-----
Van: pmwiki-users-bounces at pmichaud.com [mailto:pmwiki-users-
bounces at pmichaud.com] Namens Mark Trumpold
Verzonden: zondag 11 mei 2008 20:26
Aan: PmWiki Users
Onderwerp: [pmwiki-users] Captcha
Hi All
Cam i place a captcha just on one page, eg the guestbook? If so how?
The rest of the wiki has an edit password so I dont really need
elsewhere?
Best
M
_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
<image001.jpg>
_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080519/e671982e/attachment.html
More information about the pmwiki-users
mailing list