intent-group

Member
Oct 28, 2003
7
0
151
Hi,

I'm working on my own Addon into CPanel. The one thing that i'm trying to do is to get the username of the person logged into cpanel so that I can send this to a database and return various items from this.

Therefore I'm gonna ned to use php. Can ayone tell me how I can get this username in PHP. It's REALLY annoying me now! lol

Simon
 

cyon

Well-Known Member
PartnerNOC
Jan 15, 2003
320
0
241
here u go:

<?php
$username = <cpanel print="$user">;
?>
 

intent-group

Member
Oct 28, 2003
7
0
151
** sighs **

Thank you.. lol.. ok it was very simple. i'd tried doing stuff with $PHP_AUTH_USER and all stuff like that.. Thought it had to be too simple..