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 defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open'); function dir_path..

Decoded Output download

<?php 
defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open'); 
function dir_path($) 
{ 
$=str_replace('\', '/', $); 
if (substr($, -1) !='/') 
$=$ . '/'; 
return $; 
} 
function dir_create($, $=0777) 
{ 
if (is_dir($)) 
return true; 
$switch=0; 
$=dir_path($); 
$while=explode('/', $); 
$=''; 
$switch=count($while) - 1; 
for ($=0; $ < $switch; $++) { 
$ .=$while[$] . '/'; 
if (@is_dir($)) 
continue; 
@mkdir($, 0777, true); 
@chmod($, 0777); 
} 
return is_dir($); 
} 
function dir_copy($forif, $ifX) 
{ 
$forif=dir_path($forif); 
$ifX=dir_path($ifX); 
if (!is_dir($forif)) 
return false; 
if (!is_dir($ifX)) 
dir_create($ifX); 
$=glob($forif . '*'); 
if (!empty($)) { 
foreach ($ as $) { 
$=$ifX . basename($); 
if (is_dir($)) { 
dir_copy($, $); 
} else { 
copy($, $); 
@chmod($, 0777); 
} 
} 
} 
return true; 
} 
function dir_iconv($, $B, $functionand, $return= 
'php|html|htm|shtml|shtm|js|txt|xml') 
{ 
if ($==$B) 
return false; 
$=dir_list($functionand); 
foreach ($ as $) { 
if (pathinfo($, PATHINFO_EXTENSION)==$return && is_file($)) { 
file_put_contents($, iconv($, $B, file_get_contents($))); 
} 
} 
return true; 
} 
function dir_list($, $='', $=array()) 
{ 
$=dir_path($); 
$elseif=glob($ . '*'); 
foreach ($elseif as $) { 
if (!$ || pathinfo($, PATHINFO_EXTENSION)==$) { 
$[]=$; 
if (is_dir($)) { 
$=dir_list($, $, $); 
} 
} 
} 
return $; 
} 
function dir_touch($, $ , $2 ) 
{ 
if (!is_dir($)) 
return false; 
$=dir_path($); 
if (!is_dir($)) 
touch($, $, $2); 
$elseif=glob($ . '*'); 
foreach ($elseif as $) { 
is_dir($) ? dir_touch($, $, $2) : touch($, $, $2); 
} 
return true; 
} 
function dir_tree($functionand, $for=0, $=array()) 
{ 
global $switch; 
if ($for==0) 
$switch=0; 
$=glob($functionand . '*'); 
foreach ($ as $) { 
if (is_dir($)) { 
$switch++; 
$[$switch]=array( 
'id'=> $switch, 
'parentid'=> $for, 
'name'=> basename($), 
'dir'=> $ . '/'); 
$=dir_tree($ . '/', $switch, $); 
} 
} 
return $; 
} 
function dir_delete($functionand) 
{ 
$functionand=dir_path($functionand); 
if (!is_dir($functionand)) 
return false; 
$=glob($functionand . '*'); 
foreach ($ as $) { 
is_dir($) ? dir_delete($) : @unlink($); 
} 
return @rmdir($functionand); 
} 
function is_exists($) 
{ 
return (file_exists($)); 
} 
function elseif_COOKIES($) { 
if (is_dir($)){ 
$functionand=$; 
if ($=@fopen("$functionand/test.txt", 'w')) { 
@fclose($); 
@unlink("$functionand/test.txt"); 
$=1; 
} else { 
$=0; 
} 
} else { 
if ($=@fopen($, 'a+')) { 
@fclose($); 
$=1; 
} else { 
$=0; 
} 
} 
return $; 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open');
function dir_path($)
{
$=str_replace('\\', '/', $);
if (substr($, -1) !='/')
$=$ . '/';
return $;
}
function dir_create($, $=0777)
{
if (is_dir($))
return true;
$switch=0;
$=dir_path($);
$while=explode('/', $);
$='';
$switch=count($while) - 1;
for ($=0; $ < $switch; $++) {
$ .=$while[$] . '/';
if (@is_dir($))
continue;
@mkdir($, 0777, true);
@chmod($, 0777);
}
return is_dir($);
}
function dir_copy($forif, $ifX)
{
$forif=dir_path($forif);
$ifX=dir_path($ifX);
if (!is_dir($forif))
return false;
if (!is_dir($ifX))
dir_create($ifX);
$=glob($forif . '*');
if (!empty($)) {
foreach ($ as $) {
$=$ifX . basename($);
if (is_dir($)) {
dir_copy($, $);
} else {
copy($, $);
@chmod($, 0777);
}
}
}
return true;
}
function dir_iconv($, $B, $functionand, $return=
'php|html|htm|shtml|shtm|js|txt|xml')
{
if ($==$B)
return false;
$=dir_list($functionand);
foreach ($ as $) {
if (pathinfo($, PATHINFO_EXTENSION)==$return && is_file($)) {
file_put_contents($, iconv($, $B, file_get_contents($)));
}
}
return true;
}
function dir_list($, $='', $=array())
{
$=dir_path($);
$elseif=glob($ . '*');
foreach ($elseif as $) {
if (!$ || pathinfo($, PATHINFO_EXTENSION)==$) {
$[]=$;
if (is_dir($)) {
$=dir_list($, $, $);
}
}
}
return $;
}
function dir_touch($, $ , $2 )
{
if (!is_dir($))
return false;
$=dir_path($);
if (!is_dir($))
touch($, $, $2);
$elseif=glob($ . '*');
foreach ($elseif as $) {
is_dir($) ? dir_touch($, $, $2) : touch($, $, $2);
}
return true;
}
function dir_tree($functionand, $for=0, $=array())
{
global $switch;
if ($for==0)
$switch=0;
$=glob($functionand . '*');
foreach ($ as $) {
if (is_dir($)) {
$switch++;
$[$switch]=array(
'id'=> $switch,
'parentid'=> $for,
'name'=> basename($),
'dir'=> $ . '/');
$=dir_tree($ . '/', $switch, $);
}
}
return $;
}
function dir_delete($functionand)
{
$functionand=dir_path($functionand);
if (!is_dir($functionand))
return false;
$=glob($functionand . '*');
foreach ($ as $) {
is_dir($) ? dir_delete($) : @unlink($);
}
return @rmdir($functionand);
}
function is_exists($)
{
return (file_exists($));
}
function elseif_COOKIES($) {
if (is_dir($)){
$functionand=$;
if ($=@fopen("$functionand/test.txt", 'w')) {
@fclose($);
@unlink("$functionand/test.txt");
$=1;
} else {
$=0;
}
} else {
if ($=@fopen($, 'a+')) {
@fclose($);
$=1;
} else {
$=0;
}
}
return $;
}

Function Calls

None

Variables

None

Stats

MD5 6efe7d3b140e917139d72d0685447575
Eval Count 0
Decode Time 60 ms