HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers53/tirnanog.nl/wwwroot/harmonie/index.php
<?php
   function ValidateEmail($email)
   {
      $pattern = '/^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i';
      return preg_match($pattern, $email);
   }

   if($_SERVER['REQUEST_METHOD'] == 'POST')
   {
      $mailto = 'rick.compen@gmail.com';
      $mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
      $subject = 'Enquete Ingevuld';
      $message = 'De volgende enquete is ingevuld op www.tirnanog.nl/harmonie';
      $success_url = './succes.php';
      $error_url = './error.php';
      $error = '';
      $eol = "\n";
      $max_filesize = isset($_POST['filesize']) ? $_POST['filesize'] * 1024 : 1024000;
      $boundary = md5(uniqid(time()));

      $header  = 'From: '.$mailfrom.$eol;
      $header .= 'Reply-To: '.$mailfrom.$eol;
      $header .= 'MIME-Version: 1.0'.$eol;
      $header .= 'Content-Type: multipart/mixed; boundary="'.$boundary.'"'.$eol;
      $header .= 'X-Mailer: PHP v'.phpversion().$eol;
      if (!ValidateEmail($mailfrom))
      {
         $error .= "The specified email address is invalid!\n<br>";
      }

      if (!empty($error))
      {
         $errorcode = file_get_contents($error_url);
         $replace = "##error##";
         $errorcode = str_replace($replace, $error, $errorcode);
         echo $errorcode;
         exit;
      }

      $internalfields = array ("submit", "reset", "send", "captcha_code");
      $message .= $eol;
      foreach ($_POST as $key => $value)
      {
         if (!in_array(strtolower($key), $internalfields))
         {
            if (!is_array($value))
            {
               $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol;
            }
            else
            {
               $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol;
            }
         }
      }

      $body  = 'This is a multi-part message in MIME format.'.$eol.$eol;
      $body .= '--'.$boundary.$eol;
      $body .= 'Content-Type: text/plain; charset=iso-8859-1'.$eol;
      $body .= 'Content-Transfer-Encoding: 8bit'.$eol;
      $body .= $eol.stripslashes($message).$eol;
      if (!empty($_FILES))
      {
          foreach ($_FILES as $key => $value)
          {
             if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] <= $max_filesize)
             {
                $body .= '--'.$boundary.$eol;
                $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol;
                $body .= 'Content-Transfer-Encoding: base64'.$eol;
                $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol;
                $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol;
             }
         }
      }
      $body .= '--'.$boundary.'--'.$eol;
      mail($mailto, $subject, $body, $header);
      header('Location: '.$success_url);
      exit;
   }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Harmonie Sint Antonius</title>
<meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com">
<link rel="stylesheet" href="./index.css" type="text/css">
<link rel="stylesheet" href="./Naamloos1.css" type="text/css">
<!--[if IE]>
<style type="text/css">
   img { behavior: url("pngfix.htc"); }
</style>
<![endif]-->
</head>
<body>
<div id="container">
<div id="wb_Image7" style="position:absolute;left:473px;top:4px;width:215px;height:255px;z-index:14;" align="left">
<img src="images/index_0011.png" id="Image7" alt="" align="top" border="0" style="width:215px;height:255px;"></div>
<div id="wb_Image2" style="position:absolute;left:64px;top:5px;width:343px;height:375px;z-index:15;" align="left">
<img src="images/index_0012.png" id="Image2" alt="" align="top" border="0" style="width:343px;height:375px;"></div>
<div id="wb_Image5" style="position:absolute;left:301px;top:468px;width:269px;height:270px;z-index:16;" align="left">
<img src="images/index_0013.png" id="Image5" alt="" align="top" border="0" style="width:269px;height:270px;"></div>
<div id="wb_Image6" style="position:absolute;left:59px;top:254px;width:384px;height:341px;z-index:17;" align="left">
<img src="images/index_0014.png" id="Image6" alt="" align="top" border="0" style="width:384px;height:341px;"></div>
<div id="wb_Image1" style="position:absolute;left:583px;top:520px;width:361px;height:289px;z-index:18;" align="left">
<img src="images/2__37_1_ms2.rvf_1.jpg" id="Image1" alt="" align="top" border="0" style="width:361px;height:289px;"></div>
<div id="wb_Image3" style="position:absolute;left:709px;top:38px;width:450px;height:440px;z-index:19;" align="left">
<img src="images/index_0015.png" id="Image3" alt="" align="top" border="0" style="width:450px;height:440px;"></div>
<table style="position:absolute;left:273px;top:144px;width:666px;height:414px;z-index:20;border:2px #C0C0C0 solid;background-color:#000000;" cellpadding="0" cellspacing="1" id="Table1">
<tr>
<td align="left" valign="top" style="border:1px #C0C0C0 solid;height:406px;">
&nbsp;</td>
</tr>
</table>
<div id="wb_Image4" style="position:absolute;left:939px;top:420px;width:200px;height:133px;z-index:21;" align="left">
<img src="images/dirigent2.jpg" id="Image4" alt="" align="top" border="0" style="width:200px;height:133px;"></div>
<div id="wb_Text2" style="position:absolute;left:272px;top:103px;width:761px;height:29px;z-index:22;" align="left">
<font style="font-size:24px" color="#000000" face="Vivaldi">Harmonie Sint-Antonius&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; Harmonie Les Echos de Dorplein</font></div>
<div id="wb_Text7" style="position:absolute;left:317px;top:160px;width:554px;height:28px;z-index:23;" align="left">
<font style="font-size:11px" color="#FFFFFF" face="Arial">Zoals op de vergadering afgesproken de <u>laatste</u> enquete die door zo veel mogelijk mensen moet worden ingevuld. Vul de dagen in dat je <u>bereid bent</u> om te komen!</font></div>
<div id="wb_Form1" style="position:absolute;left:314px;top:206px;width:407px;height:240px;z-index:24">
<form name="Form1" method="post" action="<?php echo basename(__FILE__); ?>" enctype="multipart/form-data" id="Form1">
<div id="wb_Text1" style="position:absolute;left:10px;top:15px;width:58px;height:14px;z-index:0;" align="left">
<font style="font-size:11px" color="#E6E6FA" face="Arial">Dinsdag</font></div>
<input type="checkbox" id="Checkbox1" name="Dinsdag" value="on" style="position:absolute;left:78px;top:15px;z-index:1">
<div id="wb_Text3" style="position:absolute;left:10px;top:40px;width:58px;height:14px;z-index:2;" align="left">
<font style="font-size:11px" color="#FFFFFF" face="Arial">Woensdag</font></div>
<input type="checkbox" id="Checkbox2" name="Woensdag" value="on" style="position:absolute;left:78px;top:40px;z-index:3">
<div id="wb_Text4" style="position:absolute;left:10px;top:65px;width:58px;height:14px;z-index:4;" align="left">
<font style="font-size:11px" color="#FFFFFF" face="Arial">Donderdag</font></div>
<input type="checkbox" id="Checkbox3" name="Donderdag" value="on" style="position:absolute;left:78px;top:65px;z-index:5">
<div id="wb_Text5" style="position:absolute;left:10px;top:90px;width:58px;height:14px;z-index:6;" align="left">
<font style="font-size:11px" color="#FFFFFF" face="Arial">Instrument</font></div>
<input type="text" id="Editbox1" style="position:absolute;left:78px;top:90px;width:198px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:7" name="Instrument" value="">
<div id="wb_Text6" style="position:absolute;left:10px;top:115px;width:58px;height:14px;z-index:8;" align="left">
<font style="font-size:11px" color="#FFFFFF" face="Arial">Naam</font></div>
<input type="text" id="Editbox2" style="position:absolute;left:78px;top:115px;width:198px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:9" name="Naam" value="">
<div id="wb_Text8" style="position:absolute;left:10px;top:140px;width:58px;height:14px;z-index:10;" align="left">
<font style="font-size:11px" color="#FFFFFF" face="Arial">Harmonie</font></div>
<input type="text" id="Editbox3" style="position:absolute;left:78px;top:140px;width:198px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:11" name="Harmonie" value="">
<input type="submit" id="Button1" name="" value="Verzend" style="position:absolute;left:79px;top:166px;width:96px;height:25px;font-family:Arial;font-size:13px;z-index:12">
<input type="reset" id="Button2" name="" value="Reset" style="position:absolute;left:79px;top:193px;width:96px;height:25px;font-family:Arial;font-size:13px;z-index:13">
</form>
</div>
</div>
</body>
</html>