Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Variable for Account Username



Threaded Mode | Print  

 Variable for Account Username (3 Replies, Read 1293 times)
earthgirlhosting
Group: Member
Post Group: Newbie
Posts: 12
Status:
I have a custom script and I need to pull in the variable for the account username but not seeing it in the documentation.  Is this possible?
IP: --   

Variable for Account Username
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

You can globalize the $softpanel in the __install() function in the install.php of your custom script and use the following :
Code
$__settings['cp_username'] = $softpanel->user['name'];


after this you can use the [[cp_username]] variable in your SQL file or config file to replace it with the username of the user installing the script.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Variable for Account Username
earthgirlhosting
Group: Member
Post Group: Newbie
Posts: 12
Status:
Great, thank you!  Is there a list of other variables that can be passed through this way?
IP: --   

Variable for Account Username
earthgirlhosting
Group: Member
Post Group: Newbie
Posts: 12
Status:
Nevermind, I found it!  I couldn't find it yesterday.

https://www.softaculous.com/docs/Custom_Integration

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 2:05 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.355