This topic is locked
[SOLVED]

  Incorporating a custom page into phprunner projects

1/10/2011 1:39:19 PM
PHPRunner General questions
T
text author

Hi
Does anyone know the easiest way to include a custom page within a phprunner created project? i.e. A page that can only be accessed when you are logged in.
Thanks
Richard

Sergey Kornilov admin 1/11/2011

You can copy and paste piece of PHP code from the beginning of any list page. The actual code depends on your project settings. Here is an example of what you looking for:

include("include/dbcommon.php");
if(!@$_SESSION["UserID"])

{

header("Location: login.php");

return;

}


Add this code snippet to the beginning of your custom PHP file. This is it.

T
text author 1/11/2011

Thanks Sergey, fantastic support as always.
regards
Richard



You can copy and paste piece of PHP code from the beginning of any list page. The actual code depends on your project settings. Here is an example of what you looking for:

include("include/dbcommon.php");
if(!@$_SESSION["UserID"])

{

header("Location: login.php");

return;

}


Add this code snippet to the beginning of your custom PHP file. This is it.