Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
Syndication of private WIKI when ACL are in use
jm_zz #1
Member since Aug 2007 · 301 posts · Location: labaquere momas france
Group memberships: Members
Show profile · Link to this post
Subject: Syndication of private WIKI when ACL are in use
As everybody knows syndication in private Wiki need two more arguments to the classic url for syndication.
This arguments are about the identification of the user :

my noobs user can not catch it :!
So i decide to make a link with the users information inside my template for syndication.

I use for it cookies functions of DokuWiki :

1/ don't forget to put ~~NOCACHE~~
in the front of your page if you use it inside one of your wiki page...

 $cookie = base64_decode($_COOKIE[DOKU_COOKIE]);
 list($user,$sticky,$pass) = split('\|',$cookie,3);
 // get session info
$pass   = PMA_blowfish_decrypt($pass,auth_cookiesalt());
echo '<center><b><a href=\''.$user.'&p='.$pass.'\'>Syndication Link</a></b></center>';

What are you thinking of this hack ?

I think it reveal too the danger of  php code inside page.....
For testing don't put ~~NOCACHE~~
if the page have been cached it reveals yours last user and pass....
T'as avì dit, que n'i a pas nada estela. I a pas sonque lo movement deus astres e totas la causas. Lo mon còr ? Non. Son tremolar. Benard Manciet
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-23, 15:35:13 (UTC +02:00)