Include cPanel/WHM/WebMail login box to your site
Here is the script which allows you to include the login script anywhere and still catch incorrect logins and redirect them to your website.
Hope this helps someone.
Code: dpcpanellogin.php
Code: include_anywhere.php
Just include the code in include_anywhere.php inside your page and place the docpanellogin.php file in the same directory. The rest should work
The reason why this script was written was because we have too many servers and its very hard to come back each time to the script and insert the new server name. Instead here we just take the domain from the user. Anyone who wants to embed the domain name should replace the following lines from include_anywhere.php
Code:
input name=”domain” type=”text” value=”"
and replace with
Code:
input name=”domain” type=”hidden” value=”YOUR_SERVER_NAME”
replacing the “YOUR_SERVER_NAME” with your server name. (I haven’t test this part but it should work )