Esempio n. 1
0
                 $chmod_dir .= chmod_pres($obj->GetPerms($auto[3] . "/" . $auto[2]), "chmoddir");
                 $chmod_dir .= "&nbsp;<input class=\"btn btn-primary\" type=\"submit\" name=\"ok\" value=\"" . fma_translate("Ok") . "\" /></form>";
             }
         } else {
             $Err = $auto[1];
         }
     }
     break;
 case "chmoddir-save":
     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])) {
                 settype($chmoddir, "integer");
                 if (!$obj->ChgPerms($auto[3] . "/" . $auto[2], $chmoddir)) {
                     $Err = $obj->Errors;
                 } else {
                     Ecr_Log("security", "Chmod Directory", $log_dir . "/" . $auto[2] . " IP=>" . getip());
                 }
             }
         } else {
             $Err = $auto[1];
         }
     }
     break;
     // Fichiers
 // Fichiers
 case "createfile":
     if ($ficcmd_fma[0]) {
         $auto = fma_filter("f", $userfile, $obj->Extension);