本文整理汇总了PHP中session_get_properties函数的典型用法代码示例。如果您正苦于以下问题:PHP session_get_properties函数的具体用法?PHP session_get_properties怎么用?PHP session_get_properties使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了session_get_properties函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Copyright
# ---------------------------------------------------------------------
# rth is a requirement, test, and bugtracking system
# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Test Detail New Upload Action Page
#
# $RCSfile: test_detail_new_upload_action.php,v $ $Revision: 1.8 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$page = basename(__FILE__);
$s_test_details = session_get_properties("test");
$project_prop = session_get_project_properties();
$test_id = $s_test_details['test_id'];
$project_id = $project_prop['project_id'];
$redirect_page = "test_detail_page.php?test_id={$test_id}&project_id={$project_id}&tab=2";
$redirect_on_error = "test_detail_page.php?test_id={$test_id}&project_id={$project_id}&tab=2";
session_validate_form_set($_POST, $redirect_page);
$project_properties = session_get_project_properties();
$upload_path = $project_properties['test_upload_path'];
$s_user = session_get_user_properties();
$username = $s_user['username'];
$test_name = test_get_name($test_id);
$comments = session_validate_form_get_field('comments');
$doc_type = session_validate_form_get_field('doc_type');
$upload_file_name = $_FILES['uploadfile']['name'];
$_FILES['uploadfile']['name'] = str_replace(" ", "_", $upload_file_name);
示例2: auth_authenticate_user
auth_authenticate_user();
$page = basename(__FILE__);
$project_manage_page = 'project_manage_page.php';
$project_add_page = 'project_add_page.php';
$project_edit_page = 'project_edit_page.php';
$user_manage_page = 'user_manage_page.php';
$user_add_page = 'user_add_page.php';
$project_manage_action = 'project_manage_action.php';
$delete_page = 'delete_page.php';
$s_project_properties = session_get_project_properties();
$project_name = $s_project_properties['project_name'];
$project_id = $s_project_properties['project_id'];
$s_user_properties = session_get_user_properties();
$user_id = $s_user_properties['user_id'];
session_set_properties("project_manage", $_GET);
$selected_project_properties = session_get_properties("project_manage");
$selected_project_id = $selected_project_properties['project_id'];
$project_manager = user_has_rights($selected_project_id, $user_id, MANAGER);
$redirect_url = $page . "?project_id=" . $selected_project_id;
$s_user_properties = session_get_user_properties();
$user_id = $s_user_properties['user_id'];
$row_style = '';
$order_by = MAN_DOC_TYPE_NAME;
$order_dir = "ASC";
$page_number = 1;
util_set_order_by($order_by, $_GET);
util_set_order_dir($order_dir, $_GET);
util_set_page_number($page_number, $_GET);
util_set_order_by($order_by, $_POST);
util_set_order_dir($order_dir, $_POST);
util_set_page_number($page_number, $_POST);
示例3: Copyright
<?php
# ---------------------------------------------------------------------
# rth is a requirement, test, and bugtracking system
# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ------------------------------------
# Project Add Req Doc Type Action
#
# $RCSfile: project_add_reqfunctionality_action.php,v $ $Revision: 1.1.1.1 $
# ------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$project_id = session_get_project_id();
$redirect_page = 'project_manage_reqfunctionality_page.php';
$proj_properties = session_get_properties("project_manage");
session_validate_form_set($_POST, $redirect_page);
if (project_reqfunctionality_exists($proj_properties['project_id'], session_validate_form_get_field('req_functionality_required'))) {
error_report_show($redirect_page, DUPLICATE_REQUIREMENT_FUNCTIONALITY);
}
project_add_req_functionality($proj_properties['project_id'], session_validate_form_get_field('req_functionality_required'));
session_validate_form_reset();
html_print_operation_successful("add_req_functionality_page", $redirect_page);
# ------------------------------------
# $Log: project_add_reqfunctionality_action.php,v $
# Revision 1.1.1.1 2005/11/30 23:00:57 gth2
# importing initial version - gth
#
# ------------------------------------
示例4: html_project_manage_map
function html_project_manage_map($map)
{
$release_properties = session_get_properties("project_manage");
$project_manage = session_get_properties('project_manage');
$html = "<table>" . NEWLINE;
$html .= "<tr>" . NEWLINE;
$html .= "\t<td>" . NEWLINE;
foreach ($map as $key) {
$hyperlink = "";
switch ($key) {
case "project_manage_link":
$hyperlink = "project_manage_page.php";
$text = project_get_name($project_manage['project_id']);
break;
case "area_tested_link":
$hyperlink = "project_manage_areatested_page.php";
$text = lang_get('area_tested');
break;
case "environment_link":
$hyperlink = "project_manage_environment_page.php";
$text = lang_get('environment');
break;
case "machine_link":
$hyperlink = "project_manage_machines_page.php";
$text = lang_get('machine');
break;
case "reqareacovered_link":
$hyperlink = "project_manage_reqareacovered_page.php";
$text = lang_get('req_area_covered');
break;
case "reqdoctype_link":
$hyperlink = "project_manage_reqdoctype_page.php";
$text = lang_get('req_doc_type');
break;
case "reqfunctionality_link":
$hyperlink = "project_manage_reqfunctionality_page.php";
$text = lang_get('req_functionality');
break;
case "testdoctype_link":
$hyperlink = "project_manage_testdoctype_page.php";
$text = lang_get('test_doc_type');
break;
case "testtype_link":
$hyperlink = "project_manage_testtype_page.php";
$text = lang_get('testtype');
break;
case "bug_category_link":
$hyperlink = "project_manage_bug_category_page.php";
$text = lang_get('bug_category');
break;
case "bug_component_link":
$hyperlink = "project_manage_bug_component_page.php";
$text = lang_get('bug_component');
break;
}
if ($hyperlink) {
$html .= "<table align=left>" . NEWLINE;
$html .= "<tr>" . NEWLINE;
$html .= "<td class='sub_menu' nowrap><b><a href='{$hyperlink}'>{$text}</a></b></td>" . NEWLINE;
$html .= "</tr>" . NEWLINE;
$html .= "</table>" . NEWLINE;
} else {
$html .= "<table align=left>" . NEWLINE;
$html .= "<tr>" . NEWLINE;
$html .= "<td class='sub_menu' nowrap><b>{$key}</b></td>" . NEWLINE;
$html .= "</tr>" . NEWLINE;
$html .= "</table>" . NEWLINE;
}
}
$html .= "\t</td>" . NEWLINE;
$html .= "</tr>" . NEWLINE;
$html .= "</table>" . NEWLINE;
print $html;
}
示例5: auth_authenticate_user
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ---------------------------------------------------------------------
# User Edit Account Page
#
# $RCSfile: user_edit_account_page.php,v $ $Revision: 1.1.1.1 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$page = basename(__FILE__);
$action_page = "user_edit_account_action.php";
$s_project_properties = session_get_project_properties();
$project_name = $s_project_properties['project_name'];
$project_id = $s_project_properties['project_id'];
session_set_properties("user_edit", $_GET);
$s_properties = session_get_properties("user_edit");
$selected_user_id = $s_properties['user_id'];
$s_user_properties = session_get_user_properties();
$user_id = $s_user_properties['user_id'];
if (empty($selected_user_id) || !user_has_rights($project_id, $user_id, MANAGER)) {
html_redirect('user_edit_my_account_page.php');
exit;
} else {
$selected_user_id = $selected_user_id;
}
require_once "user_edit_page.php";
# ---------------------------------------------------------------------
# $Log: user_edit_account_page.php,v $
# Revision 1.1.1.1 2005/11/30 23:00:59 gth2
# importing initial version - gth
#
示例6: Copyright
# rth is a requirement, test, and bugtracking system
# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Results Update Test Result Action Page
#
# $RCSfile: results_update_test_result_action.php,v $ $Revision: 1.2 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$page = basename(__FILE__);
$redirect_page = "results_page.php";
$project_id = session_get_project_id();
$s_results = session_get_properties("results");
$release_id = $s_results['release_id'];
$build_id = $s_results['build_id'];
$testset_id = $s_results['testset_id'];
$test_id = $s_results['test_id'];
$s_user = session_get_user_properties();
$username = $s_user['username'];
$comments = util_clean_post_vars('test_result_comments');
$root_cause = util_clean_post_vars('root_cause');
$status = util_clean_post_vars('test_result_status');
if ($status == "Passed") {
$finished = '1';
} else {
$finished = '0';
}
results_update_test_result($testset_id, $test_id, $username, $status, $root_cause, $finished, $comments);
示例7: auth_authenticate_user
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Test Delete Assoc Action Page
#
# $RCSfile: test_delete_assoc_action.php,v $ $Revision: 1.3 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$page = basename(__FILE__);
$action_page = 'requirement_assoc_action.php';
$s_project_properties = session_get_project_properties();
$project_name = $s_project_properties['project_name'];
$project_id = $s_project_properties['project_id'];
$properties = session_get_properties("test");
$test_id = $properties['test_id'];
$username = session_get_username();
$row_style = '';
$redirect_page = "test_detail_page.php?test_id=" . $test_id . "&project_id=" . $project_id;
$display_options = session_set_display_options("requirements", array_merge($_POST, $_GET));
$s_tab = $display_options['tab'];
$s_properties = session_set_properties("requirements", $_GET);
$s_req_id = $s_properties['req_id'];
switch ($_GET['assoc']) {
case "req":
requirement_delete_test_assoc($_GET['assoc_id']);
}
html_print_operation_successful('req_assoc_page', $redirect_page);
# ---------------------------------------------------------------------
# $Log: test_delete_assoc_action.php,v $
示例8: Copyright
<?php
# ---------------------------------------------------------------------
# rth is a requirement, test, and bugtracking system
# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Test Set Edit Action Page
#
# $RCSfile: testset_edit_action.php,v $ $Revision: 1.1.1.1 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$project_id = session_get_project_id();
#### Change to correct redirect page ####
$redirect_page = 'testset_page.php';
$s_properties = session_get_properties("release");
$s_release_id = $s_properties['release_id'];
$s_build_id = $s_properties['build_id'];
$s_testset_id = $s_properties['testset_id'];
session_records("testset_edit");
testset_edit_from_session($s_testset_id, TEST_TESTTYPE, "testset_edit");
html_print_operation_successful("edit_testset", $redirect_page);
# ---------------------------------------------------------------------
# $Log: testset_edit_action.php,v $
# Revision 1.1.1.1 2005/11/30 23:00:58 gth2
# importing initial version - gth
#
# ---------------------------------------------------------------------
示例9: session_set_properties
$s_results = session_set_properties("results", $_GET);
$testset_id = $s_results['testset_id'];
$test_id = $s_results['test_id'];
} else {
# coming from redirect etc, get stored testset_id and test_run_id
$s_results = session_get_properties("results");
$testset_id = $s_results['testset_id'];
$test_id = $s_results['test_id'];
}
$locked = testset_get_lock_status($testset_id);
html_window_title();
html_print_body();
html_page_title($project_name . " - " . lang_get('test_results'));
html_page_header($db, $project_name);
html_print_menu();
html_test_results_menu($db, $results_page, $project_id, session_get_properties("results", $_GET));
error_report_check($_GET);
if ($locked) {
print "<h3 class='hint'> <img src='images/locked.png' alt='locked'> Testset locked</h3>" . NEWLINE;
}
$row_test_detail = test_get_detail($test_id);
if (!empty($row_test_detail)) {
//results_print_test_detail_table( $row_test_detail );
print "<table class=width100 rules=cols>";
print "<tr class='tbl_header'>";
html_tbl_print_header(lang_get('test_id'));
html_tbl_print_header(lang_get('test_name'));
html_tbl_print_header(lang_get('ba_owner'));
html_tbl_print_header(lang_get('qa_owner'));
html_tbl_print_header(lang_get('area_tested'));
print "</tr>";
示例10: session_get_project_properties
$form_name = 'add_release';
$action_page = 'testset_add_action.php';
$release_edit_page = 'testset_page.php';
$release_signoff_page = 'release_signoff_page.php';
$build_page = 'build_page.php';
$delete_page = 'delete_page.php';
$s_project_properties = session_get_project_properties();
$project_name = $s_project_properties['project_name'];
$project_id = $s_project_properties['project_id'];
$row_style = '';
if (isset($_GET['failed'])) {
$is_validation_failure = $_GET['failed'];
} else {
$is_validation_failure = false;
}
$s_release_table_display_options = array_merge(session_get_display_options("results"), session_get_properties('results_properties'));
html_window_title();
html_print_body($form_name, 'rel_name');
html_page_title($project_name . " - " . lang_get('release_page'));
html_page_header($db, $project_name);
html_print_menu();
error_report_check($_GET);
$s_admin_properties = session_get_release_display_options();
?>
<script language="JavaScript" type="text/javascript">
function checkBoxValidate(cb, startCount, endCount) {
#Evaluates if the check box has been checked in the "All Regression" etc
//alert();
示例11: Copyright
<?php
# ---------------------------------------------------------------------
# rth is a requirement, test, and bugtracking system
# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ------------------------------------
# Bug Detail Update Action Page
#
# $RCSfile: bug_detail_update_action.php,v $ $Revision $
# ------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$s_bug_details = session_get_properties("bug");
$bug_id = $s_bug_details['bug_id'];
$redirect_on_success = 'bug_detail_page.php';
$redirect_on_error = 'bug_detail_update_page.php';
$redirect_on_closed = 'bug_close_page.php';
session_validate_form_set($_POST, $redirect_on_error);
$value = session_validate_form_get_field('bug_status');
bug_update($bug_id, session_validate_form_get_field('bug_status'), session_validate_form_get_field('bug_category'), session_validate_form_get_field('discovery_period'), session_validate_form_get_field('bug_component'), session_validate_form_get_field('bug_priority'), session_validate_form_get_field('bug_severity'), session_validate_form_get_field('found_in_release'), session_validate_form_get_field('assign_to_release'), session_validate_form_get_field('implemented_in_release'), session_validate_form_get_field('assigned_to'), session_validate_form_get_field('assigned_to_developer'), session_validate_form_get_field('summary_required'), session_validate_form_get_field('bug_description_required', "", session_use_FCKeditor()));
if ($value == 'Closed') {
html_redirect($redirect_on_closed . "?bug_id={$bug_id}");
}
session_validate_form_reset();
html_print_operation_successful('update_bug_page', $redirect_on_success);
# ------------------------------------
# $Log: bug_detail_update_action.php,v $
# Revision 1.1.1.1 2005/11/30 23:00:56 gth2
示例12: auth_authenticate_user
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Requirement Add New Version Page
#
# $RCSfile: requirement_add_new_version_page.php,v $ $Revision: 1.9 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$page = basename(__FILE__);
$project_properties = session_get_project_properties();
$project_id = $project_properties['project_id'];
$project_name = $project_properties['project_name'];
$username = session_get_username();
$s_properties = session_get_properties("requirements");
$s_req_id = $s_properties['req_id'];
$s_req_version_id = $s_properties['req_version_id'];
html_window_title();
html_print_body();
html_page_title($project_name . " - " . lang_get('requirements_new_version'));
html_page_header($db, $project_name);
html_print_menu();
requirement_menu_print($page);
print "<br><br>" . NEWLINE;
error_report_check($_GET);
$rows_requirement = requirement_get_detail($project_id, $s_req_id, $s_req_version_id);
$row_requirement = $rows_requirement[0];
foreach ($rows_requirement as $rows_req) {
$req_name = $rows_req[REQ_FILENAME];
$doc_type = $rows_req[REQ_DOC_TYPE_NAME];
示例13: auth_authenticate_user
#
# $RCSfile: testset_copy_add_page.php,v $ $Revision: 1.3 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$page = basename(__FILE__);
$form_name = 'add_testset';
$action_page = 'testset_copy_action.php';
$testset_edit_page = 'testset_edit_page.php';
$testset_add_tests_page = 'testset_add_tests_page.php';
$delete_page = 'delete_page.php';
$s_project_properties = session_get_project_properties();
$project_name = $s_project_properties['project_name'];
$project_id = $s_project_properties['project_id'];
$row_style = '';
$s_properties = session_get_properties("testset_copy");
$release_id = $s_properties['release_id'];
$release_name = admin_get_release_name($release_id);
$build_id = $s_properties['build_id'];
$build_name = admin_get_build_name($build_id);
session_records("testset_copy");
html_window_title();
html_print_body($form_name, 'testset_name_required');
html_page_title($project_name . " - " . lang_get('release_page'));
html_page_header($db, $project_name);
html_print_menu();
html_release_map(array("release_link", "build_link", lang_get("copy_testset_to")));
error_report_check($_GET);
print "<div align=center>" . NEWLINE;
print "<span class='required'>*</span> <span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE;
print "<table class=width60>" . NEWLINE;
示例14: Copyright
# ---------------------------------------------------------------------
# rth is a requirement, test, and bugtracking system
# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
#----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Results Update Test Run Action Page
#
# $RCSfile: results_update_test_run_action.php,v $ $Revision: 1.2 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
auth_authenticate_user();
$page = basename(__FILE__);
$s_results = session_get_properties('results', $_POST);
$s_user = session_get_user_properties();
$email_to = user_get_email_by_username($email_users);
session_validate_form_set($_POST);
$test_run_id = $s_results['test_run_id'];
$testset_id = $s_results['testset_id'];
$test_id = $s_results['test_id'];
$redirect_page = "results_test_run_page.php?test_id={$test_id}&testset_id={$testset_id}";
$username = $s_user['username'];
$comments = session_validate_form_get_field('test_run_comments');
$email_comments = $_POST['test_run_comments'];
# don't escape characters when sending e-mail
$status = $_POST['test_run_status'];
$root_cause = $_POST['root_cause'];
$email_users = $_POST['email_users'];
/*
示例15: basename
# ---------------------------------------------------------------------
# Test Step Edit Page
#
# $RCSfile: test_step_edit_page.php,v $ $Revision: 1.5 $
# ---------------------------------------------------------------------
include "./api/include_api.php";
$page = basename(__FILE__);
$update_action_page = 'test_detail_page.php';
$test_step_edit_page = 'test_step_edit_action.php';
$project_properties = session_get_project_properties();
$project_name = $project_properties['project_name'];
$project_id = $project_properties['project_id'];
//$test_id = $_GET['test_id'];
//$test_version_id = $_GET['test_version_id'];
$test_step_id = $_GET['test_step_id'];
$s_test_detail = session_get_properties('test');
$test_id = $s_test_detail['test_id'];
//$test_version_id = $s_test_detail['test_version_id'];
if (isset($_GET['failed'])) {
$is_validation_failure = $_GET['failed'];
} else {
$is_validation_failure = false;
}
html_window_title();
auth_authenticate_user();
html_page_title($project_name . " - " . lang_get('test_step_edit_page'));
html_page_header($db, $project_name);
html_print_menu();
test_menu_print($page);
html_print_body();
print "<br><br>";