The solution!
***********************
$BOLTfieldKey = "XXXXXXXXX";
function getUserName(){
global $userName, $BOLTfieldKey;
session_start();
$userName = $_SESSION[$BOLTfieldKey]['ID']['member'];
session_write_close();
return $member;
}
getUserName();
print "Your user name is:".$userName;
***********************
On Nov 2, 11:20 pm, "The Editor" <[EMAIL PROTECTED]> wrote:
> How are you calling the function? Is it within BoltWire? If so, you
> might look at conditions.php in the barn/scripts folder. In
> particular there is an "if auth" "if ingroup" "if login" and other
> conditions you might be able to scrap up some code from.
>
> You also have some variables available to you like $BOLTid and
> $BOLTmemberships. Or you could try tapping into the session variable
> directly. See the engine.php script around line 75 for ideas.
>
> Feel free to share your work with others, as it might be of interest
> to other admins. There were a few emails a while back on a related
> subject. If you have further questions let me know!
>
> Cheers,
> Dan
>
> On Tue, Oct 28, 2008 at 5:39 PM,Sella<[EMAIL PROTECTED]> wrote:
>
> > Hi everyone,
>
> > I wrote a php file that takes care of giving images from the file
> > directory (files/) (For security reasons - I don't want people without
> > authorizations downloading files I uploaded to secure zones). I was
> > wondering how I could make it also check which user requests the file,
> > and what groups he belongs to.
>
> > Are there any php file from the Boltwire system that I can include?
> > For example, one that includes functions such as isLogin or
> > memberName, etc.
>
> > Thanks in advance,
> >Sella.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---