Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 07:25:22 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155442 Posts in 21702 Topics by 7734 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: How to aquire a page file name by using page id  (Read 340 times)
phillbooth

Offline Offline

Posts: 27


« on: October 07, 2008, 09:43:40 AM »

Hi i need to set up a system that allows me to re-direct users that are logged in to a different page than those who are not. Iv been able to do this (as below) but xxx.php may be renamed (by other people) and I dont want to have to keep comming back and edditing the template so is there anyway I can use the page ID to GET the file name of the page?

i.e. $WB_ID=20->$file_name;

--------------------
Working code:

if(FRONTEND_LOGIN AND $wb->is_authenticated()) {
    header('Location: '.WB_URL.'/pages/xxx1.php');
}elseif{
    header('Location: '.WB_URL.'/pages/xxx2.php');
}


Thanks!
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!