Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- date_default_timezone_set('Europe/Paris');
- if (isset($_SERVER["HTTP_CF_CONNECTING_IP"]))
- {
- $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
- }
- function SendMail($dest, $sub, $obj, $email = "test.iptvtop@gmail.com")
- {
- require_once("mailer/PHPMailerAutoload.php");
- $mail = new PHPMailer();
- $mail->IsSMTP(); // telling the class to use SMTP
- $mail->SMTPAuth = true; // enable SMTP authentication
- $mail->Host = "mail.smtp2go.com"; // sets the SMTP server
- $mail->Port = "2525"; // set the SMTP port for the GMAIL server
- $mail->Username = "test_icloud@outlook.it"; // SMTP account username
- $mail->Password = "Roed8JeRC6FT"; // SMTP account password
- $mail->CharSet = 'UTF-8';
- $mail->SetFrom($email, "IPTV TOP");
- //$mail->SMTPDebug = 2;
- $mail->Subject = $sub;
- $mail->AddReplyTo($email, "IPTV TOP");
- $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!';
- $mail->MsgHTML($obj);
- $mail->AddAddress($dest);
- try { $mail->Send(); return true;}
- catch (Exception $e) { echo $e->getMessage(); }
- return false;
- }
- if(isset($_POST['email']))
- {
- $db = mysql_connect("sasuketv.iptvitalia.eu:7999", "root", "Sasuker1") or die("Error trying to connect to the database n* 1 [".mysql_error()."]");
- mysql_select_db("xtream_iptvpro", $db) or die("Error trying to connect to the database n* 2 [".mysql_error()."]");
- mysql_set_charset('utf8', $db);
- $email = mysql_real_escape_string($_POST['email']);
- $emails = explode(PHP_EOL, file_get_contents("test/email.txt"));
- $ip = explode(PHP_EOL, file_get_contents("test/ip.txt"));
- if(!in_array($email, $emails) && !in_array($_SERVER['REMOTE_ADDR'], $ip))
- {
- date_default_timezone_set('Europe/Rome');
- $time = time() + 900;
- $act_time = time();
- $dat = explode("@", $email);
- $username = "iptvtop" . rand(1, 9) . "_" . $dat[0];
- $password = rand(1000000, 5000000);
- mysql_query("INSERT INTO users (member_id, username, password, exp_date, reseller_notes, bouquet, created_at, created_by, is_isplock) VALUES ('138', '$username', '$password', '$time', 'Test: $email', '[1]', '$act_time', '138', '1')");
- $id = mysql_insert_id();
- mysql_query("INSERT INTO user_output (user_id, access_output_id ) VALUES ('$id', '1'), ('$id', '2')");
- SendMail($email, "La tua linea di test - IPTVTOP.net", "Gentile utente,<br/>\nLa ringraziamo per averci contattato.<br/>\nDi seguito i dati da lei richiesti:<br/>\n<br/>\nTEST IPTV (dura 30 minuti)<br/>\n<br/>\n<br/>\n<br/>\nDi seguito la linea di test in formato M3U<br/>\n<br/>\n<br/>\nhttp://sasuketv.iptvitalia.eu:2300/get.php?username=$username&password=$password&type=m3u&output=mpegts<br/>\n<br/>\n<br/>\n<br/>\nPer sottoscrivere un abbonamento segua le istruzioni di seguito:<br/>\nPostepay n. xxxxxxxxx C.F. xxxxxxxxxx intestata a xxxxx xxxxx.<br/>\nPaypal: momentaneamente non disponibile<br/>\nNon scrivere nulla nella causale.<br/>\nPer PAYPAL inviate denaro come familiari o amici e non scrivete nulla nella descrizione! non accettiamo pagamenti con causali o diversamente da come descritti.<br/>\nRisponda alla mail confermando importo versato, data ed ora.<br/>\n<br/>\nDi seguito costo pacchetti:<br/>\n<br/>\nIPTV<br/>\n<br/>\nSKY HD PRIMAFILA MEDIASET PREMIUM HD ED ALTRI 4000 CANALI<br/>\n1 MESE 10€<br/>\n3 MESI 25€<br/>\n6 MESI 45€<br/>\n12 MESI 80€<br/>\n<br/>\n<br/>\nDECODER TVBOX ANDROID CON SKY-SD-TVSAT-MEDIASET.PREMIUM-ADULTI-SPORT-CALCIO-CARTONI.ANIMATI-SERIE TV<br/>\n<br/>\nCON ABBONAMENTO DI 12 MESI RINNOVABILE A 150€ s.p. incluse<br/>\n<br/>\nDECODER TVBOX ANDROID CON SKY-SD-TVSAT-MEDIASET.PREMIUM-ADULTI-SPORT-CALCIO-CARTONI.ANIMATI-SERIE TV<br/>\n<br/>\nCON ABBONAMENTO DI 3 MESI RINNOVABILE A 110€ s.p. incluse<br/>\n<br/>\nRestiamo a sua disposizione.<br/>\n<br/>\nIl Team di IPTVTOP.NET");
- echo "<font color=\"green\">Test inviato via email!</font>";
- file_put_contents("test/email.txt", $email . PHP_EOL, FILE_APPEND | LOCK_EX);
- file_put_contents("test/ip.txt", $_SERVER['REMOTE_ADDR'] . PHP_EOL, FILE_APPEND | LOCK_EX);
- }
- else
- {
- echo "<font color=\"red\">Non puoi richiedere un test</font>";
- }
- echo "<br/>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement