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 class GekosaleCheck { private $extensions = Array( 'curl', 'dom', ..
Decoded Output download
<?php
class GekosaleCheck
{
private $extensions = Array(
'curl',
'dom',
'gd',
'hash',
'iconv',
'mcrypt',
'pcre',
'mysql',
'mysqli',
'simplexml',
'ionCube Loader'
);
public function __construct ()
{
$this->checkRequirements();
}
public function checkRequirements ()
{
$error = '';
$ok = '';
if (version_compare(phpversion(), '5.2.0', '<')){
$error .= '<li style="color: red;"><strong>PHP 5.2.0</strong> - wymagana wersja >= 5.2.0</li>';
}
else{
$ok .= '<li style="color: green;"><strong> PHP 5.2.0</strong> - ok</li>';
}
if (! ini_get('safe_mode')){
$ok .= '<li style="color: green;"><strong>Safe Mode</strong> - ok</li>';
}
else{
$error .= '<li style="color: red;"><strong>Safe Mode</strong> - wymagane "Off"</li>';
}
foreach ($this->extensions as $extension){
if (! extension_loaded($extension)){
$error .= '<li style="color: red;"><strong>' . $extension . '</strong> - brak</li>';
}
else{
$ok .= '<li style="color: green;"><strong>' . $extension . '</strong> - ok</li>';
}
}
if ($error){
echo '<p><strong>Twj serwer nie spenia wszystkich wymaga Gekosale.</strong>';
echo '<ul style="list-style: none;">' . $error . '</ul></p>';
echo 'Ponisze wymagania zostay spenione:';
echo '<ul style="list-style: none;">' . $ok . '</ul>';
}
else{
echo '<p><strong>Twj serwer spenia wszystkie wymagania Gekosale.</strong>';
echo '<ul style="list-style: none;">' . $ok . '</ul>';
}
}
}
?>
<!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" xml:lang="pl">
<head>
<title>Sprawdzanie wymaga Gekosale</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style>
body {
font-size: 13px;
font-family: Arial;
}
ul {
margin: 0px;
}
</style>
</head>
<body>
<?php
$check = new GekosaleCheck();
?>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
class GekosaleCheck
{
private $extensions = Array(
'curl',
'dom',
'gd',
'hash',
'iconv',
'mcrypt',
'pcre',
'mysql',
'mysqli',
'simplexml',
'ionCube Loader'
);
public function __construct ()
{
$this->checkRequirements();
}
public function checkRequirements ()
{
$error = '';
$ok = '';
if (version_compare(phpversion(), '5.2.0', '<')){
$error .= '<li style="color: red;"><strong>PHP 5.2.0</strong> - wymagana wersja >= 5.2.0</li>';
}
else{
$ok .= '<li style="color: green;"><strong> PHP 5.2.0</strong> - ok</li>';
}
if (! ini_get('safe_mode')){
$ok .= '<li style="color: green;"><strong>Safe Mode</strong> - ok</li>';
}
else{
$error .= '<li style="color: red;"><strong>Safe Mode</strong> - wymagane "Off"</li>';
}
foreach ($this->extensions as $extension){
if (! extension_loaded($extension)){
$error .= '<li style="color: red;"><strong>' . $extension . '</strong> - brak</li>';
}
else{
$ok .= '<li style="color: green;"><strong>' . $extension . '</strong> - ok</li>';
}
}
if ($error){
echo '<p><strong>Twj serwer nie spenia wszystkich wymaga Gekosale.</strong>';
echo '<ul style="list-style: none;">' . $error . '</ul></p>';
echo 'Ponisze wymagania zostay spenione:';
echo '<ul style="list-style: none;">' . $ok . '</ul>';
}
else{
echo '<p><strong>Twj serwer spenia wszystkie wymagania Gekosale.</strong>';
echo '<ul style="list-style: none;">' . $ok . '</ul>';
}
}
}
?>
<!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" xml:lang="pl">
<head>
<title>Sprawdzanie wymaga Gekosale</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style>
body {
font-size: 13px;
font-family: Arial;
}
ul {
margin: 0px;
}
</style>
</head>
<body>
<?php
$check = new GekosaleCheck();
?>
</body>
</html>
Function Calls
| None |
Stats
| MD5 | a1003920bbe4dc95088f96837b0198f7 |
| Eval Count | 0 |
| Decode Time | 88 ms |