Commit c6612a30 authored by Antoine Beaupré's avatar Antoine Beaupré

hook in the extract action.

Closes: #1043
parent eaefa56f
......@@ -110,6 +110,16 @@ if ($formu) {
}
}
if ($actextract) {
print _("extracting...");
if ($bro->ExtractFile($file, $R)) {
print $err->errstr();
print _("failed");
} else {
print _("done");
}
}
/* Creation de la liste des fichiers courants */
$c=$bro->filelist($R);
if ($c===false) $error=$err->errstr();
......@@ -223,6 +233,15 @@ echo "<td><a href=\"$vu\">"._("View")."</a>";
} else {
echo "<td>&nbsp;";
}
$e = $bro->is_extractable($R,$c[$i]["name"]);
if ($e) {
echo "<a href=\"bro_main.php?actextract=1&file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R)."\">";
echo _("Extract");
echo "</a>";
} else {
echo "not extracable";
}
echo "</td>\n";
} else { // DOSSIER :
echo " <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".htmlentities($c[$i]["name"])."\" /></td>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment