Advertisement
TheMusiKid

PHP Help.

May 31st, 2011
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1. <?php
  2.     //LOG
  3.     $fn = $_GET["File"];
  4.     if ($fn != '') {
  5.         $fh = fopen($fn, 'w') or die("can't open file");
  6.        
  7.         $PageTitle = $_GET["PageTitle"];
  8.         $CInfo = $_GET["CInfo"];
  9.         $DInfo = $_GET["DInfo"];
  10.         $UInfo = $_GET["UInfo"];
  11.        
  12.         fwrite($fh, "<html>\n<head>\n<title>".$PageTitle."</title>\n</head>\n<body>\n");
  13.         fwrite($fh, $CInfo."<br />\n<br />\n");
  14.         fwrite($fh, $DInfo."<br />\n<br />\n");
  15.         fwrite($fh, $UInfo."</body>\n</html>\n");
  16.         fclose($fh);
  17.        
  18.         //EMAIL
  19.         $CEmail = $_GET["CEmail"];
  20.         $Body = $_GET["Body"];
  21.         $Subject = $_GET["Subject"];
  22.        
  23.         $from = "usbfind@mc-mycraft.com"
  24.        
  25.         $headers  = "MIME-Version: 1.0" . "\r\n";
  26.         $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
  27.         $headers .= "From: USBFind <usbfind@mc-mycraft.com>" . "\r\n";
  28.        
  29.         mail($CEmail, $Subject, $Body, $headers);
  30.     }
  31.     else { echo "This page was not intended for direct viewing."; }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement