Mike's Pub -> Discussion Corner -> Questions on Web Programming (Perl/PHP)

 Blank.php [ Reply ] [ Back to Index ] Top Bottom

Author : Steve Jackson
Date: 2003/01/08 14:40

Firstly thanks for blank.php for postnuke! Someone needed to do that!

Does blank.php maintain state? so permissions will stay the same if I build CRM functions
into an intranet Im using postnuke for? I have already used blank.php quite a bit but need
now some complex coding and DB work. I was wondering if I needed to do anything else to
the blank page to maintain the state if I use a different database?

 Re: Blank.php [ Reply ] [ Back to Index ] Top Bottom

Author : Mike
Date: 2003/01/08 15:15

Since the PostNuke core is initialised at the beginning of blank.php, you can make use of
all its functions, including checking if the user is logged in, verifying some
permissions, setting and retrieving session variables in order to maintain "state", etc.

But be careful if you open a connection to another database within blank.php, since this
may mess up the current database used by PostNuke, and your session variables might not be
saved correctly at the end of the page request - be sure to test this first to make sure
you're not conflicting with the PNADODB connection used by PostNuke.

 Re: Blank.php [ Reply ] [ Back to Index ] Top Bottom

Author : al
Date: 2003/02/25 21:30

i would like to have that feature(checking if the user is logged in) because there is
certain tag that i cant enable in the main settings of pn latest. 
like this tag
<body onLoad="change_news()">

 Re: Blank.php [ Reply ] [ Back to Index ] Top Bottom

Author : al
Date: 2003/02/25 21:31

but with blank.php everything goes well except checkin if user is logged in.

 Re: Blank.php [ Reply ] [ Back to Index ] Top Bottom

Author : Mike
Date: 2003/02/27 21:32

Are you sure that pnUserLoggedIn() doesn't work for blank.php ? Normally, there's no
reason why that shouldn't work there as well...

As for body onLoad, you could probably change that in the theme header, no ?

 Reply [ Back to Index ] Top Bottom
Name :
E-mail : (optional)
Subject :
Message :
MathGuard security question: 7 + 3 =
 

Mike's Pub -> Discussion Corner -> Questions on Web Programming (Perl/PHP)