Beispiel #1
0
 case "pict-save":
     $auto = fma_filter("d", $att_name, $obj->Extension);
     if ($auto[0]) {
         $auto[3] = decrypt($browse);
         $fp = fopen($auto[3] . "/" . $auto[2] . "/pic-manager.txt", 'w');
         settype($maxthumb, "integer");
         fputs($fp, "Enable and customize pic-manager / to remove pic-manager : just remove pic-manager.txt\n");
         fputs($fp, $maxthumb . "\n");
         fputs($fp, $refresh . "\n");
         fclose($fp);
         Ecr_Log("security", "Pic-Manager", $log_dir . "/" . $auto[2] . " IP=>" . getip());
     } else {
         $Err = $auto[1];
     }
 case "searchfile":
     $resp = $obj->SearchFile($base, $filesearch);
     if ($resp) {
         $resp = explode("|", $resp);
         array_pop($resp);
         $cpt = 0;
         while ($fic_resp = each($resp)) {
             // on limite le retour au niveau immédiatement inférieur au rep courant
             $rep_niv1 = explode("/", str_replace($base, "", $fic_resp[1]));
             if (count($rep_niv1) < 4) {
                 $dir_search = basename(dirname($fic_resp[1]));
                 $fic_search = basename($fic_resp[1]);
                 if (fma_autorise("d", $dir_search)) {
                     if (fma_autorise("f", $fic_search)) {
                         $tab_search[$cpt][0] = $dir_search;
                         $tab_search[$cpt][1] = $fic_search;
                         $cpt++;