$f_user_id = $pieces[$i]; include "../mantis/user_proj_add.php"; } //if CVS repository enabled if ($enable_cvs == "true") { $user_query = "WHERE mem.id = '{$pieces[$i]}'"; $cvsMembers = new request(); $cvsMembers->openMembers($user_query); cvs_add_user($cvsMembers->mem_login[$i], $cvsMembers->mem_password[$i], $projectDetail->pro_id[0]); } } if ($notifications == "true") { $organization = "1"; include "../teams/noti_addprojectteam.php"; } headerFunction("../projects/viewproject.php?" . session_name() . "=" . session_id() . "&id=" . $projectDetail->pro_id[0] . "&msg=add"); } include '../themes/' . THEME . '/header.php'; //echo "$tmpquery<br/>$comptMulti<br/>"; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../teams/listusers.php?id=" . $projectDetail->pro_id[0], $strings["team_members"], in)); $blockPage->itemBreadcrumbs($strings["add_team"]); $blockPage->closeBreadcrumbs(); $block1 = new block(); $block1->form = "atpt"; $block1->openForm("../teams/adduser.php?" . session_name() . "=" . session_id() . "&project={$project}#" . $block1->form . "Anchor"); $block1->heading($strings["add_team"]); $block1->openPaletteIcon();
<?php #Application name: PhpCollab #Status page: 0 #Path by root: ../tasks/assignmentcomment.php $checkSession = "true"; include_once '../includes/library.php'; if ($action == "update") { $acomm = convertData($acomm); $tmpquery6 = "UPDATE " . $tableCollab["assignments"] . " SET comments='{$acomm}' WHERE id = '{$id}'"; connectSql("{$tmpquery6}"); headerFunction("../tasks/viewtask.php?id={$task}&msg=update&" . session_name() . "=" . session_id()); exit; } $bodyCommand = "onLoad=\"document.assignment_commentForm.acomm.focus();\""; include '../themes/' . THEME . '/header.php'; $tmpquery = "WHERE tas.id = '{$task}'"; $taskDetail = new request(); $taskDetail->openTasks($tmpquery); $tmpquery = "WHERE pro.id = '" . $taskDetail->tas_project[0] . "'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], in)); $blockPage->itemBreadcrumbs($strings["assignment_comment"]); $blockPage->closeBreadcrumbs(); $block1 = new block();
** 23/03/2004 - added new document info ** 23/03/2004 - added team full palette hack by Russell E Glaue <*****@*****.**> ** ----------------------------------------------------------------------------- ** TO-DO: ** ** ** ============================================================================= */ $checkSession = "true"; include_once '../includes/library.php'; $tmpquery = "WHERE pro.id = '{$id}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); $comptProjectDetail = count($projectDetail->pro_id); if ($comptProjectDetail == "0") { headerFunction("../projects/listprojects.php?msg=blank&" . session_name() . "=" . session_id()); exit; } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($strings["team_members"]); $blockPage->closeBreadcrumbs(); $block1 = new block(); $block1->form = "saM"; $block1->openForm("../teams/listusers.php?" . session_name() . "=" . session_id() . "&id={$id}#" . $block1->form . "Anchor"); $block1->heading($strings["team_members"]); $block1->openPaletteIcon(); if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") {
<?php /* ** Application name: phpCollab ** Last Edit page: 2003-10-23 ** Path by root: ../browsecvs/index.php ** Authors: Ceam / TY / Fullo ** ============================================================================= ** ** phpCollab - Project Managment ** ** ----------------------------------------------------------------------------- ** Please refer to license, copyright, and credits in README.TXT ** ** ----------------------------------------------------------------------------- ** FILE: index.php ** ** DESC: Screen: index dummy page ** ** HISTORY: ** 2003-10-23 - added new document info ** ----------------------------------------------------------------------------- ** TO-DO: ** ** ** ============================================================================= */ $checkSession = "false"; include_once '../includes/library.php'; headerFunction('../index.php?' . session_name() . '=' . session_id()); exit;
#Status page: 0 $checkSession = "true"; include "../includes/library.php"; $tmpquery = "WHERE topic.id = '{$id}'"; $detailTopic = new request(); $detailTopic->openTopics($tmpquery); if ($detailTopic->top_published[0] == "1" || $detailTopic->top_project[0] != $projectSession) { headerFunction("index.php"); } if ($action == "delete") { $detailTopic->top_posts[0] = $detailTopic->top_posts[0] - 1; $tmpquery = "DELETE FROM " . $tableCollab["posts"] . " WHERE id = '{$post}'"; connectSql("{$tmpquery}"); $tmpquery2 = "UPDATE " . $tableCollab["topics"] . " SET posts='" . $detailTopic->top_posts[0] . "' WHERE id = '{$id}'"; connectSql("{$tmpquery2}"); headerFunction("showallthreads.php?id={$id}&" . session_name() . "=" . session_id()); exit; } $bouton[5] = "over"; $titlePage = $strings["bulletin_board_topic"]; include "include_header.php"; $tmpquery = "WHERE pos.topic = '" . $detailTopic->top_id[0] . "' ORDER BY pos.created DESC"; $listPosts = new request(); $listPosts->openPosts($tmpquery); $comptListPosts = count($listPosts->pos_id); $idStatus = $detailTopic->top_status[0]; echo "<table cellspacing='0' width='90%' cellpadding='3'>\n<tr><th colspan='4'>" . $strings["information"] . ":</th></tr>\n<tr><th>" . $strings["subject"] . ":</th><td>" . $detailTopic->top_subject[0] . "</td><th>" . $strings["posts"] . ":</th><td>" . $detailTopic->top_posts[0] . "</td></tr>\n<tr><th>" . $strings["project"] . ":</th><td>" . $projectDetail->pro_name[0] . "</td><th>" . $strings["last_post"] . ":</th><td>" . createDate($detailTopic->top_last_post[0], $timezoneSession) . "</td></tr>\n<tr><th> </th><td> </td><th>" . $strings["retired"] . ":</th><td>{$statusTopicBis[$idStatus]}</td></tr>\n<tr><th>" . $strings["owner"] . ":</th><td colspan='3'><a href='mailto:" . $detailTopic->top_mem_email_work[0] . "'>" . $detailTopic->top_mem_login[0] . "</a></td></tr>\n<tr><td colspan='4'> </td></tr>\n<tr><th colspan='4'>" . $strings["discussion"] . ":</th></tr>"; if ($detailTopic->top_status[0] == "1") { echo "<tr><td colspan='4' align='right'><a href='threadpost.php?id={$id}&" . session_name() . "=" . session_id() . "'>" . $strings["post_reply"] . "</a></td></tr>"; } if ($comptListPosts != "0") {
$error = $strings["blank_newsdesk_title"]; } else { //replace quotes by html code in name and address $title = convertData($title); if (get_magic_quotes_gpc() != 1) { $content = addslashes($content); } $author = convertData($author); //insert into organizations and redirect to new client organization detail (last id) $tmpquery1 = "INSERT INTO " . $tableCollab["newsdeskposts"] . "(title,author,related,content,links,rss,pdate) VALUES ('{$title}', '{$author}', '{$related}', '" . addslashes($content) . "', '{$links}', '{$rss}', NOW())"; connectSql("{$tmpquery1}"); $tmpquery = $tableCollab["newsdeskposts"]; last_id($tmpquery); $num = $lastId[0]; unset($lastId); headerFunction("../newsdesk/viewnews.php?id={$num}&msg=add&" . session_name() . "=" . session_id()); } } } // htmlArea 3.0 initialization $headBonus = "\t\n\t\t\t<script type='text/javascript'> \n\t\t\t _editor_url = '../includes/htmlarea/'; \n\t\t\t</script> \n\n\t\t\t<script type='text/javascript' src='../includes/htmlarea/htmlarea.js'></script>\n\t\t\t<script type='text/javascript' src='../includes/htmlarea/lang/{$lang}.js'></script>\n\t\t\t<script type='text/javascript' src='../includes/htmlarea/dialog.js'></script>\n\t\t\t<script type='text/javascript' src='../includes/htmlarea/popupdiv.js'></script>\n\t\t\t<script type='text/javascript' src='../includes/htmlarea/popupwin.js'></script> \n\t\t\t\n\t\t\t<style type='text/css'>@import url(../includes/htmlarea/htmlarea.css)</style>\n\n\n\t\t\t \n\t\t\t \n\t\t\t<script type='text/javascript'>\n\n\t\t\t\tHTMLArea.loadPlugin('TableOperations'); \n\t\t\t\t\n\t\t\t\tvar editor = null;\n\t\t\t\t\n\t\t\t\tfunction initEditor() {\n\t\t\t\t editor = new HTMLArea('content');\n \t\t\t editor.registerPlugin('TableOperations');\n\t\t\t\t editor.generate();\n\t\t\t\t}\n\n\t\t\t</script>\n\t\t\t"; $bodyCommand = "onload='initEditor();'"; // end //** Titel stuff here.. ** if ($id != '' && empty($action)) { $setTitle .= " : Edit News Item (" . $newsDetail->news_title[0] . ")"; } else { if ($id != '' && $action == "remove") { if (strpos($id, "**") !== false) { $setTitle .= " : Remove News Items"; } else {
} if ($id != "") { if ($action == "update") { if ($pub == "") { $pub = "1"; } if ($st == "1") { $datesent = $date; } $tmpquery = "UPDATE " . $tableCollab["invoices"] . " SET header_note='{$header_note}',footer_note='{$footer_note}',published='{$pub}',status='{$st}',due_date='{$dd}',date_sent='{$datesent}',total_ex_tax='{$total_ex_tax}',total_inc_tax='{$total_inc_tax}',tax_rate='{$tax_rate}',tax_amount='{$tax_amount}',modified='{$dateheure}' WHERE id = '{$id}'"; connectSql($tmpquery); for ($i = 0; $i < $comptListInvoicesItems; $i++) { $tmpquery = "UPDATE " . $tableCollab["invoices_items"] . " SET title='" . $title[$i] . "',position='" . $position[$i] . "',amount_ex_tax='" . ${"item" . $i} . "' WHERE id = '" . $itemId[$i] . "'"; connectSql($tmpquery); } headerFunction("../invoicing/viewinvoice.php?msg=update&id={$id}&" . session_name() . "=" . session_id()); } //set value in form $header_note = $detailInvoice->inv_header_note[0]; $footer_note = $detailInvoice->inv_footer_note[0]; $datesent = $detailInvoice->inv_date_sent[0]; $dd = $detailInvoice->inv_due_date[0]; $total_ex_tax = $detailInvoice->inv_total_ex_tax[0]; $tax_rate = $detailInvoice->inv_tax_rate[0]; $tax_amount = $detailInvoice->inv_tax_amount[0]; $total_inc_tax = $detailInvoice->inv_total_inc_tax[0]; $st = $detailInvoice->inv_status[0]; $pub = $detailInvoice->inv_published[0]; if ($pub == "0") { $checkedPub = "checked"; }
** ** HISTORY: ** 2003-10-23 - added new document info ** ----------------------------------------------------------------------------- ** TO-DO: ** ** ** ============================================================================= */ $checkSession = "true"; include_once '../includes/library.php'; if ($action == "delete") { $id = str_replace("**", ",", $id); $tmpquery1 = "DELETE FROM " . $tableCollab["bookmarks"] . " WHERE id IN({$id})"; connectSql("{$tmpquery1}"); headerFunction("../bookmarks/listbookmarks.php?view=my&msg=delete&" . session_name() . "=" . session_id()); exit; } $setTitle .= " : Delete "; if (strpos($id, "**") !== false) { $setTitle .= "Entries"; } else { $setTitle .= "Entry"; } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../bookmarks/listbookmarks.php?view=all", $strings["bookmarks"], in)); $blockPage->itemBreadcrumbs($strings["delete_bookmarks"]); $blockPage->closeBreadcrumbs(); if ($msg != "") {
$Htpasswd->addUser($detailMember->mem_login[0], $detailMember->mem_password[0]); } //if mantis bug tracker enabled if ($enableMantis == "true") { // call mantis function to copy project include "../mantis/proj_add.php"; } //create phase structure if enable phase was selected as true if ($thisPhase != "0") { $comptThisPhase = count($phaseArraySets[$thisPhase]); for ($i = 0; $i < $comptThisPhase; $i++) { $tmpquery = "INSERT INTO " . $tableCollab["phases"] . "(project_id,order_num,status,name) VALUES('{$num}','{$i}','0','" . $phaseArraySets[$thisPhase][$i] . "')"; connectSql("{$tmpquery}"); } } headerFunction("../projects/viewproject.php?id={$num}&msg=add&" . session_name() . "=" . session_id()); } } $bodyCommand = "onLoad='document.epDForm.pn.focus();'"; include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); //case add project if ($id == "") { $blockPage->itemBreadcrumbs($strings["add_project"]); } //case update or copy project if ($id != "") { $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); if ($docopy == "true") {
$testinTeam->openTeams($tmpquery); $comptTestinTeam = count($testinTeam->tea_id); if ($comptTestinTeam == "0") { $tmpquery3 = "INSERT INTO " . $tableCollab["teams"] . "(project,member,published,authorized) VALUES('{$project}','{$at}','1','0')"; connectSql($tmpquery3); } //send task assignment mail if notifications = true if ($notifications == "true") { include "../tasks/noti_taskassignment.php"; } } //create task sub-folder if filemanagement = true if ($fileManagement == "true") { createDir("files/{$project}/{$num}"); } headerFunction("../tasks/viewtask.php?id={$num}&msg=addAssignment&" . session_name() . "=" . session_id()); } //set default values $taskDetail->tas_assigned_to[0] = "0"; $taskDetail->tas_priority[0] = $projectDetail->pro_priority[0]; $taskDetail->tas_status[0] = "2"; } if ($projectDetail->pro_org_id[0] == "1") { $projectDetail->pro_org_name[0] = $strings["none"]; } if ($projectDetail->pro_phase_set[0] != "0") { if ($id != "") { $tPhase = $taskDetail->tas_parent_phase[0]; if (!$tPhase) { $tPhase = '0'; }
#Application name: PhpCollab #Status page: 0 $checkSession = "true"; include "../includes/library.php"; if ($action == "add") { $topicField = convertData($topicField); $messageField = convertData($messageField); $tmpquery1 = "INSERT INTO " . $tableCollab["topics"] . "(project,owner,subject,status,last_post,posts,published) VALUES('{$projectSession}','{$idSession}','{$topicField}','1','{$dateheure}','1','0')"; connectSql("{$tmpquery1}"); $tmpquery = $tableCollab["topics"]; last_id($tmpquery); $num = $lastId[0]; unset($lastId); autoLinks($messageField); $tmpquery2 = "INSERT INTO " . $tableCollab["posts"] . "(topic,member,created,message) VALUES('{$num}','{$idSession}','{$dateheure}','{$newText}')"; connectSql("{$tmpquery2}"); if ($notifications == "true") { $tmpquery = "WHERE pro.id = '{$projectSession}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); include "../topics/noti_newtopic.php"; } headerFunction("showallthreadtopics.php?" . session_name() . "=" . session_id()); } $bodyCommand = "onload=\"document.createThreadTopic.topicField.focus();\""; $bouton[5] = "over"; $titlePage = $strings["create_topic"]; include "include_header.php"; echo "<form accept-charset=\"UNKNOWN\" method=\"post\" action=\"../projects_site/createthread.php?project={$projectSession}&action=add&" . session_name() . "=" . session_id() . "&id={$id}\" name=\"createThreadTopic\" enctype=\"application/x-www-form-urlencoded\">"; echo "<table cellspacing=\"0\" width=\"90%\" border=\"0\" cellpadding=\"3\">\n<tr><th colspan=\"2\">" . $strings["create_topic"] . "</th></tr>\n<tr><th>* " . $strings["topic"] . " :</th><td><input size=\"35\" value=\"{$topicField}\" name=\"topicField\" type=\"text\"></td></tr>\n<tr><th colspan=\"2\">" . $strings["enter_message"] . "</th></tr>\n<tr><th>* " . $strings["message"] . " :</th><td colspan=\"2\"><textarea rows=\"3\" name=\"messageField\" cols=\"43\"></textarea></td></tr>\n<tr><th> </th><td colspan=\"2\"><input name=\"submit\" type=\"submit\" value=\"" . $strings["save"] . "\"></td></tr>\n</table>\n</form>"; include "include_footer.php";
$checkSession = "true"; include "../includes/library.php"; $tmpquery = "WHERE sr.id = '{$id}'"; $requestDetail = new request(); $requestDetail->openSupportRequests($tmpquery); if ($requestDetail->sr_project[0] != $projectSession || $requestDetail->sr_user[0] != $idSession) { headerFunction("index.php"); } if ($action == "add") { $mes = convertData($mes); $tmpquery1 = "INSERT INTO " . $tableCollab["support_posts"] . "(request_id,message,date,owner,project) VALUES('{$id}','{$mes}','{$dateheure}','{$idSession}','" . $requestDetail->sr_project[0] . "')"; connectSql("{$tmpquery1}"); $tmpquery = $tableCollab["support_posts"]; last_id($tmpquery); $num = $lastId[0]; unset($lastId); if ($notifications == "true") { if ($mes != "") { include "../support/noti_newpost.php"; } } headerFunction("suprequestdetail.php?id={$id}&" . session_name() . "=" . session_id()); exit; } $bouton[6] = "over"; $titlePage = $strings["support"]; include "include_header.php"; echo "<form accept-charset=\"UNKNOWN\" method=\"POST\" action=\"../projects_site/addsupportpost.php?id={$id}&" . session_name() . "=" . session_id() . "&action=add&project={$projectSession}#filedetailsAnchor\" name=\"addsupport\" enctype=\"multipart/form-data\">"; echo "<table cellspacing=\"0\" width=\"90%\" border=\"0\" cellpadding=\"3\">\n<tr><th colspan=\"2\">" . $strings["add_support_response"] . "</th></tr>\n<tr><th>" . $strings["message"] . "</th><td><textarea rows=\"3\" style=\"width: 400px; height: 200px;\" name=\"mes\" cols=\"43\">{$mes}</textarea></td></tr>\n<input type=\"hidden\" name=\"user\" value=\"{$idSession}\">"; echo "<tr><th> </th><td><input type=\"SUBMIT\" value=\"" . $strings["submit"] . "\"></td></tr>\n</table>\n</form>"; include "include_footer.php";
for ($i = 0; $i < $compt; $i++) { $tmpquery1 = "DELETE FROM " . $tableCollab["teams"] . " WHERE member = '{$pieces[$i]}'"; connectSql("{$tmpquery1}"); //if mantis bug tracker enabled if ($enableMantis == "true") { // Unassign user from this project in mantis $f_project_id = $project; $f_user_id = $pieces[$i]; include "../mantis/user_proj_delete.php"; } } if ($notifications == "true") { $organization = ""; include "../teams/noti_removeprojectteam.php"; } headerFunction("../projects/viewprojectsite.php?id={$project}&msg=removeClientToSite&" . session_name() . "=" . session_id()); exit; } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewprojectsite.php?id=" . $projectDetail->pro_id[0], $strings["project_site"], in)); $blockPage->itemBreadcrumbs($strings["remove_team_client"]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block();
<?php #Application name: PhpCollab #Status page: 1 #Path by root: ../projects/deleteprojectsite.php $checkSession = "true"; include_once '../includes/library.php'; if ($action == "delete") { $tmpquery = "UPDATE " . $tableCollab["projects"] . " SET published='1' WHERE id = '{$project}'"; connectSql("{$tmpquery}"); headerFunction("../projects/viewproject.php?id={$project}&msg=removeProjectSite&" . session_name() . "=" . session_id()); exit; } include '../themes/' . THEME . '/header.php'; $tmpquery = "WHERE pro.id = '{$project}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewprojectsite.php?id=" . $projectDetail->pro_id[0], $strings["project_site"], in)); $blockPage->itemBreadcrumbs($strings["delete_projectsite"]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block(); $block1->form = "projectsite_delete"; $block1->openForm("../projects/deleteprojectsite.php?action=delete&project={$project}&" . session_name() . "=" . session_id());
uploadFile("files/{$project}", $_FILES['upload']['tmp_name'], "{$num}--" . $filename); $size = file_info_size("../files/" . $project . "/" . $num . "--" . $filename); //$dateFile = file_info_date("../files/".$project."/".$num."--".$filename); $chaine = strrev("../files/" . $project . "/" . $num . "--" . $filename); $tab = explode(".", $chaine); $extension = strtolower(strrev($tab[0])); } } if ($docopy == "true") { $name = $num . "--" . $filename; $tmpquery = "UPDATE " . $tableCollab["files"] . " SET name='{$name}',date='{$dateheure}',size='{$size}',extension='{$extension}' WHERE id = '{$num}'"; connectSql("{$tmpquery}"); if ($notifications == "true") { require "../projects_site/noti_uploadfile.php"; } headerFunction("../linkedcontent/viewfile.php?id={$num}&msg=addFile&" . session_name() . "=" . session_id()); } } $tmpquery = "WHERE pro.id = '{$project}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); $teamMember = "false"; $tmpquery = "WHERE tea.project = '{$project}' AND tea.member = '{$idSession}'"; $memberTest = new request(); $memberTest->openTeams($tmpquery); $comptMemberTest = count($memberTest->tea_id); if ($comptMemberTest == "0") { $teamMember = "false"; } else { $teamMember = "true"; }
delDir("../files/" . $listTasks->tas_project[$i] . "/" . $listTasks->tas_id[$i]); } } connectSql("{$tmpquery1}"); connectSql("{$tmpquery2}"); connectSql("{$tmpquery3}"); //recompute number of completed tasks of the project $tmpquery = "WHERE pro.id = '" . $listTasks->tas_project[0] . "'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); projectComputeCompletion($listTasks->tas_project[$i], $tableCollab["projects"]); if ($project != "") { headerFunction("../projects/viewproject.php?id={$project}&msg=delete&" . session_name() . "=" . session_id()); exit; } else { headerFunction("../general/home.php?msg=delete&" . session_name() . "=" . session_id()); exit; } } $tmpquery = "WHERE pro.id = '{$project}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); if ($project != "") { $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($strings["delete_tasks"]); } else { $blockPage->itemBreadcrumbs($blockPage->buildLink("../general/home.php?", $strings["home"], in));
# Email alerts \$emailAlerts = "false"; ?> STAMP; if (!@fopen("../includes/settings.php", 'wb+')) { $msg = "settingsNotwritable"; } else { $fp = @fopen("../includes/settings.php", 'wb+'); $fw = @fwrite($fp, $content); if (!$fw) { $msg = "settingsNotwritable"; fclose($fp); } else { fclose($fp); headerFunction("../administration/admin.php?msg=update&" . session_name() . "=" . session_id()); } } } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in)); $blockPage->itemBreadcrumbs($strings["edit_settings"]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block(); $block1->heading($strings["edit_settings"]);
** ============================================================================= */ $checkSession = "true"; include "../includes/library.php"; if ($updateProject == "true") { $tmpquery = "WHERE tea.member = '{$idSession}' AND pro.id = '{$project}' AND pro.status IN(0,2,3) AND pro.published = '0'"; $testProject = new request(); $testProject->openTeams($tmpquery); $comptTestProject = count($testProject->tea_id); if ($comptTestProject != "0") { unset($_SESSION['projectSession']); $projectSession = $project; $_SESSION['projectSession'] = $projectSession; headerFunction("home.php?" . session_name() . "=" . session_id()); } else { headerFunction("home.php?changeProject=true&" . session_name() . "=" . session_id()); } } $bouton[0] = "over"; $titlePage = $strings["welcome"] . " {$nameSession} " . $strings["your_projectsite"]; include "include_header.php"; if ($updateProject != "true" && $changeProject != "true") { $tmpquery = "WHERE org.id = '" . fixInt($projectDetail->pro_organization[0]) . "'"; $clientDetail = new request(); $clientDetail->openOrganizations($tmpquery); } $idStatus = $projectDetail->pro_status[0]; $idPriority = $projectDetail->pro_priority[0]; if ($projectSession == "" || $changeProject == "true") { $tmpquery = "WHERE tea.member = '" . fixInt($idSession) . "' AND pro.status IN(0,2,3) AND pro.published = '0' ORDER BY pro.name"; $listProjects = new request();
if ($projectSession != "" && $changeProject != "true") { $tmpquery = "WHERE pro.id = '{$projectSession}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); $teamMember = "false"; $tmpquery = "WHERE tea.project = '{$projectSession}' AND tea.member = '{$idSession}'"; $memberTest = new request(); $memberTest->openTeams($tmpquery); $comptMemberTest = count($memberTest->tea_id); if ($comptMemberTest == "0") { $teamMember = "false"; } else { $teamMember = "true"; } if ($teamMember == "false") { headerFunction("index.php"); } } echo "{$setDoctype}\n{$setCopyright}\n<html>\n<head>\n<meta http-equiv='Content-Type' content='text/html; charset={$setCharset}'>\n<meta name='robots' content='none'>\n<meta name='description' content='{$setDescription}'>\n<meta name='keywords' content='{$setKeywords}'>\n<title>{$setTitle} - "; if ($projectSession != "" && $changeProject != "true") { echo $projectDetail->pro_name[0]; } if ($projectSession == "" || $changeProject == "true") { echo $strings["my_projects"]; } echo "</title>\n"; echo "<meta http-equiv='Content-Type' content='text/html; charset={$setCharset}'>\n\n<link rel='stylesheet' href='../themes/" . THEME . "/stylesheet.css'>\n<script type='text/javascript' src='../javascript/general.js'></script>\n<script type='text/JavaScript' src='../javascript/overlib_mini.js'></script>"; if ($includeCalendar && $includeCalendar == true) { include "../includes/calendar.php"; } echo "</head>";
<?php #Application name: PhpCollab #Status page: 0 #Path by root: ../services/deleteservices.php $checkSession = "true"; include_once '../includes/library.php'; if ($profilSession != "0") { headerFunction('../general/permissiondenied.php?' . session_name() . '=' . session_id()); exit; } if ($action == "delete") { $id = str_replace("**", ",", $id); $tmpquery1 = "DELETE FROM " . $tableCollab["services"] . " WHERE id IN({$id})"; connectSql($tmpquery1); headerFunction("../services/listservices.php?msg=delete&" . session_name() . "=" . session_id()); exit; } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../services/listservices.php?", $strings["service_management"], in)); $blockPage->itemBreadcrumbs($strings["delete_services"]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block(); $block1->form = "service_delete";
$tmpquery1 = "DELETE FROM " . $tableCollab["members"] . " WHERE id IN({$id})"; $tmpquery2 = "UPDATE " . $tableCollab["tasks"] . " SET assigned_to='{$at}' WHERE assigned_to IN({$id})"; $tmpquery3 = "UPDATE " . $tableCollab["assignments"] . " SET assigned_to='{$at}',assigned='{$dateheure}' WHERE assigned_to IN({$id})"; $tmpquery4 = "DELETE FROM " . $tableCollab["notifications"] . " WHERE member IN({$id})"; $tmpquery5 = "DELETE FROM " . $tableCollab["teams"] . " WHERE member IN({$id})"; connectSql("{$tmpquery1}"); connectSql("{$tmpquery2}"); connectSql("{$tmpquery3}"); connectSql("{$tmpquery4}"); connectSql("{$tmpquery5}"); //if mantis bug tracker enabled if ($enableMantis == "true") { // Call mantis function to remove user include "../mantis/user_delete.php"; } headerFunction("../clients/viewclient.php?id={$organization}&msg=delete&" . session_name() . "=" . session_id()); exit; } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/listclients.php?", $strings["clients"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/viewclient.php?id=" . $detailOrganization->org_id[0], $detailOrganization->org_name[0], in)); $blockPage->itemBreadcrumbs($strings["delete_users"]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block(); $block1->form = "client_user_delete";
#Application name: PhpCollab #Status page: 0 #Path by root: ../topics/deletepost.php $checkSession = "true"; include_once '../includes/library.php'; $tmpquery = "WHERE topic.id = '{$topic}'"; $detailTopic = new request(); $detailTopic->openTopics($tmpquery); if ($action == "delete") { $detailTopic->top_posts[0] = $detailTopic->top_posts[0] - 1; $tmpquery = "DELETE FROM " . $tableCollab["posts"] . " WHERE id = '{$id}'"; connectSql("{$tmpquery}"); $tmpquery2 = "UPDATE " . $tableCollab["topics"] . " SET posts='" . $detailTopic->top_posts[0] . "' WHERE id = '{$topic}'"; connectSql("{$tmpquery2}"); headerFunction("../topics/viewtopic.php?msg=delete&id={$topic}&" . session_name() . "=" . session_id()); exit; } $tmpquery = "WHERE pos.id = '{$id}'"; $detailPost = new request(); $detailPost->openPosts($tmpquery); include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $detailTopic->top_pro_id[0], $detailTopic->top_pro_name[0], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../topics/listtopics.php?topic=" . $detailTopic->top_id[0], $strings["discussion"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../topics/viewtopic.php?id=" . $detailTopic->top_id[0], $detailTopic->top_subject[0], in)); $blockPage->itemBreadcrumbs($strings["delete_messages"]); $blockPage->closeBreadcrumbs(); if ($msg != "") {
$tmpquery = "WHERE pro.id = '{$id}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); $comptProjectDetail = count($projectDetail->pro_id); if ($comptProjectDetail == "0") { headerFunction("../projects/listprojects.php?msg=blankProject&" . session_name() . "=" . session_id()); exit; } if ($idSession != $projectDetail->pro_owner[0] && $profilSession != "5") { headerFunction("../projects/listprojects.php?msg=projectOwner&" . session_name() . "=" . session_id()); exit; } if ($action == "create") { $tmpquery = "UPDATE " . $tableCollab["projects"] . " SET published='0' WHERE id = '{$id}'"; connectSql("{$tmpquery}"); headerFunction("../projects/viewprojectsite.php?id={$id}&msg=createProjectSite&" . session_name() . "=" . session_id()); exit; } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id={$id}", $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($strings["create_projectsite"]); $blockPage->closeBreadcrumbs(); $block1 = new block(); $block1->form = "csdD"; $block1->openForm("../projects/addprojectsite.php?action=create&id={$id}&" . session_name() . "=" . session_id()); $block1->heading($strings["create_projectsite"]); $block1->openContent(); $block1->contentTitle($strings["details"]);
headerFunction("../clients/listclients.php?msg=blankClient&" . session_name() . "=" . session_id()); } else { $tmpquery = "WHERE org.id = '{$id}'"; } } else { if ($clientsFilter == "true" && $profilSession == "1") { $tmpquery = "WHERE org.owner = '{$idSession}' AND org.id = '{$id}'"; } else { $tmpquery = "WHERE org.id = '{$id}'"; } } $clientDetail = new request(); $clientDetail->openOrganizations($tmpquery); $comptClientDetail = count($clientDetail->org_id); if ($comptClientDetail == "0") { headerFunction("../clients/listclients.php?msg=blankClient&" . session_name() . "=" . session_id()); } $setTitle .= " : View Client (" . $clientDetail->org_name[0] . ")"; include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/listclients.php?", $strings["clients"], in)); $blockPage->itemBreadcrumbs($clientDetail->org_name[0]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block(); $block1->form = "ecD"; $block1->openForm("../projects/listprojects.php?" . session_name() . "=" . session_id() . "#" . $block1->form . "Anchor");
<?php #Application name: PhpCollab #Status page: 0 $checkSession = "true"; include_once '../includes/library.php'; if ($enableHelpSupport != "true") { headerFunction('../general/permissiondenied.php?' . session_name() . '=' . session_id()); exit; } if ($supportType == "admin") { if ($profilSession != "0") { headerFunction('../general/permissiondenied.php?' . session_name() . '=' . session_id()); exit; } } $tmpquery = "WHERE pro.id = '{$id}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); $teamMember = "false"; $tmpquery = "WHERE tea.project = '{$id}' AND tea.member = '{$idSession}'"; $memberTest = new request(); $memberTest->openTeams($tmpquery); $comptMemberTest = count($memberTest->tea_id); if ($comptMemberTest == "0") { $teamMember = "false"; } else { $teamMember = "true"; } include '../themes/' . THEME . '/header.php'; $blockPage = new block();
<?php /** * Remove Files * @author David Bates (norman77) * @since 2008-11-20 * * This file will attempt to remove the setup.php file. */ require_once "../includes/library.php"; if (file_exists("setup.php")) { @unlink("setup.php"); } headerFunction("../administration/admin.php");
} } else { if ($docopy == "true") { uploadFile("files/{$project}", $_FILES['upload']['tmp_name'], $upload_name); $size = file_info_size("../files/{$project}/{$upload_name}"); //$dateFile = file_info_date("../files/$project/$upload_name"); $chaine = strrev("../files/{$project}/{$upload_name}"); $tab = explode(".", $chaine); $extension = strtolower(strrev($tab[0])); } } if ($docopy == "true") { $name = "{$upload_name}"; $tmpquery = "UPDATE " . $tableCollab["files"] . " SET name='{$name}',date='{$dateheure}',size='{$size}',extension='{$extension}',vc_version='{$oldversion}' WHERE id = '{$num}'"; connectSql("{$tmpquery}"); headerFunction("clientfiledetail.php?id={$sendto}&msg=addFile&" . session_name() . "=" . session_id()); exit; } } //--------------------------------------------------------------------------------------------------- $bouton[4] = "over"; $titlePage = $strings["document"]; include "include_header.php"; // TABLE 1 - FILE DETAILS TABLE. echo "<table cellpadding=20 cellspacing=0 border=0 width=\"100%\">\n <tr>\n <td><h1 class=\"heading\">" . $strings["document"] . "</h1>\n\t<table cellspacing=\"0\" width=\"90%\" border=\"0\" cellpadding=\"4\" cols=\"4\">\n\t<tr><td width=\"40%\"><table cellspacing=\"0\" width=\"100%\" border=\"0\" cellpadding=\"0\">"; echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue2\">" . $strings["type"] . " : </td><td><img src=\"../interface/icones/{$type}\" border=\"0\" alt=\"\"></td></tr>\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue2\">" . $strings["name"] . " : </td><td>" . $fileDetail->fil_name[0] . "</td></tr>\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue2\">" . $strings["vc_version"] . " :</td><td>" . $fileDetail->fil_vc_version[0] . "</td></tr>\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue2\">" . $strings["ifc_last_date"] . " :</td><td>" . $fileDetail->fil_date[0] . "</td></tr>\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue2\">" . $strings["size"] . ":</td><td>" . convertSize($fileDetail->fil_size[0]) . "</td></tr>\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue2\">" . $strings["owner"] . " :</td><td><a href=\"contactdetail.php?{$transmitSid}&id=" . $fileDetail->fil_mem_id[0] . "\">" . $fileDetail->fil_mem_name[0] . "</a> (<a href=\"mailto:" . $fileDetail->fil_mem_email_work[0] . "\">" . $fileDetail->fil_mem_login[0] . "</a>)</td></tr>"; if ($fileDetail->fil_comments[0] != "") { echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue2\">" . $strings["comments"] . " :</td><td>" . nl2br($fileDetail->fil_comments[0]) . "</td></tr>"; } $idStatus = $fileDetail->fil_status[0]; echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue2\">" . $strings["approval_tracking"] . " :</td><td><a href=\"docitemapproval.php?{$transmitSid}&id=" . $fileDetail->fil_id[0] . "\">{$statusFile[$idStatus]}</a></td></tr>";
$message .= "\n\n" . $partFooter; // THE BELOW FROM LINE IS HARDCODED SINCE THE NOTIFICATION CLASS IS NOT BEING USED AND GLOBALS CAN'T REACH $headers = "Content-type:text/plain;charset=\"{$setCharset}\"\nFrom: \"Support\" <" . $supportEmail . ">\nX-Priority: {$priorityMail}\nX-Mailer: PhpCollab {$version}"; @mail("{$em}", "{$partSubject}", "{$message}", "{$headers}"); // SEND A NOTIFICATION EMAIL TO ADMIN - HARD CODED @mail($supportEmail, "Activation Success", "This message was generated by phpCollab:\n\t----------------------------------------------------\n\tAccount Activated For: {$fn}\n\tAccount Username: {$un}\n\tAccount Password: {$pwa}", "{$headers}"); } // END send notification text message //if mantis bug tracker enabled if ($enableMantis == "true") { // Call mantis function for new user creation!!! $f_access_level = $client_user_level; // Reporter include "../mantis/create_new_user.php"; } headerFunction("../clients/viewclient.php?id={$clod}&msg=add&" . session_name() . "=" . session_id()); exit; } } } } $bodyCommand = "onLoad=\"document.client_user_addForm.un.focus();\""; include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/listclients.php?", $strings["clients"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/viewclient.php?id=" . $clientDetail->org_id[0], $clientDetail->org_name[0], in)); $blockPage->itemBreadcrumbs($strings["add_client_user"]); $blockPage->closeBreadcrumbs(); if ($msg != "") { include '../includes/messages.php';
} } else { if (file_exists("../files/" . $project . "/" . $listFiles->fil_name[$i])) { deleteFile("files/" . $project . "/" . $listFiles->fil_name[$i]); } } } connectSql("{$tmpquery1}"); if ($sendto == "filedetails") { headerFunction("../linkedcontent/viewfile.php?id=" . $listFiles->fil_vc_parent[0] . "&msg=deleteFile&" . session_name() . "=" . session_id()); } else { if ($task != "0") { headerFunction("../tasks/viewtask.php?id={$task}&msg=deleteFile&" . session_name() . "=" . session_id()); exit; } else { headerFunction("../projects/viewproject.php?id={$project}&msg=deleteFile&" . session_name() . "=" . session_id()); exit; } } } $tmpquery = "WHERE pro.id = '{$project}'"; $projectDetail = new request(); $projectDetail->openProjects($tmpquery); if ($task != "0") { $tmpquery = "WHERE tas.id = '{$task}'"; $taskDetail = new request(); $taskDetail->openTasks($tmpquery); } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs();
} $ttt = convertData($ttt); $tpm = convertData($tpm); $tmpquery1 = "INSERT INTO " . $tableCollab["topics"] . "(project,owner,subject,status,last_post,posts,published) VALUES('{$project}','{$idSession}','{$ttt}','1','{$dateheure}','1','{$pub}')"; connectSql("{$tmpquery1}"); $tmpquery = $tableCollab["topics"]; last_id($tmpquery); $num = $lastId[0]; unset($lastId); autoLinks($tpm); $tmpquery2 = "INSERT INTO " . $tableCollab["posts"] . "(topic,member,created,message) VALUES('{$num}','{$idSession}','{$dateheure}','{$newText}')"; connectSql("{$tmpquery2}"); if ($notifications == "true") { include "../topics/noti_newtopic.php"; } headerFunction("../topics/viewtopic.php?project={$project}&id={$num}&msg=add&" . session_name() . "=" . session_id()); } $teamMember = "false"; $tmpquery = "WHERE tea.project = '" . $projectDetail->pro_id[0] . "' AND tea.member = '{$idSession}'"; $memberTest = new request(); $memberTest->openTeams($tmpquery); $comptMemberTest = count($memberTest->tea_id); if ($comptMemberTest == "0") { $teamMember = "false"; } else { $teamMember = "true"; } if ($teamMember == "false" && $projectsFilter == "true") { header("Location:../general/permissiondenied.php?" . session_name() . "=" . session_id()); exit; }