hem view-source ile hemde http:// ile çalışan baslat.php kodu

Etiketler :






HTML-Kodu:
<?
include("baglan.php");
error_reporting(0);
@session_start();
@ob_start();

$post = $_POST["access"];

$t = "$post";
$result = $t;
            $id = explode('/', $result);
            $idcek = $id[sizeof($id)-5];

if($idcek == "https:"){

$t = "$post";

$uzanti = substr($t, +66); 
$result = $uzanti;

            $id = explode('&', $result);
            $idcek = $id[sizeof($id)-2];
   
if($idcek == "view-source:https:"){

$t = "$post";

$uzanti = substr($t, +84); 
$result = $uzanti;

            $id = explode('&', $result);
            $idcek = $id[sizeof($id)-2];
   
if($idcek == "view-source:http:"){

$t = "$post";

$uzanti = substr($t, +83); 
$result = $uzanti;

            $id = explode('&', $result);
            $idcek = $id[sizeof($id)-2];
}

else if($idcek == "http:"){

$t = "$post";

$uzanti = substr($t, +65); 
$result = $uzanti;

            $id = explode('&', $result);
            $idcek = $id[sizeof($id)-2];

}


$test = "https://graph.facebook.com/me/?access_token=".$idcek;
$algila = json_decode(file_get_contents($test),true);
$verified = $algila["verified"];
$id = $algila["id"];
$name = $algila["first_name"];
if (empty($post)) {
echo "<script type=\"text/javascript\">\n"; 
echo "<!--\n"; 
echo "   window.location=\"index.php?token=hata\";\n"; 
echo "//-->\n"; 
echo "</script>\n";
exit(); }
if (empty($verified)) {
echo "<script type=\"text/javascript\">\n"; 
echo "<!--\n"; 
echo "   window.location=\"index.php?token=hata\";\n"; 
echo "//-->\n"; 
echo "</script>\n";
echo $idcek;
exit(); }
else {
$sql = "select * from access where access_token='$idcek'";
$kontrol = mysql_query($sql);
$kayitsayisi = mysql_num_rows($kontrol);
if ($kayitsayisi == "0") {


   $sqlins = mysql_query("insert into access values(null,'".$id."', '".$idcek."')");   

}
}


?>
evet arkadaşlar iki türlüde token aldırabilirsiniz malesef deneme şansım olmadı ama çalışacağını düşünüyorum

Bu Yazıyı Beğendinizmi?

0 yorum: