CloudTheWolf

Submit_Form.php

Jan 4th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.49 KB | None | 0 0
  1. <?php
  2.  
  3. if (isset($_SESSION['token']) &&
  4.     $_POST['token'] == $_SESSION['token'])
  5. {
  6.     $fullname = $_POST('Full-Name'); //Users Full Name
  7.     $customID = $_POST('customID');  //Users Dashboard ID For Freedom
  8.     $ChannelUserName = $_POST('ChannelUserName'); //Channel Username Or ID
  9.     $noUser = $_POST('noUser'); //check if user has selected to submit channel ID
  10.     $views = $_POST('views'); //Current Views
  11.     $subs = $_POST('subs'); // Current Subs
  12.     $netfrom = $_POST('netfrom'); // Transfer From
  13.     $netto = $_POST('netto'); // Transfer To
  14.  
  15.     $sendto = '[email protected]';
  16.     $sendfrom ='[email protected]';
  17.     $subject = 'Network Transfer Request From ' & $fullname;
  18. $headers = "From: " . $sendfrom . "\r\n";
  19. $headers .= "MIME-Version: 1.0\r\n";
  20. $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
  21.  
  22.  
  23. $message = 'Name: " . $fullname . ";
  24. $message .= "Custom ID: " . $customID . "\r\n";
  25. $message .= "Channel URL: https://youtube.com/user/" . $ChannelUserName . "\r\n";
  26. $message .= "Views: " . $views . "\r\n";
  27. $message .= "Subscribers: " . $subs . "\r\n";
  28. $message .= "Current Network: " . $netfrom . "\r\n";
  29. $message .= "New Network: " . $netto . "\r\n"';
  30.  
  31. mail($sendto, $subject, $message, $headers);
  32.  
  33. header ('location: http://transfer.networkstudios.tv/index.php?success=true');
  34. }
  35.  
  36. $token_age = time() - $_SESSION['token_time'];
  37.  
  38. if ($token_age <= 300)
  39. {
  40.     header ('location: http://transfer.networkstudios.tv/index.php?fail=true');
  41. }
  42. ?>
Advertisement
Add Comment
Please, Sign In to add comment