Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php date_default_timezone_set('America/Chicago');ini_set('auto_detect_line_endings',true..

Decoded Output download

<?php date_default_timezone_set('America/Chicago');ini_set('auto_detect_line_endings',true);$v0=fopen("conn.dat","r");$r1='';while(!feof($v0)){$h2=fgets($v0,15);$b3=explode("|",$h2);if($b3[0]=='1'){$x4++;if($b3[1]=='G'){$i5++;}else if($b3[1]=='B'){$m6++;$r1.='4HS2 - '.date('l, F dS, Y 	 h:ia',$b3[2]).'<br />';}}else if($b3[0]=='2'){$v7++;if($b3[1]=='G'){$l8++;}else if($b3[1]=='B'){$o9++;$r1.='Google - '.date('l, F dS, Y 	 h:ia',$b3[2]).'<br />';}}else if($b3[0]=='3'){$e10++;if($b3[1]=='G'){$j11++;}else if($b3[1]=='B'){$z12++;$r1.='FOH - '.date('l, F dS, Y 	 h:ia',$b3[2]).'<br />';}}if($b3[2]!=''){$b13=$b3[2];}}fclose($v0);$d14=$x4+$v7+$e10;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>URL Connection Results</title> 
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
<style>  
body {margin:0px; padding:0px; font-family:arial; background-color:#f3f3f3;} 
* { margin: 0; padding: 0;} 
td {text-align:center; font-size:20px; padding:4px 0px;} 
</style> 
</head> 
<body><?php echo '<table border="1" style="width:400px; margin:50px auto 10px; background-color:#fff;"> 
<tr><td style="width:25%;">URL >></td><td style="width:25%;">4HS2</td><td style="width:25%;">Google</td><td  
 
style="width:25%;">FOH</td></tr>';echo '<tr style="background-color:#c6ffbb;"><td>Good</td><td>'.$i5.'</td><td>'.$l8.'</td><td>'.$j11.'</td></tr>';echo '<tr style="background-color:#ffb9b9;"><td>Bad</td><td>'.$m6.'</td><td>'.$o9.'</td><td>'.$z12.'</td></tr>';echo '<tr style="background-color:#fffd67;"><td>Total Per</td><td>'.$x4.'</td><td>'.$v7.'</td><td>'.$e10.'</td></tr>';echo '<tr style="background-color:#e5e9ff;"><td colspan="3">Total Connection Tests</td><td>'.$d14.'</td></tr></table>';echo '<div style="width:390px; text-align:left; margin:0px auto; padding:5px; border:1px solid #000; background-color:#fff;">'.$r1.'</div>';echo '<div style="width:390px; text-align:left; margin:10px auto; padding:5px; border:1px solid #000; background-color:#fff;">Last Data  
 
File: '.date('l, F dS, Y 	 h:ia',$b13).'</div>';$u15=file("C:\wamp\www\connection\conn.dat","r");echo '['.count($u15).']<br>';foreach($u15 as $u16){echo($u16);}for($b17=max(0,count($u15)-5);$b17<count($u15);$b17++){echo '['.$u15[$b17]."]
";}fclose($v0);?>

Did this file decode correctly?

Original Code

<?php date_default_timezone_set('America/Chicago');ini_set('auto_detect_line_endings',true);$v0=fopen("conn.dat","r");$r1='';while(!feof($v0)){$h2=fgets($v0,15);$b3=explode("|",$h2);if($b3[0]=='1'){$x4++;if($b3[1]=='G'){$i5++;}else if($b3[1]=='B'){$m6++;$r1.='4HS2 - '.date('l, F dS, Y \a\t h:ia',$b3[2]).'<br />';}}else if($b3[0]=='2'){$v7++;if($b3[1]=='G'){$l8++;}else if($b3[1]=='B'){$o9++;$r1.='Google - '.date('l, F dS, Y \a\t h:ia',$b3[2]).'<br />';}}else if($b3[0]=='3'){$e10++;if($b3[1]=='G'){$j11++;}else if($b3[1]=='B'){$z12++;$r1.='FOH - '.date('l, F dS, Y \a\t h:ia',$b3[2]).'<br />';}}if($b3[2]!=''){$b13=$b3[2];}}fclose($v0);$d14=$x4+$v7+$e10;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>URL Connection Results</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style> 
body {margin:0px; padding:0px; font-family:arial; background-color:#f3f3f3;}
* { margin: 0; padding: 0;}
td {text-align:center; font-size:20px; padding:4px 0px;}
</style>
</head>
<body><?php echo '<table border="1" style="width:400px; margin:50px auto 10px; background-color:#fff;">
<tr><td style="width:25%;">URL >></td><td style="width:25%;">4HS2</td><td style="width:25%;">Google</td><td 

style="width:25%;">FOH</td></tr>';echo '<tr style="background-color:#c6ffbb;"><td>Good</td><td>'.$i5.'</td><td>'.$l8.'</td><td>'.$j11.'</td></tr>';echo '<tr style="background-color:#ffb9b9;"><td>Bad</td><td>'.$m6.'</td><td>'.$o9.'</td><td>'.$z12.'</td></tr>';echo '<tr style="background-color:#fffd67;"><td>Total Per</td><td>'.$x4.'</td><td>'.$v7.'</td><td>'.$e10.'</td></tr>';echo '<tr style="background-color:#e5e9ff;"><td colspan="3">Total Connection Tests</td><td>'.$d14.'</td></tr></table>';echo '<div style="width:390px; text-align:left; margin:0px auto; padding:5px; border:1px solid #000; background-color:#fff;">'.$r1.'</div>';echo '<div style="width:390px; text-align:left; margin:10px auto; padding:5px; border:1px solid #000; background-color:#fff;">Last Data 

File: '.date('l, F dS, Y \a\t h:ia',$b13).'</div>';$u15=file("C:\wamp\www\connection\conn.dat","r");echo '['.count($u15).']<br>';foreach($u15 as $u16){echo($u16);}for($b17=max(0,count($u15)-5);$b17<count($u15);$b17++){echo '['.$u15[$b17]."]\n";}fclose($v0);?>

Function Calls

date_default_timezone_set 1

Variables

None

Stats

MD5 fcfddcef8c6990f3b30274ffc7cbc4c2
Eval Count 0
Decode Time 149 ms