Hello,
I am trying to use the currently logged in user as a constant in my php script.
Using the API <cpanel print="$authuser"> accomplishes the result I am looking for but does not work within PHP.
What 'voodoo' do I need to use the cPanel API properly in this case?
I have checked out the XMPAPI but it seems like more than I need at the moment, and also doesnt seem to be able to fetch the currently logged in user (perhaps I am wrong).PHP Code:<?php
define("loggeduser","AUTHUSER NEEDS TO BE HERE");
?>
Thank you!



LinkBack URL
About LinkBacks
Reply With Quote





