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 eval("?>".base64_decode("PD9waHAKLy8gSW5pdGlhbGl6ZSB0aGUgc2Vzc2lvbgpzZXNzaW9uX3N0YXJ..

Decoded Output download

?>b'<?php
// Initialize the session
session_start();

// If session variable is not set it will redirect to login page
if ( !isset( $_SESSION[ \'username\' ] ) || empty( $_SESSION[ \'username\' ] ) ) {
	header( "location: index.php" );
	exit;
}
error_reporting(0);
?>'

Did this file decode correctly?

Original Code

<?php eval("?>".base64_decode("PD9waHAKLy8gSW5pdGlhbGl6ZSB0aGUgc2Vzc2lvbgpzZXNzaW9uX3N0YXJ0KCk7CgovLyBJZiBzZXNzaW9uIHZhcmlhYmxlIGlzIG5vdCBzZXQgaXQgd2lsbCByZWRpcmVjdCB0byBsb2dpbiBwYWdlCmlmICggIWlzc2V0KCAkX1NFU1NJT05bICd1c2VybmFtZScgXSApIHx8IGVtcHR5KCAkX1NFU1NJT05bICd1c2VybmFtZScgXSApICkgewoJaGVhZGVyKCAibG9jYXRpb246IGluZGV4LnBocCIgKTsKCWV4aXQ7Cn0KZXJyb3JfcmVwb3J0aW5nKDApOwo/Pg==")); ?>

Function Calls

base64_decode 1

Variables

None

Stats

MD5 c24392f49567ae1e01769aa647edaeb0
Eval Count 1
Decode Time 38 ms