$value) { if ($value == "") continue; $wristri .= " -t ".escapeshellarg($key."=".$value); } $writcom = escapeshellcmd($GLOBALS["conf"]["executables"]["vorbiscomment"])." -wR ".escapeshellarg($obj_abs_path)." $wristri"; report(1, "AAAA ".$writcom); shell_exec($writcom); } } // scrivi metadata delle directory function store_dir_md($data,$obj_abs_path){ if(file_exists($obj_abs_path) AND is_dir($obj_abs_path)){ $dirmdfile = $obj_abs_path."/".$GLOBALS["conf"]["dirmetadatafile"]; $fp = fopen($dirmdfile, 'w'); foreach ($data as $key => $value) { $value = stripslashes($value); if (trim($key) == "" or trim($value) == "") continue; $argo = trim($key)."=".trim($value); fwrite($fp, $argo); } fclose($fp); } else { report(2,"$obj_abs_path is not a folder!"); } } ?>