Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-07-20 21:17:23

swf
Plugin Author
From: Saskatoon, Saskatchewan Canada
Registered: 2004-06-21
Posts: 109
Website

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

#2 2004-07-20 22:21:28

swf
Plugin Author
From: Saskatoon, Saskatchewan Canada
Registered: 2004-06-21
Posts: 109
Website

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

#3 2005-10-11 00:32:54

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

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

Board footer

Powered by FluxBB