Chillispot forum

Chillispot community is alive again...

You are not logged in.

Announcement

Important keyword hotfix for Chillispot (all versions): If you have already installed chillispot, please verify that key.chillispot.info is set instead of key.chillispot.org.
You should see this in your config file:

domain key.chillispot.info

This should fix the keyword functionality. For more information about keywords please visit this page.

#1 2010-03-03 21:51:13

tudorg
New member
Registered: 2010-03-03
Posts: 1

Login popup help

Hope somebody can help
I have a php script which i have inserted into the popup so that the user can see there total usage in the logout popup, but the thing i am struggling with is that my username is just test
eg
$dbResult = mysql_query ( "SELECT CAST(SUM(`AcctInputOctets`) +

SUM(`AcctOutputOctets`) AS CHAR)" . "FROM radacct WHERE UserName =

'test'" );
so how can i retrieve the username as they login so they are viewing the correct data
my initial idea is maybe to retrieve the username from the last_insert_id record
????
any help and guidance would be great
Regards Tudor

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson