Control Web Panel

Developers => I can build it => Topic started by: Administrator on October 05, 2014, 10:35:15 PM

Title: Apply and build (payouts from 50-250$)
Post 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
Title: Re: Applay and build
Post by: ashokjp on November 21, 2014, 03:14:17 PM
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
Title: Re: Applay and build
Post by: Administrator on November 23, 2014, 03:58:55 AM
api will come with new release
Title: Re: Applay and build
Post by: ashokjp on November 23, 2014, 11:21:06 AM
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"
Title: Re: Apply and build
Post by: Administrator on November 23, 2014, 08:51:04 PM
you can find this info on the website
http://centos-webpanel.com/how-to-build-a-new-module-for-web-panel
Title: Re: Apply and build
Post by: ashokjp on November 23, 2014, 08:54:00 PM
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.

Title: Re: Apply and build
Post by: Administrator on November 23, 2014, 11:46:38 PM
you can get this info from session and if you query mysql database
Title: Re: Apply and build
Post by: ashokjp on November 24, 2014, 01:44:01 AM
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.
Title: Re: Apply and build
Post by: Administrator on November 26, 2014, 12:39:22 AM
this will come with the API in the new version.
Title: Re: Apply and build
Post by: ashokjp on November 26, 2014, 01:07:35 AM
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
Title: Re: Apply and build
Post by: ashokjp on November 26, 2014, 01:33:22 AM
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.
Code: [Select]
<a href="index.php?module=<modulefilename>">Manage Alias</a>

But its not appearing in the CWP admin menu
Title: Re: Apply and build
Post by: Administrator on November 27, 2014, 08:40:50 PM
have you checked under the plugins in the left menu?
Title: Re: Apply and build
Post by: ashokjp on November 27, 2014, 10:03:19 PM
Yup its not there.
Title: Re: Apply and build
Post by: Administrator on December 02, 2014, 06:20:26 PM
its updated in the new version..this will be in few days.