17 include_once (
"FREEDOM/freedom_import_tar.php");
 
   26     if ($handle = opendir(
$ldir)) {
 
   27         while (
false !== (
$file = readdir($handle))) {
 
   28             if (
$file[0] != 
".") {
 
   41         $action->exitError(sprintf(_(
"archive %s not found and cannot be removed") , 
$filename));
 
   46     if (is_dir($untardir)) {
 
   48         exec(
"/bin/rm -fr " . escapeshellarg($untardir) , $msg, 
$status);
 
   50         if (
$status != 0) 
$action->exitError(sprintf(_(
"cannot suppress extract directory for archive file %s") , $selfile));
 
   52     $tar = 
$ldir . $selfile;
 
   54     if (is_file($tar)) 
if (!unlink($tar)) 
$action->exitError(sprintf(_(
"cannot suppress archive file %s") , $selfile));
 
   56     $action->AddWarningMsg(sprintf(_(
"archive file %s has been deleted") , $selfile));
 
   58     redirect(
$action, 
"FREEDOM", 
"FREEDOM_VIEW_TAR", 
$action->GetParam(
"CORE_STANDURL"));
 
getTarExtractDir(Action &$action, $tar)
freedom_del_tar(&$action)
getTarUploadDir(Action &$action)