Need Help with my Website!

Status
Not open for further replies.
Newbie Spellweaver
Joined
May 7, 2007
Messages
5
Reaction score
0
Hey guys
i made a website for my rose server and everything works fine
the only thing that dont work is the UserCP (im using RoseOnline CMS 3Lite, with a design made by me =)

when im Logged in and go to UserCP everything is fine
but when im not logged in and go to UserCP the message "Must be logged in to see this page!" is standing there, thats not the problem at all, the problem is that when this message comes up my page somehow screws up.

The question i want to ask is

Code:
<?php if(!session_is_registered(User_Name)) {
die("");
}

if(!session_is_registered(User_Pass)) {
die("");
}
how to get this code so it links back to the login page instead of poping up this message

plz help me =/
 
for automatic redirection with no message
PHP:
<?php if(!session_is_registered(User_Name)) {
header("Location: http://www.bleh.com/");
die("");
}

if(!session_is_registered(User_Pass)) {
header("Location: http://wwwbleh.com/");
die("");
}

or

for a clickable 'go back to login' message
PHP:
<?php if(!session_is_registered(User_Name)) {
echo "<a href=\"webpage.php\">Click to login</a>";
die("");
}

if(!session_is_registered(User_Pass)) {
echo "<a href=\"webpage.php\">Click to login</a>";
die("");
}

Simple stuff =p
If that wasn't what you were looking for lemme know
 
Status
Not open for further replies.
Back