Adobe tiene la herramienta definitiva para tus videos borrosos
Hace 31 minutos
<?
function auth($dir, $password) {
$img = imagecreatefromjpeg($dir);
if (is_resource($img)) {
$x = imagesx($img);
$y = imagesy($img);
$bin = '';
$tmp = '';
for ($i = 0; $i < $y; $i++) {
for ($j = 0; $j < $x; $j++) {
$colors = imagecolorsforindex($img, imagecolorat($img, $j, $i));
$r = $colors['red'] & 1;
$g = $colors['green'] & 1;
$b = $colors['blue'] & 1;
$bin .= "$r$g$b";
}
}
$bin = str_replace('00000000', '', $bin);
$i = 0;
$len = strlen($bin);
while ($i < $len) {
$tmp .= chr(bindec(substr($bin, $i, 8)));
$i += 8;
}
if ($password === $tmp) return true;
else return false;
} else {
return false;
}
}
if(isset($_POST[login]))
{
$imagen=$_POST[url];
$imagen=substr($imagen,strlen($imagen)-3);
if($imagen=="jpg")
{
if(($_POST[user]=="admin") && (auth($_POST[url],"??<??}Dv?n6?U??'?????m??d??")))
{
echo "<b>estas logeado</b>";
}
else
echo "usuario i/o contrase?a incorrecta ^^,";
}
else
echo "usuario i/o contrase?a incorrecta ^^,";
}
else{
?>
<form action="" method="post">
<center>
<table border="1" width="419px" height="387px">
<tr>
<td background="./images/header.jpg" >
<p><img src="./images/login.jpg" alt="login"/> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
<tr>
<td>
<div align="center">Usuario:
<input type="text" name="user">
</div></td>
</tr>
<tr>
<td>
<div align="center">Password:
<input type="text" name="url">
</div></td>
</tr>
<tr>
<td valign="top">
<div align="center">
<input type="submit" name="login" value="login">
</div></td>
</tr>
</table>
</center>
</form>
<?
}
?>
687474703A2F2F7777772E6573746164697374696361736772617469732E636F6D2F65737461646973746963617320677261746973 |
Estadisticas Gratis |