Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : API - Admin Functions



Threaded Mode | Print  

 API - Admin Functions, to add/edit plans (4 Replies, Read 1856 times)
yapjinkun
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hello,

Is there a admin api to add/edit plans? Can't find info about this in wiki pages.
IP: --   

API - Admin Functions
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

The API is available but we have not documented it yet.

You can also copy the following files across servers if you would like to replicate the plans on another server :
Code
/path/to/softaculous/conf/*.acl
/path/to/softaculous/conf/*.plan


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

API - Admin Functions
yapjinkun
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hi,

Thank you for the reply, can you provide a brief for the api access? Like the access url & parameters, we're using cPanel server.
IP: --   

API - Admin Functions
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

You need to post the values to the following URL :
Code
https://example.com:2087/cgi/softaculous/index.php?act=addplans


You need to post the following values :
PHP Code

 $post = array();
$post['addplan'] = 1;
$post['planname'] = 'PLAN_NAME';
$post['cpplan_PLAN1'] = '1'// Choose the cPanel plan you want to apply this plan to
$post['cpplan_PLAN2'] = '1'// Choose the cPanel plan you want to apply this plan to
$post['users_USER1'] = '1'// Choose the cPanel user you want to apply this plan to
$post['users_USER2'] = '1'// Choose the cPanel user you want to apply this plan to
$post['scripts_SID'] = '1'// Select the scripts you want to enable, SID refers to script ids. Eg: SID for WordPress is 26 $post['scripts_26'] = '1';
$post['saveplan'] = '1'


You can get the list of script ids from :
http://www.softaculous.com/scripts.php


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

API - Admin Functions
yapjinkun
Group: Member
Post Group: Newbie
Posts: 6
Status:
hi,

thanks of the info, will looking into this :D
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, 8:14 pm.

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