All pastes #662409 Raw Edit

tntbox

public text v1 · immutable
#662409 ·published 2007-08-18 18:02 UTC
rendered paste body
<?php
if (!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['city'])) {
  $http_referrer  = getenv("HTTP_REFERER");
  /* Customizable options */
  $fromname       = $_POST['name'];
  $fromaddress    = $_POST['email'];
  $city           = $_POST['city'];
  $fromheader     = "From: \"".$fromname."\" <".$fromaddress.">\r\n";
  $toaddress      = "lifeisbetteroutsidethebox@hotmail.com";
  $subject        = "Website Mailing List Entry";
  $body           = "Name: " .$fromname. "\nEmail: " .$fromaddress. "\nCity: " .$city. "\n\n\n____________________\nSent from: " . $http_referrer;
  /* Stop customizing */

  if (!empty($http_referrer))
    if (@mail($toaddress,$subject,$body,$fromheader))
      header("Location: contact.php?status=success");
    else header("Location: contact.php?status=mailfail");
} else header("Location: contact.php?status=formfail");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="euc-jp"?>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=euc-jp" />
    <title>GrIND[1] - Stuff page. I don't know what to do with this.</title>
    <style type="text/css" media="screen">
body {
  background-color: #FFF;width:100%;
  background-image: url(images/bg.gif);background-repeat: repeat-y;
  margin-bottom: 0px;margin-top: 0px;
  margin-left: 0px;margin-right: 0px;
  font-family:"Arial", serif;vertical-align:top;font-size:13px;color:#404040;
  text-align:left}
input, textarea {
  font-family:"Arial", serif;font-size:10px;
  background-color: #FFF;color: #000;
  border:1px solid; border-color: #000}
form {
  margin-bottom: 0px;margin-top: 0px;
  margin-left: 0px;margin-right: 0px}
a:link, a:visited, a.active {
  color:#68704B;
  font-family:"Arial", serif;
  font-weight:bold;font-size:12px;
  text-decoration:none}
a:hover {
  color:#7D855B;font-family:"Arial", serif;
  font-weight:bold;font-size:12px;
  text-decoration:none}
div#contain {position: absolute; width: 800px;top:0px;left:0px;right:0px}
div#topleft{
  position:absolute;
  width:404px;
  height:249px;
  top:0px;
  left:0px;
  right:0px;
  background-image:url(images/topleft.jpg);
}
div#topright{position: absolute;width:161px;height:101px;top:0px;left:610px;
  background-image:url(images/topright.jpg)}
div#left{
  position:absolute;
  top:275px;
  left:23px;
  right:0px;
  width:202px;
  height:202px;
  background-color:#F3F8DA;
  border-style: solid;
  border-width:1px;
  border-color:#D4E695;
}
div#right{
       position:absolute;
       width:460px;
       top:131px;
       left:307px;
       right:0px;
}
div#lnk1 {
       position:absolute;
       width:50%;
       height:15px;
       top:243px;
       left:4px;
       background-image:url(images/lnk.png);
       background-repeat: no-repeat;
       padding-left:17px;
       vertical-align:middle;
}
div#lnk2 {
       position:absolute;
       width:50%;
       height:15px;
       top:226px;
       left:16px;
       background-image:url(images/lnk.png);
       background-repeat: no-repeat;
       padding-left:17px;
       vertical-align:middle;
}
div#lnk3 {
       position:absolute;
       width:50%;
       height:15px;
       top:175px;
       left:60px;
       background-image:url(images/lnk.png);
       background-repeat: no-repeat;
       padding-left:17px;
       vertical-align:middle;
}
div#lnk4 {
       position:absolute;
       width:50%;
       height:15px;
       top:192px;
       left:45px;
       background-image:url(images/lnk.png);
       background-repeat: no-repeat;
       padding-left:17px;
       vertical-align:middle;
}
div#lnk5 {
       position:absolute;
       width:50%;
       height:15px;
       top:209px;
       left:31px;
       background-image:url(images/lnk.png);
       background-repeat: no-repeat;
       padding-left:17px;
       vertical-align:middle;
}
table.b_contain {
  background-color:#F3F8DA;
  border-width:1px; border-color:#D4E695;
  border-style: solid;width: 100%;
  padding-top:4px;padding-left:4px;
  padding-right:4px;padding-bottom:4px}
table.blog_1 {
  background-color:#E2EDB8;
  border-width:1px;border-color:#000;
  border-style: none none solid solid; width:100%;
  padding-top:1px;padding-left:2px;
  padding-right:2px;padding-bottom:2px}
table.blog_2 {
  background-color:#E2E6CA;
  border-width:1px;border-color:#000;
  border-style: none none solid solid; width:100%;
  padding-top:1px;padding-left:2px;
  padding-right:2px;padding-bottom:2px}
h1 {
  COLOR:#FFF;
  font-family:"Arial", serif;
  FONT-WEIGHT:bold;font-size:150px;
  margin-bottom: 0px;margin-top: 0px;
  margin-left: 0px;margin-right: 0px}
.style5 {color: #000000}
.style7 {
  font-size: 12px;
  color: #68704B;
  font-weight: bold;
}
.style8 {color: #68704B; font-size: 12px;}
    </style>
    <script language="JavaScript" type="text/JavaScript"><!--
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
   document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//--></script>
  </head>
  
  <body onload="MM_preloadImages('images/GrIND1Logo2.gif','Images/RR7Sign.gif')">
    <div id="contain">
      <div id="Layer1" style="position:absolute; width:200px; height:115px; left: 405px; top: 2px; z-index: 1;">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="282" height="129">
          <param name="movie" value="Images/Staa.swf" />
          <param name="quality" value="high" />
          <embed src="Images/Staa.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="282" height="129"></embed>
        </object>
      </div>
      <div id="topleft"></div>
      <div id="lnk3"><a href="index.htm">Home</a>&bull;</div>
      <div id="lnk4"><a href="MEMBERS.htm">Members</a>&bull;</div>
      <div id="lnk5"><a href="MOVIES.htm">Movies</a>&bull;</div>
      <div id="lnk2"><a href="SNAPSHOTS.htm">Snapshots</a>&bull;</div>
      <div id="lnk1"><span class="style7"><a href="contact.htm">Stuff</a></span>&bull;</div>
      <div id="left">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height:200px;">
          <tr valign="middle">
            <td align="center"><h1 align="center"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/GrIND1Logo2.gif',1)"><img src="images/GrIND1Logo.gif" name="Image2" width="200" height="200" border="0" id="Image2" alt="" /></a></h1>
          </td></tr>
      </table></div>
      <div id="right">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="b_contain">
          <tr valign="top">
            <td align="left">
              <!-- blogs_start -->
              <table border="0" cellpadding="2" cellspacing="0" width="100%" class="blog_1">
                <tr valign="top">
                  <td width="20" height="91" align="left">
                    <img src="images/blog0.gif" width="20" height="87" border="0" alt="." /></td>
                  <td align="left" class="style8">
                    <p align="left"><span class="style5"><strong> Mailing list!</strong></span><br />
                      <span class="style8">Yeah, so, join the mailing list! Just so we can let you know about any updates. That is, if you actually care...</span></p>
                    <form action="Contact.htm" method="post" enctype="text/plain">
                      <p align="center"><strong>Your Full Name:</strong><br /><input name="name" type="text" class="style8" size="20" /></p>
                      <p align="center"><strong>Your Email Address:</strong><br /><input name="email" type="text" class="style8" size="20" /></p>
                      <p align="center"><strong>Your City:</strong><br /><input name="city" type="text" class="style8" size="20" /></p>
                      <p align="center">
                        <input name="Send" type="submit" id="Send" value="Send" />
                        <input name="Reset" type="reset" id="Reset" value="Reset" /></p>
                      <?php
if ($_GET['status'] == "success")
  echo '<p align="center" style="color:blue;font-weight:bold">Email sent successfully!</p>';
else if ($_GET['status'] == "mailfail")
  echo '<p align="center" style="color:red;font-weight:bold">Unable to complete form submission. Try again later.</p>';
else if ($_GET['status'] == "formfail")
  echo '<p align="center" style="color:red;font-weight:bold">One or more form fields have not been filled in.</p>'; ?>
                    </form>
                  </td>
                </tr>
              </table>
              <p align="center"><font face="Arial"><strong><a href="http://www.copyrightauthority.com/copyright-symbol">Copyright</a>2006 - 2007  GrIND[1] - All Rights Reserved</strong></font></p>
              <!-- blogs_end -->
            </td>
          </tr>
        </table>
      </div>
    </div>
    <div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:1; left: 26px; top: 496px;"><img src="Images/LMPanel.jpg" width="200" height="250" alt="" /></div>
    <div id="Layer3" style="position:absolute; width:56px; height:111px; z-index:4; left: 60px; top: 523px;"><a href="http://youtube.com/watch?v=ZNMs5QyDOmE" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image33','','Images/RR7Sign.gif',1)"><img src="Images/RR7.jpg" name="Image33" width="134" height="104" border="0" id="Image33" /></a></div>
  </body>
</html>