[PHP] Scan Username Yahoo (4 Chars)
<?php
if(isset($_POST["ajax"]) && $_POST["ajax"]==1 && isset($_POST["id"]))
{
$id=$_POST["id"];
if($source=@file_get_contents("https://eu.edit.yahoo.com/reg_json?PartnerName=yahoo_default&RequestVersion=1&AccountID=".$id."@yahoo.fr&GivenName=&FamilyName=&ApiName=ValidateFields&intl=fr&".rand(1000,9999).rand(100,999)))
{
if(strpos(" $source",'"ResultCode":"SUCCESS"'))
{
echo "OK";
}
else
{
echo "NO";
}
}
else
{
echo "0";
}
exit;
}
?>
<head>
<title>4 Chars</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Sói Đại Ka" />
<style type="text/css">
body {font-family: Arial; font-size:10pt;}
#ListOfChar {cursor:pointer;}
#ListOfChar .Item {float:left;width:100px; text-align:center; border:1px dotted #cccccc; height:20px;margin:1px;}
#ListOfChar .Item:hover {background:#CCCCCC;}
#ListOfChar .Green {float:left;width:100px; text-align:center; border:1px dotted #cccccc; height:20px;margin:1px;background:#dfffd5; color:#19560a; font-weight:bold;}
#ListOfChar .Black {float:left;width:100px; text-align:center; border:1px dotted #cccccc; height:20px;margin:1px;color:#000000;background:#CCCCCC; text-decoration: line-through;}
#CheckAll {float:left;background:#dfffd5;font-size:12pt; padding:10px;}
#CheckAll:hover {background:#0e500e;color:#FFFFFF;}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
var Loading=0;
var Auto=0;
$(document).ready(function()
{
$(".Item").click(function()
{
CheckID($(this).html(),$(this).attr("id"));
});
$("#CheckAll").click(function()
{
if($(this).html()=="Check All")
{
$(this).html("Stop Checking");
Auto=1;
CheckAll();
}
else
{
$(this).html("Check All");
Auto=0;
}
});
});
function CheckAll()
{
$(".Item").each(function()
{
$(this).click();
});
if(Auto==1)
{
var t = setTimeout("CheckAll();",1000);
}
}
function CheckID(id,eid)
{
if(Loading==1){return false;}
if($("#"+eid).attr("class")!="Item"){return false;}
$("#"+eid).html("<b>Loading...</b>");
Loading=1;
$.ajax({
url:"?",
type:"POST",
dataType:"html",
data:{"ajax":1,"id":id},
success:function(source)
{
if(source=="OK")
{
$("#"+eid).html(id);
$("#"+eid).removeClass("Item").addClass("Green");
}
else if(source=="0")
{
$("#"+eid).html(id);
}
else
{
$("#"+eid).html(id);
$("#"+eid).removeClass("Item").addClass("Black");
}
Loading=0;
}
});
}
</script>
</head>
<body>
<form method="post" action="">
<div style="padding:10px 0px 10px 0px;">
<h1>Scan Y!M 4 ký tự</h1>
<input type="text" name="ListOfChar"/> (Tối thiểu 4 ký tự) <input type="submit"/>
</div>
<div id="ListOfChar">
<?php
if(isset($_POST["ListOfChar"]))
{
echo "<div id='CheckAll'>Check All</div><div style='clear:both'></div>";
$List=trim(strtolower($_POST["ListOfChar"]));
$List=str_replace(array("`","~","!","@","#","quot;,"%","^","&","*","(",")","-","_","=","+","[","{","]","}",";",":","'","\"",",","<",".",">","/","?"),"",$List);
if(strlen($List)>=4)
{
$array=array();
for($i=0;$i<strlen($List);$i++)
{
if(!in_array($List[$i],$array))
{
array_push($array,$List[$i]);
}
}
$q=0;
for($i=0;$i<count($array);$i++)
{
for($n=0;$n<count($array);$n++)
{
if($array[$n]==$array[$i]){continue;}
for($x=0;$x<count($array);$x++)
{
if($array[$x]==$array[$n]){continue;}
for($z=0;$z<count($array);$z++)
{
if($array[$z]==$array[$x]){continue;}
echo "<div class='Item' id='Item$q'>".$array[$i].$array[$n].$array[$x].$array[$z]."</div>";
$q++;
}
}
}
}
}
}
?>
</div>
<div style="clear:both; padding-top:10px;"></div>
<div>
©2014 by KenjiVN
</div>
</form>
</body>
if(isset($_POST["ajax"]) && $_POST["ajax"]==1 && isset($_POST["id"]))
{
$id=$_POST["id"];
if($source=@file_get_contents("https://eu.edit.yahoo.com/reg_json?PartnerName=yahoo_default&RequestVersion=1&AccountID=".$id."@yahoo.fr&GivenName=&FamilyName=&ApiName=ValidateFields&intl=fr&".rand(1000,9999).rand(100,999)))
{
if(strpos(" $source",'"ResultCode":"SUCCESS"'))
{
echo "OK";
}
else
{
echo "NO";
}
}
else
{
echo "0";
}
exit;
}
?>
<head>
<title>4 Chars</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Sói Đại Ka" />
<style type="text/css">
body {font-family: Arial; font-size:10pt;}
#ListOfChar {cursor:pointer;}
#ListOfChar .Item {float:left;width:100px; text-align:center; border:1px dotted #cccccc; height:20px;margin:1px;}
#ListOfChar .Item:hover {background:#CCCCCC;}
#ListOfChar .Green {float:left;width:100px; text-align:center; border:1px dotted #cccccc; height:20px;margin:1px;background:#dfffd5; color:#19560a; font-weight:bold;}
#ListOfChar .Black {float:left;width:100px; text-align:center; border:1px dotted #cccccc; height:20px;margin:1px;color:#000000;background:#CCCCCC; text-decoration: line-through;}
#CheckAll {float:left;background:#dfffd5;font-size:12pt; padding:10px;}
#CheckAll:hover {background:#0e500e;color:#FFFFFF;}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
var Loading=0;
var Auto=0;
$(document).ready(function()
{
$(".Item").click(function()
{
CheckID($(this).html(),$(this).attr("id"));
});
$("#CheckAll").click(function()
{
if($(this).html()=="Check All")
{
$(this).html("Stop Checking");
Auto=1;
CheckAll();
}
else
{
$(this).html("Check All");
Auto=0;
}
});
});
function CheckAll()
{
$(".Item").each(function()
{
$(this).click();
});
if(Auto==1)
{
var t = setTimeout("CheckAll();",1000);
}
}
function CheckID(id,eid)
{
if(Loading==1){return false;}
if($("#"+eid).attr("class")!="Item"){return false;}
$("#"+eid).html("<b>Loading...</b>");
Loading=1;
$.ajax({
url:"?",
type:"POST",
dataType:"html",
data:{"ajax":1,"id":id},
success:function(source)
{
if(source=="OK")
{
$("#"+eid).html(id);
$("#"+eid).removeClass("Item").addClass("Green");
}
else if(source=="0")
{
$("#"+eid).html(id);
}
else
{
$("#"+eid).html(id);
$("#"+eid).removeClass("Item").addClass("Black");
}
Loading=0;
}
});
}
</script>
</head>
<body>
<form method="post" action="">
<div style="padding:10px 0px 10px 0px;">
<h1>Scan Y!M 4 ký tự</h1>
<input type="text" name="ListOfChar"/> (Tối thiểu 4 ký tự) <input type="submit"/>
</div>
<div id="ListOfChar">
<?php
if(isset($_POST["ListOfChar"]))
{
echo "<div id='CheckAll'>Check All</div><div style='clear:both'></div>";
$List=trim(strtolower($_POST["ListOfChar"]));
$List=str_replace(array("`","~","!","@","#","quot;,"%","^","&","*","(",")","-","_","=","+","[","{","]","}",";",":","'","\"",",","<",".",">","/","?"),"",$List);
if(strlen($List)>=4)
{
$array=array();
for($i=0;$i<strlen($List);$i++)
{
if(!in_array($List[$i],$array))
{
array_push($array,$List[$i]);
}
}
$q=0;
for($i=0;$i<count($array);$i++)
{
for($n=0;$n<count($array);$n++)
{
if($array[$n]==$array[$i]){continue;}
for($x=0;$x<count($array);$x++)
{
if($array[$x]==$array[$n]){continue;}
for($z=0;$z<count($array);$z++)
{
if($array[$z]==$array[$x]){continue;}
echo "<div class='Item' id='Item$q'>".$array[$i].$array[$n].$array[$x].$array[$z]."</div>";
$q++;
}
}
}
}
}
}
?>
</div>
<div style="clear:both; padding-top:10px;"></div>
<div>
©2014 by KenjiVN
</div>
</form>
</body>
[PHP] Scan Username Yahoo (4 Chars)
Reviewed by Nguyen Nam Hong
on
10:33 AM
Rating: