• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP headerFunction函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了headerFunction函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 <[email protected]>
** -----------------------------------------------------------------------------
** 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


示例16: delDir

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


示例17: fclose

# 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"]);
开发者ID:ColBT,项目名称:php_tut,代码行数:30,代码来源:updatesettings.php


示例18: IN

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


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


示例20: headerFunction

<?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";
开发者ID:ColBT,项目名称:php_tut,<

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP headerRedirect函数代码示例发布时间:2022-05-15
下一篇:
PHP header函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap