Can anyone tell me how to integrade cpanel into my own control panel or how to add my own panel into cpanel? I already tried to duplicate the mysql module for my second mysql database but was unable to make ik work because the modules you add yourself have other permissions.

I wrote my site in php and now I want to build a support ticket system, an domein management panel and a billing system into one control panel with only one signe username and password for each client. This means I have to integrate cpanel into own site but I don't have any clue how to do this. Can someone help me with this?