예제 #1
0
                 $remove_dir .= fma_translate("Confirmez-vous la suppression de") . " " . extend_ascii($auto[2]) . " : ";
                 $remove_dir .= "&nbsp;<input class=\"btn btn-danger\" type=\"submit\" name=\"ok\" value=\"" . fma_translate("Ok") . "\" /></form>";
             }
         } else {
             $Err = $auto[1];
         }
     }
     break;
 case "removedir-save":
     if ($dircmd_fma[2]) {
         $auto = fma_filter("d", $att_name, $obj->Extension);
         if ($auto[0]) {
             $auto[3] = decrypt($browse);
             @unlink($auto[3] . "/" . $auto[2] . "/.htaccess");
             @unlink($auto[3] . "/" . $auto[2] . "/pic-manager.txt");
             if (!$obj->RemoveDir($auto[3] . "/" . $auto[2])) {
                 $Err = $obj->Errors;
             } else {
                 Ecr_Log("security", "Delete Directory", $log_dir . "/" . $auto[2] . " IP=>" . getip());
             }
         } else {
             $Err = $auto[1];
         }
     }
     break;
 case "chmoddir":
     if ($dircmd_fma[3]) {
         $auto = fma_filter("d", $att_name, $obj->Extension);
         if ($auto[0]) {
             $auto[3] = decrypt($browse);
             if (file_exists($auto[3] . "/" . $auto[2])) {