$myproject = new project(); $pro = $myproject->getProject($id); $projectname = $pro["name"]; $template->assign("title", $title); $template->assign("file", $file); $template->assign("projectname", $projectname); $template->display("editfileform.tpl"); } elseif ($action == "edit") { if (!$userpermissions["files"]["edit"]) { $errtxt = $langfile["nopermission"]; $noperm = $langfile["accessdenied"]; $template->assign("errortext", "<h2>{$errtxt}</h2><br>{$noperm}"); $template->display("error.tpl"); die; } if ($myfile->edit($thisfile, $title, $desc, "")) { $loc = $url .= "managefile.php?action=showproject&id={$id}&mode=edited"; header("Location: {$loc}"); } } elseif ($action == "delete") { if (!$userpermissions["files"]["del"]) { $errtxt = $langfile["nopermission"]; $noperm = $langfile["accessdenied"]; $template->assign("errortext", "<h2>{$errtxt}</h2><br>{$noperm}"); $template->display("error.tpl"); die; } if ($myfile->loeschen($thisfile)) { echo "ok"; } } elseif ($action == "zipexport") {
$template->assign("title", $title); $template->assign("file", $file); $template->assign("projectname", $projectname); $template->display("editfileform.tpl"); } elseif ($action == "edit") { if (!$userpermissions["files"]["edit"]) { $errtxt = $langfile["nopermission"]; $noperm = $langfile["accessdenied"]; $template->assign("errortext", "<h2>$errtxt</h2><br>$noperm"); $template->display("error.tpl"); die(); } $tagobj = new tags(); $tags = $tagobj->formatInputTags($tags); if ($myfile->edit($thisfile, $title, $desc, $tags)) { $loc = $url .= "managefile.php?action=showproject&id=$id&mode=edited"; header("Location: $loc"); } } elseif ($action == "delete") { if (!$userpermissions["files"]["del"]) { $errtxt = $langfile["nopermission"]; $noperm = $langfile["accessdenied"]; $template->assign("errortext", "<h2>$errtxt</h2><br>$noperm"); $template->display("error.tpl"); die(); } if ($myfile->loeschen($thisfile)) { echo "ok"; } } elseif ($action == "zipexport") {