$myproject = new project(); $pro = $myproject->getProject($id); $members = $myproject->getProjectMembers($id, 10000); $projectname = $pro['name']; $template->assign("projectname", $projectname); // get the page title $title = $langfile['messages']; $template->assign("title", $title); if (!empty($messages)) { $mcount = count($messages); } else { $mcount = 0; } // get files of the project $datei = new datei(); $thefiles = $datei->getAllProjectFiles($id); $milestones = $objmilestone->getAllProjectMilestones($id, 10000); $template->assign("milestones", $milestones); $template->assign("projectname", $projectname); $template->assign("files", $thefiles); $template->assign("messages", $messages); $template->assign("members", $members); $template->assign("messagenum", $mcount); $template->display("projectmessages.tpl"); } elseif ($action == "showmessage") { // get the message and its replies $message = $msg->getMessage($mid); $replies = $msg->getReplies($mid); $myproject = new project(); $pro = $myproject->getProject($id); // get all notifiable members
$project = $_GET['project']; $strsearch = $langfile["search"]; $pro = new project(); $pname = $pro->getProject($project); $pname = $pname["name"]; echo "\n<OpenSearchDescription xmlns=\"http://a9.com/-/spec/opensearch/1.1/\">\n<ShortName>{$pname} {$strsearch}</ShortName>\n<Description>Search project {$pname}</Description>\n<Tags></Tags>\n<Image height=\"16\" width=\"16\" type=\"image/x-icon\">{$fav}</Image>\n<Url type=\"text/html\" method=\"GET\" template=\"{$templ}\"/>\n<Url type=\"application/x-suggestions+json\" method=\"get\" template=\"{$templ2}\"/>\n<InputEncoding>UTF-8</InputEncoding>\n<OutputEncoding>UTF-8</OutputEncoding>\n\n<AdultContent>false</AdultContent>\n</OpenSearchDescription>"; } elseif ($action == "jsonfiles") { if (!chkproject($userid, $id)) { $errtxt = $langfile["notyourproject"]; $noperm = $langfile["accessdenied"]; $template->assign("errortext", "{$errtxt}<br>{$noperm}"); $template->display("error.tpl"); die; } $myfile = new datei(); $ordner = $myfile->getAllProjectFiles($id); if (!empty($ordner)) { $json = "var tinyMCEImageList = new Array(\n"; foreach ($ordner as $file) { if ($file["imgfile"] == 1) { $json .= "[\"{$file['datei']}\", \"managefile.php?action=downloadfile&id={$file['project']}&file={$file['ID']}\"],\n"; } } $json = substr($json, 0, strlen($json) - 2); $json .= ");"; } else { $json = ""; } echo $json; } elseif ($action == "fileview") { if (!chkproject($userid, $id)) {