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

Signing you up...

Thank you for signing up!

PHP Decode

PD9waHANCi8qDQoJYjM3NGsgc2hlbGwNCglKYXlhbGFoIEluZG9uZXNpYWt1DQoJKGMpMjAxNA0KCWh0dHBzOi8vZ2..

Decoded Output download

<?  PD9waHANCi8qDQoJYjM3NGsgc2hlbGwNCglKYXlhbGFoIEluZG9uZXNpYWt1DQoJKGMpMjAxNA0KCWh0dHBzOi8vZ2l0aHViLmNvbS9iMzc0ay9iMzc0aw0KDQoqLw0KJEdMT0JBTFNbJ3BhY2tlciddWyd0aXRsZSddID0gImIzNzRrIHNoZWxsIHBhY2tlciI7DQokR0xPQkFMU1sncGFja2VyJ11bJ3ZlcnNpb24nXSA9ICIwLjQuMiI7DQokR0xPQkFMU1sncGFja2VyJ11bJ2Jhc2VfZGlyJ10gPSAiLi9iYXNlLyI7DQokR0xPQkFMU1sncGFja2VyJ11bJ21vZHVsZV9kaXInXSA9ICIuL21vZHVsZS8iOw0KJEdMT0JBTFNbJ3BhY2tlciddWyd0aGVtZV9kaXInXSA9ICIuL3RoZW1lLyI7DQokR0xPQkFMU1sncGFja2VyJ11bJ21vZHVsZSddID0gcGFja2VyX2dldF9tb2R1bGUoKTsNCiRHTE9CQUxTWydwYWNrZXInXVsndGhlbWUnXSA9IHBhY2tlcl9nZXRfdGhlbWUoKTsNCg0KcmVxdWlyZSAkR0xPQkFMU1sncGFja2VyJ11bJ2Jhc2VfZGlyJ10uJ2pzUGFja2VyLnBocCc7DQoNCi8qIFBIUCBGSUxFUyBTVEFSVCAqLw0KJGJhc2VfY29kZSA9ICIiOw0KJGJhc2VfY29kZSAuPSBwYWNrZXJfcmVhZF9maWxlKCRHTE9CQUxTWydwYWNrZXInXVsnYmFzZV9kaXInXS4icmVzb3VyY2VzLnBocCIpOw0KJGJhc2VfY29kZSAuPSBwYWNrZXJfcmVhZF9maWxlKCRHTE9CQUxTWydwYWNrZXInXVsnYmFzZV9kaXInXS4ibWFpbi5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