Guys I'm so sorry to bring this up again, but do you guys know if it possible to redirect this script to a costume header?
I would like the sucess page to differ from the Cpanel sucess page.
But I can't seem to add a header without getting errors.
Script by user NAMELESS
#!/usr/local/bin/php
<?
$email = "xxx";
$udomain = "xxxx.com";
$upass = "yyyy";
$quota = 1;
$host = "zzzzz.com";
$socket = fsockopen($host,2082);
if(!$socket)
{
print('Socket error');
exit();
}
$user = "qqqq";
$password = "wwwwwww";
$authstr = "$user:$password";
$pass = base64_encode($authstr);
$in1 = "GET /frontend/x/mail/doaddpop.html?email=$email&domain=$udomain&password=$upass"a=$quota\r\n";
$in2 = "HTTP/1.0\r\n";
$in3 = "Host:$udomain\r\n";
$in4 = "Authorization: Basic $pass\r\n";
$in5 = "\r\n";
fputs($socket,$in1);
fputs($socket,$in2);
fputs($socket,$in3);
fputs($socket,$in4);
fputs($socket,$in5);
while (!feof($socket)) {
echo fgets ($socket,128);
}
fclose( $socket );
?>



LinkBack URL
About LinkBacks
Reply With Quote






