当前位置: 首页>>代码示例>>PHP>>正文


PHP headerFunction函数代码示例

本文整理汇总了PHP中headerFunction函数的典型用法代码示例。如果您正苦于以下问题:PHP headerFunction函数的具体用法?PHP headerFunction怎么用?PHP headerFunction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了headerFunction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: request

            $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();
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:adduser.php

示例2: convertData

<?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();
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:assignmentcomment.php

示例3: request

** 	23/03/2004	-	added new document info
**  23/03/2004  -	added team full palette hack by Russell E Glaue <rglaue@cait.org>
** -----------------------------------------------------------------------------
** 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") {
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:listusers.php

示例4: headerFunction

<?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;
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:index.php

示例5: request

#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>&nbsp;</th><td>&nbsp;</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'>&nbsp;</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") {
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:showallthreads.php

示例6: convertData

            $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 {
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:editnews.php

示例7: connectSql

}
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";
    }
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:editinvoice.php

示例8: str_replace

**
** 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 != "") {
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:deletebookmarks.php

示例9: count

            $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") {
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:editproject.php

示例10: count

            $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';
        }
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:edittask.php

示例11: convertData

#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>*&nbsp;" . $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>*&nbsp;" . $strings["message"] . " :</th><td colspan=\"2\"><textarea rows=\"3\" name=\"messageField\" cols=\"43\"></textarea></td></tr>\n<tr><th>&nbsp;</th><td colspan=\"2\"><input name=\"submit\" type=\"submit\" value=\"" . $strings["save"] . "\"></td></tr>\n</table>\n</form>";
include "include_footer.php";
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:createthread.php

示例12: request

$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>&nbsp;</th><td><input type=\"SUBMIT\" value=\"" . $strings["submit"] . "\"></td></tr>\n</table>\n</form>";
include "include_footer.php";
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:addsupportpost.php

示例13: connectSql

    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();
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:deleteclientusers.php

示例14: connectSql

<?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());
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:deleteprojectsite.php

示例15: uploadFile

            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";
}
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:addfile.php


注:本文中的headerFunction函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。