This topic is locked

Modifying templates for external login?

12/28/2005 11:40:29
PHPRunner General questions
D
ddum author

I am fooling around with PHPRunner, and i really am missing only one thing.
I would like to have justabout every page modified as below in order to interface the generated code with the login system for the rest of the site. I do not thing "supertop" would let me do this?
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");

session_start();

include("include/dbconnection.php");

include("include/Users_variables.php");

include("include/Users_functions.php");

begin custom stuff

if (!$_SESSION['validuser'] == true) {

echo "You are not logged in!";

exit();

}

end custom stuff



CheckFileTime();

D
defcon2000 12/28/2005

I am a newbie myself but I am totally confused by your question, can you be a bit clearer? I am quite sure supertop and superbottom would do a good job. We are using it and fits well.
Rgds,

D
ddum author 12/28/2005

Basically, i have a site where when the user logs on it sets a few session variables. I need every generated page to check this variable, and exit if this one doesnt check out.

D
defcon2000 12/28/2005

Are you trying to stop users loading pages without logging in first? Are you trying to use it as a security measure?

Sergey Kornilov admin 12/29/2005

Hi,
sure, you can put your custom code into supertop.php file.

This will work.