<?php
session_start();
error_reporting(0);
function file_get_contents_curl($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
if(isset($_POST['source'])){
preg_match_all('/Tetris\.config\.ticket \= (.*)\;/', $_POST['source'], $ticketoutput);
preg_match_all('/\\\'(.*?)\\\'/', $ticketoutput[1][0], $ticketoutput2);
$ticket_tetris = str_replace("\\", "", $ticketoutput2[1][0]);
preg_match_all('/Tetris\.config\.userID = (.*)\;/' , $_POST['source'] , $user);
preg_match_all('/\\\'(.*?)\\\'/', $user[1][0], $user2);
$user_tetris = str_replace("\\", "", $user2[1][0]);
if(!empty($user_tetris) || !empty($ticket_tetris)){
$_SESSION['ticket'] = $ticket_tetris;
$_SESSION['user'] = $user_tetris;
}
else{
$error = "CODE 331 Invalid Source Code";
}
}
if(isset($_POST['getCoin'])){
$cash = $_POST['cash'];
if($cash > 5 || $cash <= 0){
$error = "CODE 131 Invalid CASH Number";
}
if(empty($error)){
$i = 0;
$cash = 5 * $cash;
do{
$i++;
$urls = 'http://tbc.tetrisfb.com/api/purchase?ticket='.$_SESSION['ticket'].'&fbuid='.$_SESSION['user'].'¤cyType=2¤cyValue=1';
$file_content = file_get_contents_curl($urls);
}
while ($i <= $cash);
session_unset();
$done = "Done! Refresh your tetris for Changes";
}
}
?>
<html>
<head>
<title>Tetris Battle : Free Cash</title>
<link rel="SHORTCUT ICON" href="http://www.zulfaqar.my/wp-content/uploads/2013/03/ZK_new_logo-150x150.png"/>
<link href='http://fonts.googleapis.com/css?family=Montserrat+Subrayada' rel='stylesheet' type='text/css'>
<style type="text/css">
html {
background: url('bg.png') no-repeat center center fixed;
filter: progid
-ms-filter: "progid
}
body{
color:#fff;
}
exe{
font-family: 'Montserrat Subrayada', sans-serif;
font-size:25px;
margin:0px auto;
}
textarea {
resize: none;
width:80%;
height:70%;
background:transparent;
color:#fff;
outline:none;
margin-top:5px;
}
#nice{
float:right;
margin-right:150px;
cursor
}
.error{
color:red;
margin-top:20px;
}
.success{
color:green;
margin-top:20px;
}
.button-link {
padding: 10px 15px;
background: #4479BA;
color: #FFF;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
border: solid 1px #20538D;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
-webkit-transition-duration: 0.2s;
-moz-transition-duration: 0.2s;
transition-duration: 0.2s;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
.button-link:hover {
background: #356094;
border: solid 1px #2A4E77;
text-decoration: none;
}
.button-link:active {
-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
-moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
background: #2E5481;
border: solid 1px #203E5F;
}
#content{
margin-top:50px;
width:80%;
border:1px #fff solid;
padding:10px;
font-size:16px;
}
</style>
</head>
<body><center>
<exe><HTML><FONT COLOR="#FF0000">T</FONT><FONT COLOR="#FF3200">e</FONT><FONT COLOR="#FF6400">t</FONT><FONT COLOR="#FF9600">r</FONT><FONT COLOR="#FFC800">i</FONT><FONT COLOR="#FFFA00">s</FONT><FONT COLOR="#FFff00"> </FONT><FONT COLOR="#CDff00">F</FONT><FONT COLOR="#9Bff00">r</FONT><FONT COLOR="#69ff00">e</FONT><FONT COLOR="#37ff00">e</FONT><FONT COLOR="#05ff00"> </FONT><FONT COLOR="#00ff00">C</FONT><FONT COLOR="#00ff32">a</FONT><FONT COLOR="#00ff64">s</FONT><FONT COLOR="#00ff96">h</FONT></HTML></exe>
<?php
if(empty($_SESSION['user'])){
if(isset($error)){ echo '<div class="error">ERROR : '.$error.'</div>'; }
if(isset($done)){ echo '<div class="success">SUCCESS : '.$done.'</div>'; }
?>
<br/>
<form action="" method="post">
<textarea rows="4" cols="50" name="source">
Copy your tbc.tetrisfb.com source code & Paste it here ...

</textarea>
</center>
<input id='nice' class='button-link' type='submit' name='gettoken'/>
</form>
<?php
}else{
?>
<div id='content'>
Your Detail :<br/>
<img src="http://graph.facebook.com/<?php echo $_SESSION['user']; ?>/picture?type=normal" /> <br/>
Full Name :
<?php
$url = 'http://graph.facebook.com/'.$_SESSION['user'].'?fields=name';
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_URL,$url);
$result = curl_exec($ch);
curl_close($ch);
$ProfileFacebook = json_decode($result);
echo $ProfileFacebook->name;
?>
<div style="display:block;height:40px;"></div>
<table border="0">
<tr>
<th><img src="123.jpg" /></th>
<th>
<form action="" method="post">
<table border="0">
<tr>
<th>
<font color="red">MAXIMUM CASH : 5 </font><br/>
<b>Cash :</b> <input type="number" name="cash"/><br/>
</th>
</tr>
<tr>
</tr>
</table>
</th>
</tr>
</table>
<br/>
<input class='button-link' type='submit' name='getCoin' value="Submit"/>
</div>
</form>
<?php
}
?>
</body>
</html>
<a href="http://info.flagcounter.com/oIfV"><img src="http://s06.flagcounter.com/count/oIfV/bg_FFFFFF/txt_000000/border_CCCCCC/columns_8/maxflags_40/viewers_0/labels_1/pageviews_1/flags_1/" alt="Flag Counter" border="0"></a>






