Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $dbpass = md5($inputpass);
- $transid = mysql_real_escape_string($_POST['trans_id']);
- $paypal = mysql_real_escape_string($_POST['paypal']);
- $varmonths = $_POST['months'];
- if ($varmonths == 0) {
- $months = 'lifetime';
- }else{
- $addmonths = $varmonths * 2592000;
- $time = time();
- $months = $time + $addmonths;
- }
- $sql="INSERT INTO users (username,password,staff,trans_id,paypal,months,active)VALUES ('$inputuser','$dbpass', '$inputtype', '$transid', '$paypal', '$months', 'activated')";
- mysql_query($sql) OR DIE(mysql_error());
- }
- if else = true;
- {
- $subject = "Login Information";
- $headers = "From: test@test.com\r\nReply-To: test@test.com";
- $body = '===========================================================================
- Username:' . $inputuser .
- 'Password:' . $inputpass .
- 'PayPal:' . $paypal .
- 'Transaction ID:'. $transid .
- '===========================================================================';
- if (mail($paypal, $subject, $body, $headers)) {
- echo('<strong>' . $inputuser . '</strong> has been added to the database with the password: <strong>' . $inputpass . '</strong>.');
- echo('Login Details Sent to: <strong>' . $paypal . '</strong>');
- } else {
- echo('<strong>' . $inputuser . '</strong> has been added to the database with the password: <strong>' . $inputpass . '</strong>.');
- echo('Login Details' '<strong> Not </strong> Sent to: <strong>' . $paypal . '</strong>');
- }
- }
- }//If Submit isset
- if(isset($_POST['delete'])){
- $checkbox=$_POST['checkbox'];
- //exit;
- for($i=0;$i<count($checkbox);$i++){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement