File size: 6.31Kb
<?php
////////////////HEADER INFO////////////////
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: text/vnd.wap.wml;");
echo '<?xml version="1.0" encoding="utf-8"?>';
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
/////// EDIT HERE ONLY!!///
$copyrights="wapirate";
$site="wapirate.freehostia.com";
$admin="wapirate@gmail.com";
$url="index.php";
////////////////////////////////////////////////////
////////DONT EDIT UNDER HERE! /////////////
echo "<!-- copyrighted by topsite.uk.to -->\n";
echo "<!-- sales@oz-host.org -->\n";
echo "<!-- http://shop.oz-host.org -->\n";
////////////////SEND PAGE//////////////////////
if($action=="send")
{
echo "<card id=\"main\" title=\"EMAIL SENDER\">";
echo "<p align=\"center\">";
echo "To: <br/><input name=\"email\" maxlength=\"40\"/><br/>";
echo "From: <br/><input name=\"from\" maxlength=\"40\"/><br/>";
echo "Subject: <br/><input name=\"subject\" maxlength=\"30\"/><br/>";
echo "Message: <br/><input name=\"message\" maxlength=\"500\"/><br/>";
echo "<anchor>SEND!";
echo "<go href=\"email.php?action=sendin\" method=\"post\">";
echo "<postfield name=\"email\" value=\"$(email)\"/>";
echo "<postfield name=\"from\" value=\"$(from)\"/>";
echo "<postfield name=\"subject\" value=\"$(subject)\"/>";
echo "<postfield name=\"message\" value=\"$(message)\"/>";
echo "<postfield name=\"ip\" value=\"$REMOTE_ADDR\"/>";
echo "<postfield name=\"phone\" value=\"$HTTP_USER_AGENT\"/>";
echo "</go></anchor>";
echo "<br/><br/><br/><a href=\"$url\">Home</a>";
echo "<br/><small>© $copyrights</small>";
echo "</p></card></wml>";
exit();
}
////////sent page//////////////////
if($action=="sendin")
{
echo "<card id=\"main\" title=\"SENT!!\">";
echo "<p align=\"left\">";
if($email==NULL && $from==NULL && $subject==NULL && $message==NULL)
{
echo "Sorry no data has being sent to!<br/>";
echo "Please go back and fill in thanks";
echo "<br/><a href=\"email.php?action=send\">Back</a><br/>";
echo "</p></card></wml>";
exit();
}
if($email==NULL)
{
echo "Sorry no email has being sent to!<br/>";
echo "please go back and fill in thanks";
echo "<br/><a href=\"email.php?action=send\">Back</a><br/>";
echo "</p></card></wml>";
exit();
}
if($from==NULL)
{
echo "Sorry no from has being sent to!<br/>";
echo "please go back and fill in thanks";
echo "<br/><a href=\"email.php?action=send\">Back</a><br/>";
echo "</p></card></wml>";
exit();
}
if($subject==NULL)
{
echo "Sorry no subject has being sent to!<br/>";
echo "please go back and fill in thanks";
echo "<br/><a href=\"email.php?action=send\">Back</a><br/>";
echo "</p></card></wml>";
exit();
}
if($message==NULL)
{
echo "Sorry no message has being sent to!<br/>";
echo "please go back and fill in thanks";
echo "<br/><a href=\"email.php?action=send\">Back</a><br/>";
echo "</p></card></wml>";
exit();
}
echo "SENT!<br/>";
echo "TO: $email<br/>";
echo "FROM: $from<br/>";
echo "SUBJECT: $subject<br/>";
echo "MESSAGE: $message<br/>";
//echo "STATERS DONE!<br/>";
$to = "$email";
$headers = "From: $from";
$subject = "$subject";
$message = "$message
-----
This email was sent from http://$site ,
Their info $phone $ip
";
mail ($to, $subject, $message,$headers);
////////////////////
echo "<br/><br/><br/><a href=\"$url\">Home</a>";
echo "<br/><small>© $copyrights</small>";
echo "</p></card></wml>";
exit();
}
////////////////SEND PAGE////////////////
if($action=="admin")
{
echo "<card id=\"main\" title=\"EMAIL ADMIN\">";
echo "<p align=\"center\">";
echo "Send To $admin<br/>";
echo "From: <br/><input name=\"from\" maxlength=\"40\"/><br/>";
echo "Message: <br/><input name=\"message\" maxlength=\"500\"/><br/>";
echo "<anchor>SEND!";
echo "<go href=\"email.php?action=admin2\" method=\"post\">";
echo "<postfield name=\"from\" value=\"$(from)\"/>";
echo "<postfield name=\"subject\" value=\"ADMIN PROBLEM\"/>";
echo "<postfield name=\"message\" value=\"$(message)\"/>";
echo "<postfield name=\"ip\" value=\"$REMOTE_ADDR\"/>";
echo "<postfield name=\"phone\" value=\"$HTTP_USER_AGENT\"/>";
echo "</go></anchor>";
echo "<br/><br/><br/><a href=\"$url\">Home</a>";
echo "<br/><small>© $copyrights</small>";
echo "</p></card></wml>";
exit();
}
////////sent page//////////////////
if($action=="admin2")
{
echo "<card id=\"main\" title=\"SENT!!\">";
echo "<p align=\"left\">";
if($from==NULL)
{
echo "Sorry no from has being sent to!<br/>";
echo "please go back and fill in thanks";
echo "<br/><a href=\"email.php?action=admin\">Back</a><br/>";
echo "</p></card></wml>";
exit();
}
if($message==NULL)
{
echo "Sorry no message has being sent to!<br/>";
echo "please go back and fill in thanks";
echo "<br/><a href=\"email.php?action=admin\">Back</a><br/>";
echo "</p></card></wml>";
exit();
}
$email="$admin";
echo "SENT!<br/>";
echo "TO: $email<br/>";
echo "FROM: $from<br/>";
echo "SUBJECT: $subject<br/>";
echo "MESSAGE: $message<br/>";
//echo "STATERS DONE!<br/>";
$to = "$email";
$headers = "From: $from";
$subject = "$subject";
$message = "$message
-----
Their Info
PHONE: $phone
IP: $ip
";
mail ($to, $subject, $message,$headers);
////////////////////
echo "<br/><br/><br/><a href=\"$url\">Home</a>";
echo "<br/><small>© $copyrights</small>";
echo "</p></card></wml>";
exit();
}
//////// Main Page//////////////////
if($action=="")
{
echo "<card id=\"main\" title=\"TOS\">";
echo "<p align=\"left\">";
echo "You may use this email sender for free.<br/>";
echo "You do have rights to hide your email.<br/>";
echo "But please do not use us in a threating manner!<br/>";
echo "You do send your info $HTTP_USER_AGENT & $REMOTE_ADDR<br/>";
echo "We keep a eye on abuse so that we can ban you!<br/>";
////////////////////
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"email.php?action=send\">OK I AGREE</a><br/>";
echo "<a href=\"$url\">NO SORRY</a>";
echo "<br/><small>© $copyrights</small>";
echo "</p></card></wml>";
exit();
}
?>