Reparer une source PHP ??
am1n-0s
Messages postés
13
Statut
Membre
-
Kemich Messages postés 211 Statut Membre -
Kemich Messages postés 211 Statut Membre -
Bonjour,
j'ai un problem : Erreur PHP d'une source , je suis un debutant on PHP , donc qlq il peux m'aider SVP !!
je croi que <php & ?> , elle est pas dan la source
merci d'avance
File.php :
<head>
<title>MD5 Encryption & Decryption</title>
<link href="images/style.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="MD5, Crack, education, encryption, decryption">
<meta name="description" content="Crack the hardcoded md5.">
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" background="images/rep_til.jpg" style="background-repeat:repeat-x; background-position:top left ">
<tr>
<td> ;;</td>
<td width="714" align="left" valign="top"><div style="padding-left:0px; padding-top:92px">
<table width="714" border="0" cellpadding="0" cellspacing="0" background="images/rep_lner_1.jpg">
<tr>
<td height="90" align="left" valign="top"><img src="images/mail_service.jpg" width="714" height="90"></td>
</tr>
<tr>
<td height="23" align="left" valign="top" background="images/top_back_2.jpg"><div style="padding-left:35px; padding-top:2px"></div></td>
</tr>
';
require_once('config.php');
$url = 'http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['SCRIPT_NAME'],0,strlen($_SERVER['SCRIPT_NAME'])-8);
if (isset($_GET["act"])) {
$currentpage = $_GET["act"];
} elseif (isset($_POST["act"])) {
$currentpage = $_POST["act"];
} else {
$currentpage = "home";
}
switch ($currentpage) {
case "home":
showPageHome();
break;
case "encrypt":
showPageEncrypt();
break;
case "decrypt":
showPagedecrypt();
break;
showPageHome();
break;
}
;echo '';
function showPageHome() {
require_once('config.php');
$query = "SELECT * FROM `md5` ORDER BY id DESC";
$result = mysql_query($query) or die("Query failed: " . mysql_error());
$row = mysql_fetch_array($result);
if (!$row) {
$no = 0;
} else {
$no = $row['id'];
}
;echo '
<tr>
<td align="left" valign="top" background="images/back_right_1.jpg" style="background-position:top right; background-repeat:no-repeat "><table width="714" border="0" cellpadding="0" cellspacing="0" background="images/back_left.jpg" style="background-repeat:no-repeat; background-position:top left ">
<tr align="left" valign="top">
<td width="405"><table width="405" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><div style="padding-left:27px; padding-top:0px">
<table width="366" border="0" cellpadding="0" cellspacing="0" background="images/rep_line_1.jpg">
<tr>
<td height="59" align="left" valign="top" background="images/top_back.jpg"><div style="padding-left:32px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">MD5 Encryption ;;</span></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top" background="images/bottom_2.jpg" style="background-repeat:no-repeat; background-position:bottom left "><div style="padding-left:32px; padding-top:2px; padding-bottom:23px">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="127"><table width="105" border="0" cellspacing="0" cellpadding="0">
<form action="'; echo $_SERVER['PHP_SELF']; ;echo '" method="post">
<tr>
<td height="17" align="left" valign="bottom"><span class="style7">Letter & number:</span></td>
</tr>
<tr>
<td align="left" valign="bottom"><span class="style8">
<input type="text" name="encrypt" style="width:100px; height:19px; font-family:tahoma; font-size:10px " size="32" maxlength="32">
</span></td>
</tr>
<tr>
<td height="26" align="left" valign="bottom"><input type="hidden" name="act" value="encrypt"><input type="submit" value="Encrypt"></td>
</tr>
</form>
</table></td>
<td><div style="padding-left:0px; padding-top:9px; line-height:11px"><span class="style10"><strong>Direction:</strong><br>
Paste the letter & number into the box and click
encrypt</span></div>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top"><div style="padding-left:27px; padding-top:0px">
<table width="366" border="0" cellpadding="0" cellspacing="0" background="images/rep_line_1.jpg">
<tr>
<td height="59" align="left" valign="top" background="images/top_back.jpg"><div style="padding-left:32px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">MD5 Decryption ;;</span></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top" background="images/bottom_2.jpg" style="background-repeat:no-repeat; background-position:bottom left "><div style="padding-left:32px; padding-top:2px; padding-bottom:23px">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="127"><table width="105" border="0" cellspacing="0" cellpadding="0">
<form action="'; echo $_SERVER['PHP_SELF']; ;echo '" method="post">
<tr>
<td height="17" align="left" valign="bottom"><span class="style7">MD5:</span></td>
</tr>
<tr>
<td align="left" valign="bottom"><span class="style8">
<input type="text" name="decrypt" style="width:100px; height:19px; font-family:tahoma; font-size:10px " size="32" maxlength="32">
</span></td>
</tr>
<tr>
<td height="26" align="left" valign="bottom"><input type="hidden" name="act" value="decrypt"><input type="submit" value="Decrypt"></td>
</tr>
</form>
</table></td>
<td><div style="padding-left:0px; padding-top:9px; line-height:11px"><span class="style10"><strong>Direction:</strong><br>
Paste the md5 into the box and click
decrypt</span></div>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="center" valign="top"><span class="style10">Total
number of '; echo "<strong>$no</strong>"; ;echo ' cracked md5</span></td>
</tr>
</table></td>
';
}
function showPageEncrypt() {
require_once('config.php');
$query = "SELECT * FROM `md5` ORDER BY id DESC";
$result = mysql_query($query) or die("Query failed: " . mysql_error());
$row = mysql_fetch_array($result);
if (!$row) {
$no = 0;
} else {
$no = $row['id'];
}
$encrypt = $_POST['encrypt'];
$encrypted = md5($encrypt);
$encrypt_query = "SELECT * FROM `md5` WHERE md5='$encrypted'";
$encrypt_result = mysql_query($encrypt_query) or die("Query failed: " . mysql_error());
$encrypt_row = mysql_fetch_array($encrypt_result);
if (!$encrypt_row) {
mysql_query("INSERT INTO `md5` VALUES ('', '$encrypt', '$encrypted')") or die (mysql_error());
}
;echo '<script language=Javascript>
<!--
var copytoclip=1
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=\'\'",2400);
}
}
-->
</script>
<tr>
<td align="left" valign="top" background="images/back_right_1.jpg" style="background-position:top right; background-repeat:no-repeat "><table width="714" border="0" cellpadding="0" cellspacing="0" background="images/back_left.jpg" style="background-repeat:no-repeat; background-position:top left ">
<tr align="left" valign="top">
<td width="405"><table width="405" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><div style="padding-left:27px; padding-top:0px">
<table width="366" border="0" cellpadding="0" cellspacing="0" background="images/rep_line_1.jpg">
<tr>
<td height="59" align="left" valign="top" background="images/top_back.jpg"><div style="padding-left:32px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">MD5 Encryption ;;</span></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top" background="images/bottom_2.jpg" style="background-repeat:no-repeat; background-position:bottom left "><div style="padding-left:32px; padding-top:2px; padding-bottom:23px">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="127"><table width="105" border="0" cellspacing="0" cellpadding="0">
<tr>
';
if (!$encrypt) {
echo "<span class='style33'>Please fill up the blank.</span>";
} else {
;echo ' <td height="17" align="left" valign="bottom"><span class="style7">MD5 encrypted:</span></td>
</tr>
<tr>
<td align="left" valign="bottom"><span class="style8"">
<form name=form1>
<textarea name=select cols=12 rows="1">'; echo "$encrypted"; ;echo '</textarea>
<A class=high href="javascript:HighlightAll(\'form1.select\')"><input type="submit" name="copy" value="Select"></A>
</form>
</span>
</td>
</tr>
';
}
;echo ' <tr>
<td height="26" align="left" valign="bottom"></td>
</tr>
</table></td>
<td><div style="padding-left:0px; padding-top:9px; line-height:11px"><span class="style10"><strong>Direction:</strong><br>
Click select button to highlight the encrypted result, then copy it to your clipboard (Ctrl+C)
</span></div>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="center" valign="top"><span class="style10">Total
number of '; echo "<strong>$no</strong>"; ;echo ' cracked md5</span></td>
</tr>
</table></td>
';
}
function showPageDecrypt() {
require_once('config.php');
$query = "SELECT * FROM `md5` ORDER BY id DESC";
$result = mysql_query($query) or die("Query failed: " . mysql_error());
$row = mysql_fetch_array($result);
if (!$row) {
$no = 0;
} else {
$no = $row['id'];
}
$decrypt = $_POST['decrypt'];
$decrypt_query = "SELECT * FROM `md5` WHERE md5='$decrypt'";
$decrypt_result = mysql_query($decrypt_query) or die("Query failed: " . mysql_error());
$decrypt_row = mysql_fetch_array($decrypt_result);
$decrypted = $decrypt_row['combination'];
;echo '<script language=Javascript>
<!--
var copytoclip=1
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=\'\'",2400);
}
}
-->
</script>
<tr>
<td align="left" valign="top" background="images/back_right_1.jpg" style="background-position:top right; background-repeat:no-repeat "><table width="714" border="0" cellpadding="0" cellspacing="0" background="images/back_left.jpg" style="background-repeat:no-repeat; background-position:top left ">
<tr align="left" valign="top">
<td width="405"><table width="405" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><div style="padding-left:27px; padding-top:0px">
<table width="366" border="0" cellpadding="0" cellspacing="0" background="images/rep_line_1.jpg">
<tr>
<td height="59" align="left" valign="top" background="images/top_back.jpg"><div style="padding-left:32px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">MD5 Decryption ;;</span></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top" background="images/bottom_2.jpg" style="background-repeat:no-repeat; background-position:bottom left "><div style="padding-left:32px; padding-top:2px; padding-bottom:23px">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="127"><table width="105" border="0" cellspacing="0" cellpadding="0">
<tr>
';
if (!$decrypt) {
echo "<span class='style33'>Please fill up the blank.</span>";
} elseif (strlen($decrypt) != 32) {
echo "<span class='style33'>Invalid md5</span>";
} elseif (!$decrypt_row) {
echo "<span class='style33'>Sorry, we couldn't decrypt this md5.</span>";
} else {
;echo ' <td height="17" align="left" valign="bottom"><span class="style7">MD5 decrypted:</span></td>
</tr>
<tr>
<td align="left" valign="bottom"><span class="style8"">
<form name=form1>
<textarea name=select cols=12 rows="1">'; echo $decrypted; ;echo '</textarea>
<A class=high href="javascript:HighlightAll(\'form1.select\')"><input type="submit" name="copy" value="Select"></A>
</form>
</span>
</td>
</tr>
';
}
;echo ' <tr>
<td height="26" align="left" valign="bottom"></td>
</tr>
</table></td>
<td><div style="padding-left:0px; padding-top:9px; line-height:11px"><span class="style10"><strong>Direction:</strong><br>
Click select button to highlight the decrypted result, then copy it to your clipboard (Ctrl+C)
</span></div>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="center" valign="top"><span class="style10">Total
number of '; echo "<strong>$no</strong>"; ;echo ' cracked md5</span></td>
</tr>
</table></td>
';
}
;echo ' <td width="309" height="100%" background="images/rep_1.jpg" style="background-repeat:repeat-y; background-position:top left "><table width="309" height="100%" border="0" cellpadding="0" cellspacing="0" background="images/bot_pic_1.jpg" style="background-position:bottom left; background-repeat:no-repeat ">
<tr>
<td height="100%" align="left" valign="top" background="images/top_pic_1.jpg" style="background-repeat:no-repeat; background-position:top left "><div style="padding-left:14px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">Welcome to MD5
Encryption & Decryption !</span></td>
</tr>
</table>
</div>
<div style="padding-left:14px; padding-top:10px"><span class="style10"><strong>Having
problem encrypting?<br>
</strong>This service will help you to encrypt<br>
your letter and number with md5 function.<br>
<br>
<strong>Having
problem decrypting?<br>
</strong>You are on the right place !<br>
This service will try to decrypt md5 for you !<br>
</span></div>
<div style="padding-left:15px; padding-top:15px">
<table width="158" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle">
<td width="10" height="15"><a href="#"><img src="images/point_4.jpg" width="5" height="5" border="0"></a></td>
<td height="15"><span class="style14">MD5
encryption</span></td>
</tr>
<tr align="left" valign="middle">
<td width="10" height="15"><a href="#"><img src="images/point_4.jpg" width="5" height="5" border="0"></a></td>
<td height="15"><span class="style14">MD5
decryption</span></td>
</tr>
<tr align="left" valign="middle">
<td width="10" height="15"><a href="#"><img src="images/point_4.jpg" width="5" height="5" border="0"></a></td>
<td height="15"><span class="style14">Fast
and easy !</span></td>
</tr>
<tr align="left" valign="middle">
<td width="10" height="15"><a href="#"><img src="images/point_4.jpg" width="5" height="5" border="0"></a></td>
<td height="15"><span class="style14">Just
one click !</span></td>
</tr>
</table>
</div>
<div style="padding-left:13px; padding-top:16px; padding-bottom:15px">
<table width="240" height="18" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td width="100%" background="images/division_1.jpg" style="background-repeat:no-repeat; background-position:top right "><span class="style10"><strong>I
need your help !<br>
</strong>As we know there\'s billions of
different combination,<br>
me alone could not support the whole service, so
if you<br>
are free you could do some contribution by
adding cracked md5 to my database.<br>
Please refer to '; echo " ".$url."/add.php"; ;echo '</span></td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="38" align="left" valign="top" background="images/bottom_1.jpg" class="style10"><div style="padding-left:485px; padding-top:7px"><span style="color: #A9A9A9">Copyright
© 2006 MD5 Encryption & Decryption</span></div></td>
</tr>
</table>
</div></td>
<td> ;;</td>
</tr>
<tr>
<td height="100%"> ;;</td>
<td width="714" height="100%" align="left" valign="top"> ;;</td>
<td height="100%"> ;;</td>
</tr>
</table>
</body>
</html>
j'ai un problem : Erreur PHP d'une source , je suis un debutant on PHP , donc qlq il peux m'aider SVP !!
je croi que <php & ?> , elle est pas dan la source
merci d'avance
File.php :
<head>
<title>MD5 Encryption & Decryption</title>
<link href="images/style.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="MD5, Crack, education, encryption, decryption">
<meta name="description" content="Crack the hardcoded md5.">
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" background="images/rep_til.jpg" style="background-repeat:repeat-x; background-position:top left ">
<tr>
<td> ;;</td>
<td width="714" align="left" valign="top"><div style="padding-left:0px; padding-top:92px">
<table width="714" border="0" cellpadding="0" cellspacing="0" background="images/rep_lner_1.jpg">
<tr>
<td height="90" align="left" valign="top"><img src="images/mail_service.jpg" width="714" height="90"></td>
</tr>
<tr>
<td height="23" align="left" valign="top" background="images/top_back_2.jpg"><div style="padding-left:35px; padding-top:2px"></div></td>
</tr>
';
require_once('config.php');
$url = 'http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['SCRIPT_NAME'],0,strlen($_SERVER['SCRIPT_NAME'])-8);
if (isset($_GET["act"])) {
$currentpage = $_GET["act"];
} elseif (isset($_POST["act"])) {
$currentpage = $_POST["act"];
} else {
$currentpage = "home";
}
switch ($currentpage) {
case "home":
showPageHome();
break;
case "encrypt":
showPageEncrypt();
break;
case "decrypt":
showPagedecrypt();
break;
showPageHome();
break;
}
;echo '';
function showPageHome() {
require_once('config.php');
$query = "SELECT * FROM `md5` ORDER BY id DESC";
$result = mysql_query($query) or die("Query failed: " . mysql_error());
$row = mysql_fetch_array($result);
if (!$row) {
$no = 0;
} else {
$no = $row['id'];
}
;echo '
<tr>
<td align="left" valign="top" background="images/back_right_1.jpg" style="background-position:top right; background-repeat:no-repeat "><table width="714" border="0" cellpadding="0" cellspacing="0" background="images/back_left.jpg" style="background-repeat:no-repeat; background-position:top left ">
<tr align="left" valign="top">
<td width="405"><table width="405" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><div style="padding-left:27px; padding-top:0px">
<table width="366" border="0" cellpadding="0" cellspacing="0" background="images/rep_line_1.jpg">
<tr>
<td height="59" align="left" valign="top" background="images/top_back.jpg"><div style="padding-left:32px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">MD5 Encryption ;;</span></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top" background="images/bottom_2.jpg" style="background-repeat:no-repeat; background-position:bottom left "><div style="padding-left:32px; padding-top:2px; padding-bottom:23px">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="127"><table width="105" border="0" cellspacing="0" cellpadding="0">
<form action="'; echo $_SERVER['PHP_SELF']; ;echo '" method="post">
<tr>
<td height="17" align="left" valign="bottom"><span class="style7">Letter & number:</span></td>
</tr>
<tr>
<td align="left" valign="bottom"><span class="style8">
<input type="text" name="encrypt" style="width:100px; height:19px; font-family:tahoma; font-size:10px " size="32" maxlength="32">
</span></td>
</tr>
<tr>
<td height="26" align="left" valign="bottom"><input type="hidden" name="act" value="encrypt"><input type="submit" value="Encrypt"></td>
</tr>
</form>
</table></td>
<td><div style="padding-left:0px; padding-top:9px; line-height:11px"><span class="style10"><strong>Direction:</strong><br>
Paste the letter & number into the box and click
encrypt</span></div>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top"><div style="padding-left:27px; padding-top:0px">
<table width="366" border="0" cellpadding="0" cellspacing="0" background="images/rep_line_1.jpg">
<tr>
<td height="59" align="left" valign="top" background="images/top_back.jpg"><div style="padding-left:32px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">MD5 Decryption ;;</span></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top" background="images/bottom_2.jpg" style="background-repeat:no-repeat; background-position:bottom left "><div style="padding-left:32px; padding-top:2px; padding-bottom:23px">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="127"><table width="105" border="0" cellspacing="0" cellpadding="0">
<form action="'; echo $_SERVER['PHP_SELF']; ;echo '" method="post">
<tr>
<td height="17" align="left" valign="bottom"><span class="style7">MD5:</span></td>
</tr>
<tr>
<td align="left" valign="bottom"><span class="style8">
<input type="text" name="decrypt" style="width:100px; height:19px; font-family:tahoma; font-size:10px " size="32" maxlength="32">
</span></td>
</tr>
<tr>
<td height="26" align="left" valign="bottom"><input type="hidden" name="act" value="decrypt"><input type="submit" value="Decrypt"></td>
</tr>
</form>
</table></td>
<td><div style="padding-left:0px; padding-top:9px; line-height:11px"><span class="style10"><strong>Direction:</strong><br>
Paste the md5 into the box and click
decrypt</span></div>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="center" valign="top"><span class="style10">Total
number of '; echo "<strong>$no</strong>"; ;echo ' cracked md5</span></td>
</tr>
</table></td>
';
}
function showPageEncrypt() {
require_once('config.php');
$query = "SELECT * FROM `md5` ORDER BY id DESC";
$result = mysql_query($query) or die("Query failed: " . mysql_error());
$row = mysql_fetch_array($result);
if (!$row) {
$no = 0;
} else {
$no = $row['id'];
}
$encrypt = $_POST['encrypt'];
$encrypted = md5($encrypt);
$encrypt_query = "SELECT * FROM `md5` WHERE md5='$encrypted'";
$encrypt_result = mysql_query($encrypt_query) or die("Query failed: " . mysql_error());
$encrypt_row = mysql_fetch_array($encrypt_result);
if (!$encrypt_row) {
mysql_query("INSERT INTO `md5` VALUES ('', '$encrypt', '$encrypted')") or die (mysql_error());
}
;echo '<script language=Javascript>
<!--
var copytoclip=1
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=\'\'",2400);
}
}
-->
</script>
<tr>
<td align="left" valign="top" background="images/back_right_1.jpg" style="background-position:top right; background-repeat:no-repeat "><table width="714" border="0" cellpadding="0" cellspacing="0" background="images/back_left.jpg" style="background-repeat:no-repeat; background-position:top left ">
<tr align="left" valign="top">
<td width="405"><table width="405" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><div style="padding-left:27px; padding-top:0px">
<table width="366" border="0" cellpadding="0" cellspacing="0" background="images/rep_line_1.jpg">
<tr>
<td height="59" align="left" valign="top" background="images/top_back.jpg"><div style="padding-left:32px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">MD5 Encryption ;;</span></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top" background="images/bottom_2.jpg" style="background-repeat:no-repeat; background-position:bottom left "><div style="padding-left:32px; padding-top:2px; padding-bottom:23px">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="127"><table width="105" border="0" cellspacing="0" cellpadding="0">
<tr>
';
if (!$encrypt) {
echo "<span class='style33'>Please fill up the blank.</span>";
} else {
;echo ' <td height="17" align="left" valign="bottom"><span class="style7">MD5 encrypted:</span></td>
</tr>
<tr>
<td align="left" valign="bottom"><span class="style8"">
<form name=form1>
<textarea name=select cols=12 rows="1">'; echo "$encrypted"; ;echo '</textarea>
<A class=high href="javascript:HighlightAll(\'form1.select\')"><input type="submit" name="copy" value="Select"></A>
</form>
</span>
</td>
</tr>
';
}
;echo ' <tr>
<td height="26" align="left" valign="bottom"></td>
</tr>
</table></td>
<td><div style="padding-left:0px; padding-top:9px; line-height:11px"><span class="style10"><strong>Direction:</strong><br>
Click select button to highlight the encrypted result, then copy it to your clipboard (Ctrl+C)
</span></div>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="center" valign="top"><span class="style10">Total
number of '; echo "<strong>$no</strong>"; ;echo ' cracked md5</span></td>
</tr>
</table></td>
';
}
function showPageDecrypt() {
require_once('config.php');
$query = "SELECT * FROM `md5` ORDER BY id DESC";
$result = mysql_query($query) or die("Query failed: " . mysql_error());
$row = mysql_fetch_array($result);
if (!$row) {
$no = 0;
} else {
$no = $row['id'];
}
$decrypt = $_POST['decrypt'];
$decrypt_query = "SELECT * FROM `md5` WHERE md5='$decrypt'";
$decrypt_result = mysql_query($decrypt_query) or die("Query failed: " . mysql_error());
$decrypt_row = mysql_fetch_array($decrypt_result);
$decrypted = $decrypt_row['combination'];
;echo '<script language=Javascript>
<!--
var copytoclip=1
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=\'\'",2400);
}
}
-->
</script>
<tr>
<td align="left" valign="top" background="images/back_right_1.jpg" style="background-position:top right; background-repeat:no-repeat "><table width="714" border="0" cellpadding="0" cellspacing="0" background="images/back_left.jpg" style="background-repeat:no-repeat; background-position:top left ">
<tr align="left" valign="top">
<td width="405"><table width="405" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><div style="padding-left:27px; padding-top:0px">
<table width="366" border="0" cellpadding="0" cellspacing="0" background="images/rep_line_1.jpg">
<tr>
<td height="59" align="left" valign="top" background="images/top_back.jpg"><div style="padding-left:32px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">MD5 Decryption ;;</span></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="left" valign="top" background="images/bottom_2.jpg" style="background-repeat:no-repeat; background-position:bottom left "><div style="padding-left:32px; padding-top:2px; padding-bottom:23px">
<table width="315" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="127"><table width="105" border="0" cellspacing="0" cellpadding="0">
<tr>
';
if (!$decrypt) {
echo "<span class='style33'>Please fill up the blank.</span>";
} elseif (strlen($decrypt) != 32) {
echo "<span class='style33'>Invalid md5</span>";
} elseif (!$decrypt_row) {
echo "<span class='style33'>Sorry, we couldn't decrypt this md5.</span>";
} else {
;echo ' <td height="17" align="left" valign="bottom"><span class="style7">MD5 decrypted:</span></td>
</tr>
<tr>
<td align="left" valign="bottom"><span class="style8"">
<form name=form1>
<textarea name=select cols=12 rows="1">'; echo $decrypted; ;echo '</textarea>
<A class=high href="javascript:HighlightAll(\'form1.select\')"><input type="submit" name="copy" value="Select"></A>
</form>
</span>
</td>
</tr>
';
}
;echo ' <tr>
<td height="26" align="left" valign="bottom"></td>
</tr>
</table></td>
<td><div style="padding-left:0px; padding-top:9px; line-height:11px"><span class="style10"><strong>Direction:</strong><br>
Click select button to highlight the decrypted result, then copy it to your clipboard (Ctrl+C)
</span></div>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td align="center" valign="top"><span class="style10">Total
number of '; echo "<strong>$no</strong>"; ;echo ' cracked md5</span></td>
</tr>
</table></td>
';
}
;echo ' <td width="309" height="100%" background="images/rep_1.jpg" style="background-repeat:repeat-y; background-position:top left "><table width="309" height="100%" border="0" cellpadding="0" cellspacing="0" background="images/bot_pic_1.jpg" style="background-position:bottom left; background-repeat:no-repeat ">
<tr>
<td height="100%" align="left" valign="top" background="images/top_pic_1.jpg" style="background-repeat:no-repeat; background-position:top left "><div style="padding-left:14px; padding-top:12px">
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">Welcome to MD5
Encryption & Decryption !</span></td>
</tr>
</table>
</div>
<div style="padding-left:14px; padding-top:10px"><span class="style10"><strong>Having
problem encrypting?<br>
</strong>This service will help you to encrypt<br>
your letter and number with md5 function.<br>
<br>
<strong>Having
problem decrypting?<br>
</strong>You are on the right place !<br>
This service will try to decrypt md5 for you !<br>
</span></div>
<div style="padding-left:15px; padding-top:15px">
<table width="158" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle">
<td width="10" height="15"><a href="#"><img src="images/point_4.jpg" width="5" height="5" border="0"></a></td>
<td height="15"><span class="style14">MD5
encryption</span></td>
</tr>
<tr align="left" valign="middle">
<td width="10" height="15"><a href="#"><img src="images/point_4.jpg" width="5" height="5" border="0"></a></td>
<td height="15"><span class="style14">MD5
decryption</span></td>
</tr>
<tr align="left" valign="middle">
<td width="10" height="15"><a href="#"><img src="images/point_4.jpg" width="5" height="5" border="0"></a></td>
<td height="15"><span class="style14">Fast
and easy !</span></td>
</tr>
<tr align="left" valign="middle">
<td width="10" height="15"><a href="#"><img src="images/point_4.jpg" width="5" height="5" border="0"></a></td>
<td height="15"><span class="style14">Just
one click !</span></td>
</tr>
</table>
</div>
<div style="padding-left:13px; padding-top:16px; padding-bottom:15px">
<table width="240" height="18" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td width="100%" background="images/division_1.jpg" style="background-repeat:no-repeat; background-position:top right "><span class="style10"><strong>I
need your help !<br>
</strong>As we know there\'s billions of
different combination,<br>
me alone could not support the whole service, so
if you<br>
are free you could do some contribution by
adding cracked md5 to my database.<br>
Please refer to '; echo " ".$url."/add.php"; ;echo '</span></td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="38" align="left" valign="top" background="images/bottom_1.jpg" class="style10"><div style="padding-left:485px; padding-top:7px"><span style="color: #A9A9A9">Copyright
© 2006 MD5 Encryption & Decryption</span></div></td>
</tr>
</table>
</div></td>
<td> ;;</td>
</tr>
<tr>
<td height="100%"> ;;</td>
<td width="714" height="100%" align="left" valign="top"> ;;</td>
<td height="100%"> ;;</td>
</tr>
</table>
</body>
</html>
A voir également:
- Reparer une source PHP ??
- Réparer une clé usb non reconnue - Guide
- Réparer fichier word - Guide
- Réparer une clé usb endommagée gratuit - Télécharger - Récupération de données
- Easy php - Télécharger - Divers Web & Internet
- Réparer spouleur d'impression windows 10 - Guide
5 réponses
Bonjour,
Il est illisible ton code, essaie de ne nous montrer que l'essentiel, parce que là, c'est le merdier
Il est illisible ton code, essaie de ne nous montrer que l'essentiel, parce que là, c'est le merdier
oui je sais , & je vous remercie bcp , mais j'ai dit que je suis dèbutant on PHP , donc il fault me dit comment je r'ajoute <? & Merci autre fois
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Si tu veut vraiment que je réponde a ta question, remet moi tes lignes de code dans un nouveau post, AVEC LES NUMEROS DE LIGNE, ce sera beaucoup plus simple pour toi et moi.
Ps : Si tu es vraiment débutant en php, va donc faire un tour sur le site phpdebutant.org.
Mais si tu n'arrive déjà pas a placer les balises php, je peut te dire que tu n'es pa au bout des tes soucis.
Ps : Si tu es vraiment débutant en php, va donc faire un tour sur le site phpdebutant.org.
Mais si tu n'arrive déjà pas a placer les balises php, je peut te dire que tu n'es pa au bout des tes soucis.