RE: [PHP] Help me put this into phpinesse!
| From: | Brad Sumrall | Date: | Mon, 30 Apr 2007 02:32:37 +0000 |
| Subject: | RE: [PHP] Help me put this into phpinesse! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254124@lists.php.net to get a copy of this message | ||
When the page opens, connect to server (this works fine).
Look for session, if no session is found, look for phpbb session (two
different session possibilities)
Reading through the phpbb site, it say I must have the code that is in
include './phpbb/login_global.php'
Brad
-----Original Message-----
From: Tijnema ! [mailto:tijnema@gmail.com]
Sent: Sunday, April 29, 2007 5:03 AM
To: Brad Sumrall
Cc: php-general@lists.php.net; ceo@l-i-e.com
Subject: Re: [PHP] Help me put this into phpinesse!
On 4/29/07, Brad Sumrall <Brads@ftnco.com> wrote:
> <?php
>
> ob_start();
>
> session_start();
>
> header("Cache-control: private");
>
> require("includes/configure.php");
>
>
> $conn=mysql_connect(DB_SERVER,DB_SERVER_USERNAME,DB_SERVER_PASSWORD);
>
> mysql_select_db(DB_DATABASE) or die(mysql_error().": database
> not available");
>
> $show="no";
>
> isset($_SESSION['userid']);
What's the sense of above line?
isset is a function, that returns true or false.
>
> if $SESSION=NULL
>
> include './phpbb/login_global.php'
>
>
>
> $show="yes";
>
> ?>
>
>
>
> What am I missing?
>
>
>
> Brad
There's no concrete question what you want here. So i guess that is missing.
Tijnema
>
>