Exemplo n.º 1
0
                 $remove_file .= "<input type=\"hidden\" name=\"att_name\" value=\"{$att_name}\" />";
                 $remove_file .= "<input type=\"hidden\" name=\"op\" value=\"removefile-save\" />";
                 $remove_file .= fma_translate("Confirmez-vous la suppression de") . " <code>" . extend_ascii($auto[2]) . "</code>";
                 $remove_file .= "&nbsp;<input class=\"btn btn-danger\" type=\"submit\" name=\"ok\" value=\"" . fma_translate("Ok") . "\" /></form>";
             }
         } else {
             $Err = $auto[1];
         }
     }
     break;
 case "removefile-save":
     if ($ficcmd_fma[2]) {
         $auto = fma_filter("f", $att_name, $obj->Extension);
         if ($auto[0]) {
             $auto[3] = decrypt($browse);
             if (!$obj->Remove($auto[3] . "/" . $auto[2])) {
                 $Err = $obj->Errors;
             } else {
                 Ecr_Log("security", "Delete File", $log_dir . "/" . $auto[2] . " IP=>" . getip());
             }
         } else {
             $Err = $auto[1];
         }
     }
     break;
 case "chmodfile":
     if ($ficcmd_fma[3]) {
         $auto = fma_filter("f", $att_name, $obj->Extension);
         if ($auto[0]) {
             $auto[3] = decrypt($browse);
             if (file_exists($auto[3] . "/" . $auto[2])) {