Example #1
0
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
$t_plugin_path = config_get('plugin_path');
require_once $t_plugin_path . 'XmlImportExport' . DIRECTORY_SEPARATOR . 'ImportXml.php';
form_security_validate('plugin_xml_import_action');
auth_reauthenticate();
//var_dump( $_POST );
$f_file = gpc_get_file('file', -1);
$f_strategy = gpc_get_string('strategy');
$f_fallback = gpc_get_string('fallback');
$f_project = gpc_get_int('project_id');
// not used, but ensures a project is selected
$f_keepcategory = gpc_get_bool('keepcategory');
$f_defaultcategory = gpc_get_int('defaultcategory');
file_ensure_uploaded($f_file);
$importer = new ImportXML($f_file, $f_strategy, $f_fallback, $f_keepcategory, $f_defaultcategory);
form_security_purge('plugin_xml_import_action');
html_page_top(plugin_lang_get('import'));
print_manage_menu('manage_import_issues_page.php');
echo "<pre>\n";
$importer->import();
echo "</pre>\n";
html_page_bottom();
 * ii) "Print Issues Columns" - These are the fields that are included when printing out bug
 * details.
 * iii) "Export Issues Columns" - These are the list of fields included when exporting an issue from
 * the bug tracker.
 * Note: These are now shared between different types of exports - for example, the core MantisBT
 * distribution can export to Excel and Word Documents.
 *
 * The settings defined here can be allocated to the current project, or All Projects. In addition,
 * it is possible to copy the column configuration between different projects.
 *
 * @package MantisBT
 * @copyright Copyright 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright 2002  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 *
 * @uses core.php
 * @uses current_user_api.php
 * @uses html_api.php
 * @uses lang_api.php
 */
require_once 'core.php';
require_api('current_user_api.php');
require_api('html_api.php');
require_api('lang_api.php');
html_page_top(lang_get('manage_columns_config'));
current_user_ensure_unprotected();
# Define constant that will be checked by the include page.
define('ACCOUNT_COLUMNS', true);
define('MANAGE_COLUMNS_INC_ALLOW', true);
include dirname(__FILE__) . '/manage_columns_inc.php';
html_page_bottom();
#
# Copyright (C) 2012-2014 gadiv GmbH
#
# agileMantis is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with agileMantis. If not, see <http://www.gnu.org/licenses/>.
html_page_top(plugin_lang_get('assume_userstories_title'));
# merge global $_GET / $_POST array
$request = array_merge($_POST, $_GET);
# get information about product backlog, sprint backlog and latest page
$product_backlog = $request['product_backlog'];
$sprintName = $request['sprintName'];
$fromPage = $request['fromPage'];
# get further sprint information
$agilemantis_sprint->sprint_id = $request['sprintName'];
$sprintinfo = $agilemantis_sprint->getSprintById();
# check if different units existing
$different_units = false;
if ($agilemantis_sprint->getUnitId(plugin_config_get('gadiv_task_unit_mode')) != $sprintinfo['unit_planned_task'] && isset($request['action']) && $sprintinfo['status'] == 1) {
    $different_units = true;
}
if ($request['action'] == 'save') {
$t_show_product_version = $t_show_versions && in_array('product_version', $t_fields);
$t_show_product_build = $t_show_versions && in_array('product_build', $t_fields) && config_get('enable_product_build') == ON;
$t_show_target_version = $t_show_versions && in_array('target_version', $t_fields) && access_has_project_level(config_get('roadmap_update_threshold'));
$t_show_additional_info = in_array('additional_info', $t_fields);
$t_show_due_date = in_array('due_date', $t_fields) && access_has_project_level(config_get('due_date_update_threshold'), helper_get_current_project(), auth_get_current_user_id());
$t_show_attachments = in_array('attachments', $t_fields) && file_allow_bug_upload();
$t_show_view_state = in_array('view_state', $t_fields) && access_has_project_level(config_get('set_view_status_threshold'));
if ($t_show_due_date) {
    require_js('jscalendar/calendar.js');
    require_js('jscalendar/lang/calendar-en.js');
    require_js('jscalendar/calendar-setup.js');
    require_css('calendar-blue.css');
}
# don't index bug report page
html_robots_noindex();
html_page_top(lang_get('report_bug_link'));
print_recently_visited();
$t_form_encoding = '';
if ($t_show_attachments) {
    $t_form_encoding = 'enctype="multipart/form-data"';
}
?>
<br />
<form name="report_bug_form" method="post" <?php 
echo $t_form_encoding;
?>
 action="bug_report.php">
<?php 
echo form_security_field('bug_report');
?>
<div class="table-container">
Example #5
0
function print_successful_redirect($p_redirect_to)
{
    if (helper_log_to_page()) {
        html_page_top(null, $p_redirect_to);
        echo '<br /><div class="center">';
        echo lang_get('operation_successful') . '<br />';
        print_bracket_link($p_redirect_to, lang_get('proceed'));
        echo '</div>';
        html_page_bottom();
    } else {
        print_header_redirect($p_redirect_to);
    }
}
        access_ensure_project_level(config_get('manage_news_threshold'), $row['project_id']);
    }
    helper_ensure_confirmed(lang_get('delete_news_sure_msg'), lang_get('delete_news_item_button'));
    news_delete($f_news_id);
    form_security_purge('news_delete');
    print_header_redirect('news_menu_page.php', true);
}
# Retrieve news item data and prefix with v_
$row = news_get_row($f_news_id);
if ($row) {
    extract($row, EXTR_PREFIX_ALL, 'v');
}
access_ensure_project_level(config_get('manage_news_threshold'), $v_project_id);
$v_headline = string_attribute($v_headline);
$v_body = string_textarea($v_body);
html_page_top(lang_get('edit_news_title'));
# Edit News Form BEGIN
?>
<br />
<div align="center">
<form method="post" action="news_update.php">
<?php 
echo form_security_field('news_update');
?>
<table class="width75" cellspacing="1">
<tr>
	<td class="form-title">
		<input type="hidden" name="news_id" value="<?php 
echo $v_id;
?>
" />
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('string_api.php');
auth_ensure_user_authenticated();
$f_ref = string_sanitize_url(gpc_get_string('ref', ''));
if (count(current_user_get_accessible_projects()) == 1) {
    $t_project_ids = current_user_get_accessible_projects();
    $t_project_id = (int) $t_project_ids[0];
    if (count(current_user_get_accessible_subprojects($t_project_id)) == 0) {
        $t_ref_urlencoded = string_url($f_ref);
        print_header_redirect("set_project.php?project_id={$t_project_id}&ref={$t_ref_urlencoded}", true);
        /* print_header_redirect terminates script execution */
    }
}
html_page_top(lang_get('select_project_button'));
?>

<!-- Project Select Form BEGIN -->
<div id="select-project-div" class="form-container">
	<form id="select-project-form" method="post" action="set_project.php">
		<?php 
# CSRF protection not required here - form does not result in modifications
?>
		<fieldset>
			<legend><span><?php 
echo lang_get('choose_project');
?>
</span></legend>
			<input type="hidden" name="ref" value="<?php 
echo string_html_specialchars($f_ref);
Example #8
0
            print_test_row('Checking Table Collation is utf8 for ' . $row['Name'] . '....', substr($row['Collation'], 0, 5) === 'utf8_', $row['Collation']);
        }
    }
    foreach (db_get_table_list() as $t_table) {
        if (db_table_exists($t_table)) {
            $result = db_query_bound('SHOW FULL FIELDS FROM ' . $t_table);
            while ($row = db_fetch_array($result)) {
                if ($row['Collation'] === null) {
                    continue;
                }
                print_test_row('Checking Non-null Column Collation in ' . $t_table . ' is utf8 for ' . $row['Field'] . '....', substr($row['Collation'], 0, 5) === 'utf8_', $row['Collation'] . ' ( ' . $row['Type'] . ')');
            }
        }
    }
}
html_page_top('MantisBT Administration - Check Installation');
?>
<table class="width75" align="center" cellspacing="1">
<tr>
<td class="form-title" width="30%" colspan="2"><?php 
echo 'Checking your installation';
?>
</td>
</tr>

<?php 
print_test_row('MantisBT requires at least <b>PHP ' . PHP_MIN_VERSION . '</b>. You are running <b>PHP ' . phpversion(), $result = version_compare(phpversion(), PHP_MIN_VERSION, '>='));
if (!print_test_row('Checking Config File Exists', file_exists($g_absolute_path . 'config_inc.php'), array(false => 'Please use install.php to perform initial installation <a href="install.php">Click here</a>'))) {
    die;
}
print_test_row('Opening connection to database [' . config_get_global('database_name') . '] on host [' . config_get_global('hostname') . '] with username [' . config_get_global('db_username') . ']', @db_connect(config_get_global('dsn', false), config_get_global('hostname'), config_get_global('db_username'), config_get_global('db_password'), config_get_global('database_name')) != false);
Example #9
0
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
/**
 * @todo FIXME: Looks like "From", "to", and "Copy" need i18n. Possibly more in this file.
 * @package MantisBT
 * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright (C) 2002 - 2013  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 */
/**
 * MantisBT Core API's
 */
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'core.php';
access_ensure_global_level(config_get_global('admin_site_threshold'));
html_page_top('MantisBT Administration - System Utilities');
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
	<tr class="top-bar">
		<td class="links">
			[ <a href="index.php">Back to MantisBT Administration</a> ]
		</td>
		<td class="title">
			System Utilities
		</td>
	</tr>
</table>
<br /><br />

<table width="80%" bgcolor="#222222" border="0" cellpadding="10" cellspacing="1">
	<tr><td bgcolor=\"#e8e8e8\" colspan=\"2\"><span class=\"title\">Upgrade Utilities</span></td></tr>
    echo '  <td' . color_notify_flag($p_message_type, 'bugnotes') . '>' . show_notify_flag($p_message_type, 'bugnotes') . '</td>' . "\n";
    echo '  <td' . color_notify_flag($p_message_type, 'category') . '>' . show_notify_flag($p_message_type, 'category') . '</td>' . "\n";
    foreach ($t_access_levels as $t_access_level) {
        echo '  <td' . color_threshold_flag($t_access_level, $p_message_type) . '>' . show_notify_threshold($t_access_level, $p_message_type) . '</td>' . "\n";
    }
    echo '</tr>' . "\n";
}
/**
 * HTML for email section end
 * @return void
 */
function get_section_end_for_email()
{
    echo '</tbody></table></div><br />' . "\n";
}
html_page_top(lang_get('manage_email_config'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('manage_config_email_page.php');
$t_access = current_user_get_access_level();
$t_project = helper_get_current_project();
# build a list of all of the actions
$t_actions = email_get_actions();
# build a composite of the status flags, exploding the defaults
$t_global_default_notify_flags = config_get('default_notify_flags', null, ALL_USERS, ALL_PROJECTS);
$g_global_notify_flags = array();
foreach ($t_global_default_notify_flags as $t_flag => $t_value) {
    foreach ($t_actions as $t_action) {
        $g_global_notify_flags[$t_action][$t_flag] = $t_value;
    }
}
$g_global_notify_flags = array_merge_recursive2($g_global_notify_flags, config_get('notify_flags', null, ALL_USERS, ALL_PROJECTS));
Example #11
0
user_ensure_exists($f_user_id);
$t_user = user_get_row($f_user_id);
# Ensure that the account to be reset is of equal or lower access to the
# current user.
access_ensure_global_level($t_user['access_level']);
# If the password can be changed, we reset it, otherwise we unlock
# the account (i.e. reset failed login count)
$t_reset = helper_call_custom_function('auth_can_change_password', array());
if ($t_reset) {
    $t_result = user_reset_password($f_user_id);
} else {
    $t_result = user_reset_failed_login_count_to_zero($f_user_id);
}
$t_redirect_url = 'manage_user_page.php';
form_security_purge('manage_user_reset');
html_page_top(null, $t_result ? $t_redirect_url : null);
echo '<div class="success-msg">';
if ($t_reset) {
    if (false == $t_result) {
        # PROTECTED
        echo lang_get('account_reset_protected_msg');
    } else {
        # SUCCESSFUL RESET
        if (ON == config_get('send_reset_password') && ON == config_get('enable_email_notification')) {
            # send the new random password via email
            echo lang_get('account_reset_msg');
        } else {
            # email notification disabled, then set the password to blank
            echo lang_get('account_reset_msg2');
        }
    }
/**
 * Print the top part for the bug action group page.
 * @return void
 */
function bug_group_action_print_top()
{
    html_page_top();
}
Example #13
0
// Workaround to prevent error messages if custom_strings_inc.php is missing
function lang_get_failsave_custom_field($p_custom_field_name)
{
    if (lang_exists($p_custom_field_name, lang_get_current())) {
        $t_str = lang_get($p_custom_field_name);
    } else {
        $t_str = plugin_lang_get($p_custom_field_name);
    }
    return $t_str;
}
$t_locale_ranking_order = lang_get_failsave_custom_field('RankingOrder');
$t_locale_presentable = lang_get_failsave_custom_field('Presentable');
$t_locale_technical = lang_get_failsave_custom_field('Technical');
$t_locale_in_release_doku = lang_get_failsave_custom_field('InReleaseDocu');
$t_locale_planned_work = lang_get_failsave_custom_field('PlannedWork');
html_page_top(plugin_lang_get('manage_settings_title'));
$disable_combobox_task_unit = "";
# checks if the current user is administrator oder agileMantis administrator
if (current_user_is_administrator() || $_SESSION['AGILEMANTIS_ISMANTISADMIN'] == 1) {
    ?>
<br>
<?php 
    if ($_GET['error'] == 'workday_error') {
        $system = plugin_lang_get('manage_settings_error_984100');
    }
    if ($_GET['error'] == 'sprint_length_error') {
        $system = plugin_lang_get('manage_settings_error_984101');
    }
    if ($_GET['error'] == 'no_license_error') {
        $system = plugin_lang_get('manage_settings_error_984102');
    }
Example #14
0
#
# Copyright (C) 2012-2014 gadiv GmbH
#
# agileMantis is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with agileMantis. If not, see <http://www.gnu.org/licenses/>.
html_page_top(plugin_lang_get('manage_capacity_title'));
?>
<br>
<?php 
include AGILEMANTIS_PLUGIN_URI . '/pages/footer_menu.php';
# add back button action
if ($_POST['back_button']) {
    header($agilemantis_sprint->forwardReturnToPage('capacity.php'));
} else {
    # save / update developer / team capacities
    if (!empty($_POST['capacity']) && !$_POST['addavailability']) {
        foreach ($_POST['capacity'] as $user => $date) {
            $count_over_capacity[$user] = 0;
            foreach ($date as $num => $row) {
                if ($row != "") {
                    $row = str_replace(',', '.', $row);
 */
require_once 'core.php';
require_api('access_api.php');
require_api('authentication_api.php');
require_api('config_api.php');
require_api('constant_inc.php');
require_api('form_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('project_api.php');
require_api('string_api.php');
require_api('user_api.php');
auth_reauthenticate();
html_page_top(lang_get('manage_threshold_config'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('manage_config_work_threshold_page.php');
$t_user = auth_get_current_user_id();
$t_project_id = helper_get_current_project();
$t_access = user_get_access_level($t_user, $t_project_id);
$t_show_submit = false;
$t_access_levels = MantisEnum::getAssocArrayIndexedByValues(config_get('access_levels_enum_string'));
$t_overrides = array();
function set_overrides($p_config)
{
    global $t_overrides;
    if (!in_array($p_config, $t_overrides)) {
        $t_overrides[] = $p_config;
    }
}
Example #16
0
require_api('lang_api.php');
require_api('print_api.php');
require_api('project_api.php');
require_api('project_hierarchy_api.php');
require_api('string_api.php');
require_api('user_api.php');
require_api('utility_api.php');
require_api('version_api.php');
auth_reauthenticate();
$f_project_id = gpc_get_int('project_id');
$f_show_global_users = gpc_get_bool('show_global_users');
project_ensure_exists($f_project_id);
access_ensure_project_level(config_get('manage_project_threshold'), $f_project_id);
$row = project_get_row($f_project_id);
$t_can_manage_users = access_has_project_level(config_get('project_user_threshold'), $f_project_id);
html_page_top(project_get_field($f_project_id, 'name'));
print_manage_menu('manage_proj_edit_page.php');
?>
<br />
<!-- PROJECT PROPERTIES -->
<div align="center">
<form method="post" action="manage_proj_update.php">
<?php 
echo form_security_field('manage_proj_update');
?>
<table class="width75" cellspacing="1">

<!-- Title -->
<tr>
	<td class="form-title" colspan="2">
		<input type="hidden" name="project_id" value="<?php 
<?php

auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
html_page_top(lang_get('plugin_themeManager_title'));
print_manage_menu();
// Variables
$error = false;
// Load available themes
$themes = getThemes($error);
?>

<style type="text/css">
    .mantisbt-theme-manager .theme-name-active {font-weight:bold;}

    .mantisbt-theme-manager img {
        width:200px;
        border:3px solid #fff;

        overflow-y:hidden;

        -webkit-border-radius:5px;
           -moz-border-radius:5px;
                border-radius:5px;

        -webkit-box-shadow: 2px 2px 10px #777;
           -moz-box-shadow: 2px 2px 10px #777;
                box-shadow: 2px 2px 10px #777;

        -webkit-transition: all .3s ease-in-out;
           -moz-transition: all .3s ease-in-out;
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
#
#  Autochange status Plugin for Mantis BugTracker :
#  © Hennes Hervé <*****@*****.**>
#    2015-2016
#  http://www.h-hennes.fr/blog/
auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
html_page_top(plugin_lang_get('title'));
print_manage_menu();
$t_user_table = db_get_table('mantis_user_table');
$query = "SELECT id,username\r\n        FROM {$t_user_table}\r\n        ORDER BY username ASC";
$t_users = db_query($query);
#$t_changes_table  = db_get_table('mantis_autochange_status');
$query_changes = "SELECT * FROM mantis_autochange_status";
$t_changes = db_query($query_changes);
$t_changes_number = db_num_rows($t_changes);
#Nom des statuts avec les traductions
$t_status_names = MantisEnum::getAssocArrayIndexedByValues(lang_get('status_enum_string'));
?>
<br />
<h2><?php 
echo plugin_lang_get('plugin_config_general_description');
?>
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
form_security_validate('manage_custom_field_update');
auth_reauthenticate();
access_ensure_global_level(config_get('manage_custom_fields_threshold'));
$f_field_id = gpc_get_int('field_id');
$f_return = strip_tags(gpc_get_string('return', 'manage_custom_field_page.php'));
$t_values['name'] = gpc_get_string('name');
$t_values['type'] = gpc_get_int('type');
$t_values['possible_values'] = gpc_get_string('possible_values');
$t_values['default_value'] = gpc_get_string('default_value');
$t_values['valid_regexp'] = gpc_get_string('valid_regexp');
$t_values['access_level_r'] = gpc_get_int('access_level_r');
$t_values['access_level_rw'] = gpc_get_int('access_level_rw');
$t_values['length_min'] = gpc_get_int('length_min');
$t_values['length_max'] = gpc_get_int('length_max');
$t_values['display_report'] = gpc_get_bool('display_report');
$t_values['display_update'] = gpc_get_bool('display_update');
$t_values['display_resolved'] = gpc_get_bool('display_resolved');
$t_values['display_closed'] = gpc_get_bool('display_closed');
$t_values['require_report'] = gpc_get_bool('require_report');
$t_values['require_update'] = gpc_get_bool('require_update');
$t_values['require_resolved'] = gpc_get_bool('require_resolved');
$t_values['require_closed'] = gpc_get_bool('require_closed');
$t_values['filter_by'] = gpc_get_bool('filter_by');
custom_field_update($f_field_id, $t_values);
form_security_purge('manage_custom_field_update');
html_page_top(null, $f_return);
html_operation_successful($f_return);
html_page_bottom();
Example #20
0
#Number of pages from result
$t_page_count = ceil($t_total_tag_count / $t_per_page);
if ($t_page_count < 1) {
    $t_page_count = 1;
}
# Make sure $p_page_number isn't past the last page.
if ($f_page_number > $t_page_count) {
    $f_page_number = $t_page_count;
}
# Make sure $p_page_number isn't before the first page
if ($f_page_number < 1) {
    $f_page_number = 1;
}
# Retrieve Tags from table
$t_result = tag_get_all($t_name_filter, $t_per_page, $t_offset);
html_page_top(lang_get('manage_tags_link'));
print_manage_menu('manage_tags_page.php');
?>

<div id="manage-tags-filter-menu">
	<ul class="menu"><?php 
foreach ($t_prefix_array as $t_prefix) {
    $t_caption = $t_prefix === 'ALL' ? lang_get('show_all_tags') : $t_prefix;
    if ($t_prefix == $f_filter) {
        $t_link = '<strong>' . $t_caption . '</strong>';
    } else {
        $t_link = '<a href="manage_tags_page.php?filter=' . $t_prefix . '">' . $t_caption . '</a>';
    }
    echo '<li>' . $t_link . '</li>';
}
?>
Example #21
0
require_api('print_api.php');
require_api('project_api.php');
require_api('sponsorship_api.php');
require_api('string_api.php');
require_api('version_api.php');
require_css('status_config.php');
if (!config_get('enable_sponsorship')) {
    trigger_error(ERROR_SPONSORSHIP_NOT_ENABLED, ERROR);
}
# anonymous users are not allowed to sponsor issues
if (current_user_is_anonymous()) {
    access_denied();
}
$t_show_all = gpc_get_bool('show_all', false);
# start the page
html_page_top(lang_get('my_sponsorship'));
$t_project = helper_get_current_project();
?>
<br />
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title">
		<?php 
echo lang_get('my_sponsorship');
?>
	</td>
	<td class="right">
		<?php 
print_account_menu('account_sponsor_page.php');
?>
	</td>
 * requires ajax_api
 */
require_once 'ajax_api.php';
/**
 * requires tag_api
 */
require_once 'tag_api.php';
compress_enable();
$f_tag_id = gpc_get_int('tag_id');
$t_tag_row = tag_get($f_tag_id);
$t_name = string_display_line($t_tag_row['name']);
$t_description = string_display($t_tag_row['description']);
if (!(access_has_global_level(config_get('tag_edit_threshold')) || auth_get_current_user_id() == $t_tag_row['user_id'] && access_has_global_level(config_get('tag_edit_own_threshold')))) {
    access_denied();
}
html_page_top(sprintf(lang_get('tag_update'), $t_name));
?>

<br />
<form method="post" action="tag_update.php">
<?php 
echo form_security_field('tag_update');
?>
<table class="width100" cellspacing="1">

<!-- Title -->
<tr>
	<td class="form-title" colspan="2">
		<?php 
echo sprintf(lang_get('tag_update'), $t_name);
?>
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
/**
 * This page displays "improved" charts on priorities : bars, 3Dpie and a mix priorities per status
 *
 * @package MantisBT
 * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright (C) 2002 - 2013  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 */
/**
 * MantisBT Core API's
 */
require_once 'core.php';
require_once 'graph_api.php';
access_ensure_project_level(config_get('view_summary_threshold'));
html_page_top();
print_summary_menu('summary_page.php');
echo '<br />';
print_summary_submenu();
$t_width = plugin_config_get('window_width');
$t_graph_width = (int) (($t_width - 50) * 0.6);
# gather the data for the graphs
$t_metrics = enum_bug_group(lang_get('priority_enum_string'), 'priority');
$t_token = token_set(TOKEN_GRAPH, serialize($t_metrics));
?>

<br />
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title">
		<?php 
Example #24
0
 * @copyright Copyright 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright 2002  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 *
 * @uses core.php
 * @uses access_api.php
 * @uses config_api.php
 * @uses constant_inc.php
 * @uses html_api.php
 * @uses lang_api.php
 */
require_once 'core.php';
require_api('access_api.php');
require_api('config_api.php');
require_api('constant_inc.php');
require_api('html_api.php');
require_api('lang_api.php');
if (!config_get('time_tracking_enabled')) {
    trigger_error(ERROR_ACCESS_DENIED, ERROR);
}
access_ensure_project_level(config_get('time_tracking_reporting_threshold'));
html_page_top(lang_get('time_tracking_billing_link'));
?>

<br />

<?php 
# Work break-down
define('BILLING_INC_ALLOW', true);
include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'billing_inc.php';
html_page_bottom();
/**
 * MantisBT Core API's
 */
require_once 'core.php';
require_api('access_api.php');
require_api('authentication_api.php');
require_api('config_api.php');
require_api('custom_field_api.php');
require_api('form_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('string_api.php');
auth_reauthenticate();
access_ensure_global_level(config_get('manage_custom_fields_threshold'));
html_page_top(lang_get('manage_custom_field_link'));
print_manage_menu('manage_custom_field_page.php');
?>

<div class="table-container">
	<h2><?php 
echo lang_get('custom_fields_setup');
?>
</h2>
	<table cellspacing="1" cellpadding="5" border="1">
		<tr>
			<th class="category"><?php 
echo lang_get('custom_field_name');
?>
</th>
			<th class="category"><?php 
    echo helper_alternate_class();
    ?>
>
<th class="category"><?php 
    echo $t_label;
    ?>
</th>
<td colspan="3"><?php 
    echo string_display_links($t_revision['value']);
    ?>
</td>
</tr>

	<?php 
}
html_page_top(bug_format_summary($t_bug_id, SUMMARY_CAPTION));
print_recently_visited();
?>

<br/>
<table class="width100" cellspacing="1">

<tr>
<td class="form-title" colspan="2"><?php 
echo lang_get('view_revisions'), ': ', $t_title;
?>
</td>
<td class="right" colspan="2">
<?php 
if (!$f_bug_id && !$f_bugnote_id) {
    print_bracket_link('?bug_id=' . $t_bug_id, lang_get('all_revisions'));
 * @link http://www.mantisbt.org
 */
/**
 * MantisBT Core API's
 */
require_once 'core.php';
require_once 'icon_api.php';
auth_reauthenticate();
$f_sort = gpc_get_string('sort', 'name');
$f_dir = gpc_get_string('dir', 'ASC');
if ('ASC' == $f_dir) {
    $t_direction = ASCENDING;
} else {
    $t_direction = DESCENDING;
}
html_page_top(lang_get('manage_projects_link'));
print_manage_menu('manage_proj_page.php');
# Project Menu Form BEGIN
?>
<br />
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title" colspan="5">
		<?php 
echo lang_get('projects_title');
# Check the user's global access level before allowing project creation
if (access_has_global_level(config_get('create_project_threshold'))) {
    print_button('manage_proj_create_page.php', lang_get('create_new_project_link'));
}
?>
	</td>
Example #28
0
    user_ensure_realname_unique($t_username, $t_realname);
    user_set_realname($t_user_id, $t_realname);
    $t_realname_updated = true;
}
# Update password if the two match and are not empty
if (!is_blank($f_password)) {
    if ($f_password != $f_password_confirm) {
        trigger_error(ERROR_USER_CREATE_PASSWORD_MISMATCH, ERROR);
    } else {
        if (!auth_does_password_match($t_user_id, $f_password)) {
            user_set_password($t_user_id, $f_password);
            $t_password_updated = true;
        }
    }
}
form_security_purge('account_update');
html_page_top(null, $t_redirect);
echo '<br /><div align="center">';
if ($t_email_updated) {
    echo lang_get('email_updated') . '<br />';
}
if ($t_password_updated) {
    echo lang_get('password_updated') . '<br />';
}
if ($t_realname_updated) {
    echo lang_get('realname_updated') . '<br />';
}
echo lang_get('operation_successful') . '<br />';
print_bracket_link($t_redirect, lang_get('proceed'));
echo '</div>';
html_page_bottom();
 */
/**
 * MantisBT Core API's
 */
require_once 'core.php';
require_once 'custom_field_api.php';
form_security_validate('manage_proj_custom_field_update');
auth_reauthenticate();
$f_field_id = gpc_get_int('field_id');
$f_project_id = gpc_get_int('project_id');
$f_sequence = gpc_get_int('sequence');
# We should check both since we are in the project section and an
#  admin might raise the first threshold and not realize they need
#  to raise the second
access_ensure_project_level(config_get('manage_project_threshold'), $f_project_id);
access_ensure_project_level(config_get('custom_field_link_threshold'), $f_project_id);
custom_field_set_sequence($f_field_id, $f_project_id, $f_sequence);
form_security_purge('manage_proj_custom_field_update');
$t_redirect_url = 'manage_proj_edit_page.php?project_id=' . $f_project_id;
html_page_top(null, $t_redirect_url);
?>
<br />
<div align="center">
<?php 
echo lang_get('operation_successful') . '<br />';
print_bracket_link($t_redirect_url, lang_get('proceed'));
?>
</div>

<?php 
html_page_bottom();
 */
require_once 'core.php';
require_api('authentication_api.php');
require_api('config_api.php');
require_api('constant_inc.php');
require_api('current_user_api.php');
require_api('form_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('project_api.php');
require_api('string_api.php');
require_api('workflow_api.php');
auth_reauthenticate();
html_page_top(lang_get('manage_workflow_config'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('manage_config_workflow_page.php');
# CSS class names for overrides color coding
define('COLOR_GLOBAL', 'color-global');
define('COLOR_PROJECT', 'color-project');
$g_access = current_user_get_access_level();
$t_project = helper_get_current_project();
$g_can_change_workflow = $g_access >= config_get_access('status_enum_workflow');
$g_can_change_flags = $g_can_change_workflow;
$g_overrides = array();
/**
 * Set overrides
 * @param string $p_config     Configuration value.
 * @param bool   $p_can_change True if user has access level to change config
 * @param string $p_color      CSS class name