Control Web Panel
Developers => I can build it => Topic started by: Administrator on October 05, 2014, 10:35:15 PM
-
Apply here and start building CWP addons like: modules, installers, scripts...
Join now and start developing for CWP
Examples
- Bind DNS Cluster
- FFmpeg and other streaming additions
- Email Filtering
- Server Monitoring tools
- Module for installing something on the server
- Module for managing something on the server
....you can build whatever others will find useful
And the best part is that you get rewarded for your work, payouts are from 50-250$ per module.
Think over what you can build for CWP and join now!
Required Skills:
- Core PHP
- Linux knowledge
Apply here
http://centos-webpanel.com/contact
* Instructions: How to build CWP admin module
http://wiki.centos-webpanel.com/how-to-build-a-cwp-module
-
Do you have a api documentation or some information on where to start building the addons ?
Is it done in php ? Also how do we get the current user / domain informations
PS: spelling error in topic title, pls fix it
-
api will come with new release
-
How do we build addons ? some information on where to start, which language and how to get the environmental data like sessions / username currently logged in etc ?
PS: the topic title you have a spelling error "Applay"
-
you can find this info on the website
http://centos-webpanel.com/how-to-build-a-new-module-for-web-panel
-
I saw that link a little time before your reply came.
I am trying to build a module for end users to manage dns entries at this file /var/named/xx.db
however, the user shall not see all domains in his list to edit. How will i get the variables (data) on which user is currently logged in to CWP.
-
you can get this info from session and if you query mysql database
-
Do you have a session variable that holds username or domain name ?
It would be easier if we have some clear info on the same.
-
this will come with the API in the new version.
-
I figured out getting username from session variable but the environment is limited on how we can build modules.
I have built one for adding alias for subdomains as well as dual delivery to alias and local mailbox.
One more constraint is, I had to create new database logins for this purpose and make seperate connection to DB in my script. Usually building apis this would be part of some common api files.
Hope this would be resolved once you have your end ready for the same
-
Also one more thing
I created a module, I can access via index.php?module=<modulefilename> format link and it is working fine
But to add it to menu
as per your instructions at http://centos-webpanel.com/how-to-build-a-new-module-for-web-panel
I created the file /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php and added the below content.
<a href="index.php?module=<modulefilename>">Manage Alias</a>
But its not appearing in the CWP admin menu
-
have you checked under the plugins in the left menu?
-
Yup its not there.
-
its updated in the new version..this will be in few days.