cplogin.php

Can anyone help me modify this so it will take a customer to their own cpanel? I REALLY appreciate it!

<?php

# domain or ip (no http://)
$domain = $_POST['domain'];

if(!$_POST['login']) exit;

$user = $_POST['user'];
$pass = $_POST['pass'];
$port = $_POST['port'];

$port == '2083' || $port == '2096' ? $pre = 'https://' : $pre = 'http://';
$port == '2095' || $port == '2096' && !eregi('@', $user) ? $user = $user.'@'.$domain : $user = $user;

?>

I really suck at php. I did not write this, but want to modify it to work on my site.

 

 

 

 

Top