Файл: includes/wap/builder/dir_delete.php
Строк: 26
<?php
if ($query2!='') $nocache_=$query2+0;
$fp = @fopen ($userpath."opeation.cache", "r");$testcache = trim(@fgets($fp, 10));@fclose ($fp);
if ($nocache_!=$testcache)
{
$_dir=@realpath($userpath.$currentdir);
if (is_subdir($userpath,$_dir)) dir_delete($_dir);
$fp = fopen ($userpath."opeation.cache", "w+");fwrite ($fp, $nocache_);fclose ($fp);
$tmp=explode('/',str_replace($userpath,'',realpath($userpath.$currentdir)));
unset($tmp[sizeof($tmp)-1]);
$_new_current_dir=realpath($userpath.implode('/',$tmp));
if (is_dir($_new_current_dir))
{
$currentdir=str_replace('.','',str_replace('/.','',str_replace($userpath,'',$_new_current_dir.'/.')));
$f=@fopen($sitespath.'/'.$user.'/currentdir.dat','w+');
@fwrite($f,trim($currentdir));
@fclose($f);
}
if (!is_subdir($userpath,$userpath.$currentdir)) $currentdir='.';
if ($currentdir=='') $currentdir='.';
$query1=$query2=$query3=$query4='';
include($buildpath.'dir.php');
exit;
}
?>