I'm using session variables for authorization of my pages. A login page exists which sets the userid and password to a custom named PHP session. Now I want to include the PHPWiki into it. With PHPWiki 1.2 I could easily change it to display the userid instead of the IP.
With PHPWiki 1.3.7 I can't get it to work. The login mechanism seems complicated. Doesnt there exist a line in code where I could easily override the userid? Authorization is not really needed, no password checking etc. I would just need to get my session variable and overide the userid. I would then take out the normal PHPWiki login dialog.
I can't use version 1.2 because I need full history saving of the pages. Would it be easier to make PHPWiki 1.2 save the complete history?
Regards, Steffen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
haven't checked that, but for a valid user you just have to create a new WikiUser (or _WikiUser in the 1.3.8 release), and set the userid and level object parameters. in main.php
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I'm using session variables for authorization of my pages. A login page exists which sets the userid and password to a custom named PHP session. Now I want to include the PHPWiki into it. With PHPWiki 1.2 I could easily change it to display the userid instead of the IP.
With PHPWiki 1.3.7 I can't get it to work. The login mechanism seems complicated. Doesnt there exist a line in code where I could easily override the userid? Authorization is not really needed, no password checking etc. I would just need to get my session variable and overide the userid. I would then take out the normal PHPWiki login dialog.
I can't use version 1.2 because I need full history saving of the pages. Would it be easier to make PHPWiki 1.2 save the complete history?
Regards, Steffen
haven't checked that, but for a valid user you just have to create a new WikiUser (or _WikiUser in the 1.3.8 release), and set the userid and level object parameters. in main.php
see the current CVS code.
the _SessionPassUser object.
I'm trying to integrate something similar... an existing login system to phpWiki.
could you be more specific?
I create a new _WikiUser ( using 1.3.9 code ), and:
1) what name should this object have?
2) where in main.php?
Thx a lot
BR