PDA

View Full Version : Must be logged in to view non-vb page?


snyx
10 Aug 2001, 21:42
Yeah im curious if you can do this. I have a non-vb page, like another php script, and I want to make it so you can't view it, unless your logged in. Is this easy to pull off, or hard? Any help would be cool, thanks!

snyx

BradC
10 Aug 2001, 23:33
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



something like that might work

certify
16 Aug 2001, 10:05
Will it work for .SHTML files?

PBC
06 Jul 2002, 05:03
Here's an updated version that will also show a templated php file:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This will show the error/not logged in page if they are not logged in.

I left the CHDIR out, but feel free to add it if you need it.

Webmasta XT
13 Aug 2002, 18:31
I want the same thing, except my non-vb page is on another server with a totally different database, is it possible?