<?php // whm 11
if( !defined( "CPANEL_HOSTNAME" ) ) define( "CPANEL_HOSTNAME", "hostname.com" ); # hostname of cpanel/whm
if( !defined( "CPANEL_USERNAME" ) ) define( "CPANEL_USERNAME", "root" ); # WHM username, poorly named
if( !defined( "CPANEL_PASSWORD" ) ) define( "CPANEL_PASSWORD", "password" ); # WHM password, poorly named
if( !defined( "CPANEL_PACKAGE" ) ) define( "CPANEL_PACKAGE", "plan" ); # Cpanel Package in use
if( $_POST )
{
if( function_exists( 'curl_init' ) )
{
if( ( $curl = curl_init( ) ) )
{
$url = sprintf( "http://%s:%s@%s:2086/scripts/wwwacct?remote=1&nohtml=1", CPANEL_USERNAME, CPANEL_PASSWORD, CPANEL_HOSTNAME );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
foreach( $_POST as $key => $value )
$post[] = sprintf( "%s=%s", $key, urlencode( $value ) );
$url = sprintf( "%s&%s", $url, implode( '&', $post ) );
curl_setopt( $curl, CURLOPT_URL, $url );
$buffer = trim( curl_exec( $curl ) );
$result = substr( $buffer, 0, 1 );
$buffer = trim( substr( $buffer, 1 ) );
if( $result == 1 )
{
## Log the user into their cpanel
printf( "<script language=javascript>alert( \"Your account was created ... joe got bored writing here ...\" );</script>", $buffer );
}
else
{
printf( "<script language=javascript>alert( \"%s\" );</script>", $buffer );
}
}
}
}
?>
<SCRIPT LANGUAGE="JavaScript">
document.body.ondragstart = "return false";
document.body.onselectstart = "return false";
</script>
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.domain.value == "")
{
alert("Please enter a value for the \"Domain/Subdomain\" field.");
theForm.domain.focus();
return (false);
}
if (theForm.domain.value.length < 6)
{
alert("Please enter at least 6 characters in the \"Domain/Subdomain\" field.");
theForm.domain.focus();
return (false);
}
if (theForm.username.value == "")
{
alert("Please enter a value for the \"Hosting Username\" field.");
theForm.username.focus();
return (false);
}
if (theForm.username.value.length < 3)
{
alert("Please enter at least 3 characters in the \"Hosting Username\" field.");
theForm.username.focus();
return (false);
}
if (theForm.username.value.length > 8)
{
alert("Please enter at most 8 characters in the \"Hosting Username\" field.");
theForm.username.focus();
return (false);
}
if (theForm.password.value == "")
{
alert("Please enter a value for the \"Hosting Password\" field.");
theForm.password.focus();
return (false);
}
if (theForm.password.value.length < 4)
{
alert("Please enter at least 4 characters in the \"Hosting Password\" field.");
theForm.password.focus();
return (false);
}
if (theForm.password.value.length > 15)
{
alert("Please enter at most 15 characters in the \"Hosting Password\" field.");
theForm.password.focus();
return (false);
}
if (theForm.khvbhj.selectedIndex < 0)
{
alert("Please select one of the \"Banner Placement\" options.");
theForm.khvbhj.focus();
return (false);
}
if (theForm.khvbhj.selectedIndex == 0)
{
alert("The first \"Banner Placement\" option is not a valid selection. Please choose one of the other options.");
theForm.khvbhj.focus();
return (false);
}
if (theForm.iojoi.selectedIndex == 0)
{
alert("The first \"94MB.com Terms Of Service\" option is not a valid selection. Please choose one of the other options.");
theForm.iojoi.focus();
return (false);
}
if (theForm.contactemail.value == "")
{
alert("Please enter a value for the \"Contact Email Address\" field.");
theForm.contactemail.focus();
return (false);
}
if (theForm.contactemail.value.length < 8)
{
alert("Please enter at least 8 characters in the \"Contact Email Address\" field.");
theForm.contactemail.focus();
return (false);
}
return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan -->
<form action="" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" method="POST">
<input type="hidden" name="plan" value="<?=CPANEL_PACKAGE ?>">
<table align="center" class="tablecomplex2" width="486" cellspacing="5" height="107">
<tr>
<td class="lightbg" align="right" width="240" height="25" bgcolor="#FFF5EC"><font face="Arial" color="#800000"><b>Domain/Subdomain:</b></font></td>
<td class="heavybg" align="right" width="237" height="25" bgcolor="#FFF5EC">
<p align="left"><font face="Arial">www.<b><!--webbot bot="Validation"
S-Display-Name="Domain/Subdomain" B-Value-Required="TRUE"
I-Minimum-Length="6" --><input type="text" name="domain" onChange="dologinname();fixaddress();" size="25" tabindex="1"></b><font color="#800000">*</font></font></p>
</td>
</tr>
<tr>
<td class="lightbg" align="right" width="240" height="25" bgcolor="#FFF5EC"><font face="Arial" color="#800000"><b>Username:</b></font></td>
<td class="heavybg" align="right" width="237" height="25" bgcolor="#FFF5EC">
<p align="left"><font face="Arial"><b><!--webbot bot="Validation"
S-Display-Name="Hosting Username" B-Value-Required="TRUE"
I-Minimum-Length="3" I-Maximum-Length="8" --><input type="text" name="username" onChange="fixaddress();" size="20" maxlength="8" tabindex="2"></b><font color="#800000">*</font></font></p>
</td>
</tr>
<tr>
<td class="lightbg" align="right" width="240" height="25" bgcolor="#FFF5EC"><font face="Arial" color="#800000"><b>Password:</b></font></td>
<td class="heavybg" align="right" width="237" height="25" bgcolor="#FFF5EC">
<p align="left"><font face="Arial"><b><!--webbot bot="Validation"
S-Display-Name="Hosting Password" B-Value-Required="TRUE"
I-Minimum-Length="4" I-Maximum-Length="15" --><input type="password" name="password" value="" size="20" maxlength="15" tabindex="3"></b><font color="#800000">*</font></font></p>
</td>
<tr>
<td class="lightbg" align="left" width="477" height="16" colspan="2">
<hr>
</td>
</tr>
<tr>
<td class="lightbg" align="left" width="240" height="60" bgcolor="#FFF5EC"><font face="Arial">Do
you agree to place the 94MB.com <a href="javascript:popUp('http://ssl.94mb.com/banner.htm')"><font color="#800000"><b>banner</b></font></a>
on EVERY page of your website?</font></td>
<td class="lightbg" align="left" width="237" height="60" bgcolor="#FFF5EC">
<p align="left"><font color="#433f40" size="3" face="Arial"><!--webbot
bot="Validation" S-Display-Name="Banner Placement"
B-Value-Required="TRUE" B-Disallow-First-Item="TRUE" --><select size="1" name="khvbhj" tabindex="4">
<option selected>NO</option>
<option value="YES">YES</option>
</select></font><font color="#800000" face="Arial">*</font></td>
</tr>
<tr>
<td class="lightbg" align="left" width="477" height="1" colspan="2"></td>
</tr>
<tr>
<td class="lightbg" align="left" width="240" height="40" bgcolor="#FFF5EC"><font face="Arial">Do
you agree to the 94MB.com <b><a href="javascript:popUp('http://ssl.94mb.com/terms.htm')"><font color="#800000">Terms
of Service?</font></a></b></font></td>
<td class="lightbg" align="left" width="237" height="40" bgcolor="#FFF5EC">
<p align="left"><font face="Arial" color="#433f40" size="3"><!--webbot
bot="Validation" S-Display-Name="94MB.com Terms Of Service"
B-Disallow-First-Item="TRUE" --><select size="1" name="iojoi" tabindex="5">
<option value="NO" selected>NO</option>
<option value="YES">YES</option>
</select></font><font color="#800000" face="Arial">*</font></td>
</tr>
<tr>
<td class="lightbg" align="right" width="477" height="25" colspan="2">
<hr>
</td>
</tr>
<tr>
<td class="lightbg" align="right" width="240" height="25" bgcolor="#FFF5EC"><font face="Arial" color="#800000"><b>Contact
Email:</b></font></td>
<td class="lightbg" align="right" width="237" height="25" bgcolor="#FFF5EC">
<p align="left"><font face="Arial"><b><!--webbot bot="Validation"
S-Display-Name="Contact Email Address" B-Value-Required="TRUE"
I-Minimum-Length="8" --><input type="text" name="contactemail" value="" size="20" tabindex="6"></b><font color="#800000">*</font></font></p>
</td>
</tr>
<tr>
<td class="cellheader" colspan="2" align="center" width="483" height="1" bgcolor="#FFF5EC">
<font face="Arial"><b>
<input type="submit" class="submit" value="Setup 94MB.com Hosting Instantly" style="font-size: 12pt" tabindex="7">
</b></font>
</td>
</tr>
</table>
</form>
<a href="javascript:popUp('http://www.bannerclickthrough.94mb.com')">
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=800,height=500,left = 75,top = 50');");
}
</script>
<SCRIPT LANGUAGE="JavaScript">
document.body.ondragstart = "return false";
document.body.onselectstart = "return false";
</script>