Guest User

Untitled

a guest
Jan 24th, 2018
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.01 KB | None | 0 0
  1. <head>
  2.  
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4.  
  5. <link href="img/style.css" rel="stylesheet" type="text/css">
  6.  
  7. <title>Reservation Request submitted</title>
  8.  
  9. <script type="text/JavaScript" src="img/erics.js"></script>
  10.  
  11. <style type="text/css">
  12. <!--
  13. .style2 {color: #339966}
  14. -->
  15. </style>
  16. </head>
  17.  
  18.  
  19.  
  20. <style type="text/css">
  21.  
  22. <!--
  23.  
  24. body {
  25.  
  26. background-color: #E3F2F9;
  27.  
  28. }
  29.  
  30. .style1 {color: #FF0000}
  31.  
  32. -->
  33.  
  34. </style>
  35.  
  36. <script type="text/JavaScript">
  37.  
  38. <!--
  39.  
  40. function MM_swapImgRestore() { //v3.0
  41.  
  42. var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  43.  
  44. }
  45.  
  46.  
  47.  
  48. function MM_preloadImages() { //v3.0
  49.  
  50. var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  51.  
  52. var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  53.  
  54. if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  55.  
  56. }
  57.  
  58.  
  59.  
  60. function MM_findObj(n, d) { //v4.01
  61.  
  62. var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  63.  
  64. d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  65.  
  66. if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  67.  
  68. for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  69.  
  70. if(!x && d.getElementById) x=d.getElementById(n); return x;
  71.  
  72. }
  73.  
  74.  
  75.  
  76. function MM_swapImage() { //v3.0
  77.  
  78. var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  79.  
  80. if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  81.  
  82. }
  83.  
  84. //-->
  85.  
  86. </script>
  87.  
  88. </head>
  89.  
  90.  
  91.  
  92. <body onLoad="MM_preloadImages('img/C1.gif','img/TA1.gif','img/UL1.gif','img/ABT1.gif','img/H1.gif')">
  93.  
  94.  
  95.  
  96. <div align="center">
  97.  
  98.  
  99.  
  100. <table border="0" width="780" id="table1" cellspacing="0" cellpadding="0">
  101.  
  102. <tr>
  103.  
  104. <td valign="top" bgcolor="#FFFFFF">
  105.  
  106. <img border="0" src="img/LOGO.gif" width="327" height="92"></td>
  107.  
  108. <td align="right" valign="bottom" bgcolor="#FFFFFF"><a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','img/H1.gif',1)"><img src="img/HO.gif" name="Image9" width="40" height="29" border="0"></a><a href="abt.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','img/ABT1.gif',1)"><img src="img/ABT0.gif" name="Image8" width="62" height="29" border="0"></a><a href="links.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','img/UL1.gif',1)"><img src="img/UL0.gif" name="Image7" width="79" height="29" border="0"></a><a href="travel.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','img/TA1.gif',1)"><img src="img/TA0.gif" name="Image6" width="89" height="29" border="0"></a><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','img/C1.gif',1)" href="mailto:vacationstation@shaw.ca"><img src="img/CO.gif" name="Image5" width="65" height="29" border="0"></a><a href="contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','img/C1.gif',1)"><img src="img/BLANK.gif" width="11" height="1" border="0"></a> </td>
  109.  
  110. </tr>
  111.  
  112. <tr>
  113.  
  114. <td valign="top" colspan="2">
  115.  
  116. <table width="780" border="0" align="center" cellpadding="0" cellspacing="0" id="table2" height="416">
  117.  
  118. <tr>
  119.  
  120. <td width="164" valign="top" bgcolor="#FFFFFF"><map name="FPMap0">
  121.  
  122. <area href="ski.htm" shape="rect" coords="39, 34, 114, 59">
  123.  
  124. <area href="asp.htm" shape="rect" coords="38, 63, 132, 95">
  125.  
  126. <area href="tc.htm" shape="rect" coords="38, 100, 126, 118">
  127.  
  128. <area href="cyc.htm" shape="rect" coords="38, 124, 126, 145">
  129.  
  130. <area href="villas.htm" shape="rect" coords="37, 149, 117, 169">
  131.  
  132. <area href="req.htm" shape="rect" coords="39, 199, 119, 231">
  133.  
  134. <area href="spa.htm" shape="rect" coords="37, 173, 81, 194">
  135.  
  136. </map>
  137.  
  138. <img src="img/left.gif" width="164" height="265" usemap="#FPMap0" border="0"><br>
  139.  
  140. <img border="0" src="img/p-quote.jpg" width="164" height="123"></td>
  141.  
  142. <td width="604" bgcolor="#FFFFFF" align="left" valign="top">
  143.  
  144. <table border="0" width="100%" id="table3" cellspacing="0" cellpadding="13">
  145.  
  146. <tr>
  147.  
  148. <td align="right">
  149.  
  150. <b><i>
  151.  
  152. <font face="Arial, Helvetica, sans-serif" size="4" color="#339966">
  153.  
  154. RESERVATIONS REQUEST SUBMITTED </font></i></b></td>
  155.  
  156. </tr>
  157.  
  158. <tr>
  159.  
  160. <td>
  161.  
  162. <table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table4">
  163.  
  164. <tr>
  165.  
  166. <td> </td>
  167. </tr>
  168.  
  169. <tr>
  170.  
  171. <td align="center"><font face="Arial, Helvetica, sans-serif" size="3"><b><font color="#FF3333">THANK
  172. YOU </font></b></font></td>
  173. </tr>
  174. <tr>
  175. <td align="center"><span class="style2"><font size="2">Thank you for your interest in using the Vacation Station
  176. to book your vacation. We will respond to your request as soon as possible,
  177. usually within 24 hours.</font></span></td>
  178. </tr>
  179. </table>
  180.  
  181. </td>
  182.  
  183. </tr>
  184.  
  185. </table>
  186.  
  187. </td>
  188.  
  189. <td width="12" align="left" valign="top" bgcolor="#FFFFFF">
  190.  
  191. <img border="0" src="img/BLANK.gif" width="13" height="1"></td>
  192.  
  193. </tr>
  194.  
  195. </table> </td>
  196.  
  197. </tr>
  198.  
  199. <tr>
  200.  
  201. <td height="53" colspan="2" align="center" valign="middle" bgcolor="#276631"><img src="img/CPY.gif" width="302" height="27"> </td>
  202.  
  203. </tr>
  204.  
  205. <tr>
  206.  
  207. <td height="53" colspan="2" align="center" valign="middle" bgcolor="#FFFFFF">
  208.  
  209. <a target="_blank" href="booking.htm">Booking </a> <span class="style1">|</span>
  210.  
  211. <a target="_blank" href="privacy.htm">Privacy Policy</a> </td>
  212.  
  213. </tr>
  214.  
  215. </table>
  216.  
  217.  
  218.  
  219. </div>
  220. <?
  221. function authSendEmail($from, $fromname, $to, $subject, $message, $fname) {
  222. $smtpServer = "mail.tlisoftware.com";
  223. $port = "25";
  224. $timeout = "30";
  225. $password = "11111111";
  226. $username = "reservation@tlisoftware.com";
  227. $localhost = "localhost";
  228. $newLine = "\r\n";
  229. /* * * * CONFIGURATION END * * * * */
  230.  
  231. //Connect to the host on the specified port
  232. $smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
  233. $smtpResponse = fgets($smtpConnect, 515);
  234. if(empty($smtpConnect)) {
  235. $output = "Failed to connect: $smtpResponse";
  236. return $output;
  237. } else {
  238. $logArray['connection'] = "Connected: $smtpResponse";
  239. }
  240.  
  241. //Say Hello to SMTP
  242. fputs($smtpConnect, "HELO $localhost" . $newLine);
  243. $smtpResponse = fgets($smtpConnect, 515);
  244. $logArray['heloresponse'] = "$smtpResponse";
  245.  
  246. //Request Auth Login
  247. fputs($smtpConnect,"AUTH LOGIN" . $newLine);
  248. $smtpResponse = fgets($smtpConnect, 515);
  249. $logArray['authrequest'] = "$smtpResponse";
  250.  
  251. //Send user
  252. fputs($smtpConnect, base64_encode($username) . $newLine);
  253. $smtpResponse = fgets($smtpConnect, 515);
  254. $logArray['authpassword'] = "$smtpResponse";
  255.  
  256. //Send password
  257. fputs($smtpConnect, base64_encode($password) . $newLine);
  258. $smtpResponse = fgets($smtpConnect, 515);
  259. $logArray['authpassword'] = "$smtpResponse";
  260.  
  261. //Email From
  262. fputs($smtpConnect, "MAIL FROM:<$from>" . $newLine);
  263. $smtpResponse = fgets($smtpConnect, 515);
  264. $logArray['mailfromresponse'] = "$smtpResponse";
  265.  
  266. //Email To
  267. fputs($smtpConnect, "RCPT TO:<$to>" . $newLine);
  268. $smtpResponse = fgets($smtpConnect, 515);
  269. $logArray['mailtoresponse'] = "$smtpResponse";
  270.  
  271. //The Email
  272. fputs($smtpConnect, "DATA" . $newLine);
  273. $smtpResponse = fgets($smtpConnect, 515);
  274. $logArray['data1response'] = "$smtpResponse";
  275.  
  276. //Construct Headers
  277. $headers = "MIME-Version: 1.0" . $newLine;
  278. //$headers .= "Content-type: text/html; charset=iso-8859-1" . $newLine;
  279. $headers .= 'Content-Type: multipart/mixed; boundary="----=_MyPart-1A2B3C"' . $newLine;
  280. $headers .= "To: $nameto <$to>" . $newLine;
  281. $headers .= "From: $fromname <$from>" . $newLine;
  282. $message = 'Content-Type: text/html; charset="iso-8859-1"'.$newLine.'Content-Transfer-Encoding: quoted-printable'.$newLine.$newLine.$message;
  283. $message = '------=_MyPart-1A2B3C'.$newLine.$message;
  284. if ( $fname != '' ) {
  285. list($file, $ext) = explode('#',$fname);
  286. $encoded = chunk_split(base64_encode(file_get_contents($file)));
  287. $message .= $newLine.'------=_MyPart-1A2B3C' . $newLine;
  288. $message .= 'Content-Type: application/octet-stream; name="';
  289. $message .= "attachment.".$ext.'"'.$newLine;
  290. $message .= 'Content-Transfer-Encoding: base64'.$newLine.'Content-Disposition: attachment; filename="';
  291. $message .= "attachment.".$ext.'"'.$newLine.$newLine;
  292. $message .= $encoded . $newLine;
  293. }
  294. $message .= $newLine.'------=_MyPart-1A2B3C--';
  295. fputs($smtpConnect, "To: $to\nFrom: $from\r\nSubject: $subject\r\n$headers\r\n\r\n$message\r\n\r\n.\r\n");
  296. $smtpResponse = fgets($smtpConnect, 515);
  297. $logArray['data2response'] = "$smtpResponse";
  298.  
  299. // Say Bye to SMTP
  300. fputs($smtpConnect,"QUIT" . $newLine);
  301. $smtpResponse = fgets($smtpConnect, 515);
  302. $logArray['quitresponse'] = "$smtpResponse";
  303. return "@".join("<br />",$logArray);
  304. }
  305.  
  306. $fname = '';
  307. $msg="<HTML><br><b>First Name :</b>".$_POST['FirstName'];
  308. $msg.="<br><b>Last Name : </b>".$_POST['LastName'];
  309. $msg.="<br><b>Address : </b>".$_POST['address'];
  310. $msg.="<br><b>Phone No. : </b>".$_POST['phone'];
  311. $msg.="<br><b>FAX : </b>".$_POST['fax'];
  312. $msg.="<br><b>Email ID :</b>".$_POST['email'];
  313. $msg.="<br><b>Destination : </b>".$_POST['destination'];
  314. $msg.="<br><b>Departure City : </b>".$_POST['Departure_city'];
  315. $msg.="<br><b>Package : </b>".$_POST['package'];
  316. $msg.="<br><b>Departure Date : </b>".$_POST['depart_date'];
  317. $msg.="<br><b>Return Date: </b>".$_POST['return_date'];
  318. $msg.="<br><b>Travel Party: </b>";
  319. $msg.="<br><b># of Adults : </b>".$_POST['adults'];
  320. $msg.="<br><b># of Children : </b>".$_POST['children'];
  321. $msg.="<br><b>Ages : </b>".$_POST['Ages'];
  322. $msg.="<br><br><b>Require cancellation and medical insurance : </b>".$_POST['insurance'];
  323. $msg.="<br><b>Method of payment : </b>".$_POST['payment'];
  324. $msg.="<br><b>Comments : </b>".$_POST['comments']."</HTML>";;
  325. authSendEmail("reservation@tlisoftware.com", "Reservation", "james@thevacationstation.com", "Reservation Request Form", $msg, $fname);
  326. ?>
  327.  
  328.  
  329.  
  330. </body>
  331.  
  332.  
  333.  
  334. </html>
Add Comment
Please, Sign In to add comment