Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How do i use the login cookie on other pages?
I made the pages to import and export templates/forms/css and i would like to ensure that only someone logged into txp can run these scripts. I could hack the pages into the index.php?event= but don’t want to change everything once 1.20 (etc) comes out. i know the old old version of txp (last summer before it was redesigned was easy to tie the authentication in other pages but i don’t see it in 1.19 anyone want to point me in the right direction?
Offline
Re: How do i use the login cookie on other pages?
I looked around again and thought you could just insert
include $txpath.’/include/txp_auth.php’;
but that just threw up some errors
Warning: main(): open_basedir restriction in effect. File(/include/txp_auth.php) is not within the allowed path(s): (/home/woods/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/woods/public_html/pastpending/textpattern/template-import.php on line 12
Warning: main(/include/txp_auth.php): failed to open stream: Operation not permitted in /home/woods/public_html/pastpending/textpattern/template-import.php on line 12
Warning: main(): Failed opening ‘/include/txp_auth.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/woods/public_html/pastpending/textpattern/template-import.php on line 12
Offline
Re: How do i use the login cookie on other pages?
Is there an easy way to do this? (use the TXP login cookie on “external” scripts?)
Thanks
bludrop studios .::. Creative Expression
Offline