* 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 lang_get('custom_field_project_count');
*/ /** * 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> </tr>
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; } } function get_section_begin_mcwt($p_section_name)
<?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;
auth_reauthenticate(); $f_category_id = gpc_get_int( 'id' ); $f_project_id = gpc_get_int( 'project_id' ); access_ensure_project_level( config_get( 'manage_project_threshold' ), $f_project_id ); $t_row = category_get_row( $f_category_id ); $t_assigned_to = $t_row['user_id']; $t_project_id = $t_row['project_id']; $t_name = $t_row['name']; html_page_top(); print_manage_menu( 'manage_proj_cat_edit_page.php' ); ?> <div id="manage-proj-category-update-div" class="form-container"> <form id="manage-proj-category-update-form" method="post" action="manage_proj_cat_update.php"> <fieldset> <legend><span><?php echo lang_get( 'edit_project_category_title' ) ?></span></legend> <?php echo form_security_field( 'manage_proj_cat_update' ) ?> <input type="hidden" name="project_id" value="<?php echo $f_project_id ?>"/> <input type="hidden" name="category_id" value="<?php echo string_attribute( $f_category_id ) ?>" /> <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> <label for="proj-category-name"><span><?php echo lang_get( 'category' ) ?></span></label> <span class="input"><input type="text" id="proj-category-name" name="name" size="32" maxlength="128" value="<?php echo string_attribute( $t_name ) ?>" /></span> <span class="label-style"></span> </div> <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> <label for="proj-category-assigned-to"><span><?php echo lang_get( 'assigned_to' ) ?></span></label>
$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>'; } ?> </ul>
# 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();
$t_core_path = config_get('core_path'); require_once $t_core_path . 'current_user_api.php'; auth_ensure_user_authenticated(); current_user_ensure_unprotected(); if ($g_global_profiles) { access_ensure_global_level(config_get('manage_global_profile_threshold')); } else { access_ensure_global_level(config_get('add_profile_threshold')); } html_page_top1(lang_get('manage_profiles_link')); html_page_top2(); ?> <?php if ($g_global_profiles) { print_manage_menu('manage_prof_menu_page.php'); } ?> <?php if ($g_global_profiles) { $t_user_id = ALL_USERS; } else { $t_user_id = auth_get_current_user_id(); } ?> <?php # Add Profile Form BEGIN ?> <br />
# # You should have received a copy of the GNU General Public License # along with MantisBT. If not, see <http://www.gnu.org/licenses/>. /** * @package MantisBT * @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ /** * MantisBT Core API's */ require_once 'core.php'; auth_reauthenticate(); access_ensure_global_level(config_get('manage_plugin_threshold')); html_page_top(lang_get('manage_plugin_link')); print_manage_menu('manage_plugin_page.php'); function plugin_sort($p1, $p2) { return strcasecmp($p1->name, $p2->name); } $t_plugins = plugin_find_all(); uasort($t_plugins, 'plugin_sort'); global $g_plugin_cache; $t_plugins_installed = array(); $t_plugins_available = array(); foreach ($t_plugins as $t_basename => $t_plugin) { if (isset($g_plugin_cache[$t_basename])) { $t_plugins_installed[$t_basename] = $t_plugin; } else { $t_plugins_available[$t_basename] = $t_plugin; }
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>. /** * @package MantisBT * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright (C) 2002 - 2014 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ /** * MantisBT Core API's */ require_once 'core.php'; auth_reauthenticate(); access_ensure_global_level(config_get('manage_user_threshold')); $t_ldap = LDAP == config_get('login_method'); html_page_top(); print_manage_menu('manage_user_create_page.php'); ?> <br /> <div align="center"> <form method="post" action="manage_user_create.php"> <?php echo form_security_field('manage_user_create'); ?> <table class="width50" cellspacing="1"> <tr> <td class="form-title" colspan="2"> <?php echo lang_get('create_new_account_title'); ?> </td> </tr>
} else { $f_sort = 'username'; } if (isset($t_manage_arr[2])) { $f_dir = $t_manage_arr[2]; } else { $f_dir = 'DESC'; } } } html_page_top1(lang_get('manage_users_link')); html_page_top2(); ?> <?php print_manage_menu('manage_user_page.php'); ?> <?php # New Accounts Form BEGIN $days_old = 7; $query = "SELECT *\n\t\tFROM {$t_user_table}\n\t\tWHERE " . db_helper_compare_days(db_now(), "date_created", "<= '{$days_old}'") . "\n\t\tORDER BY date_created DESC"; $result = db_query($query); $new_user_count = db_num_rows($result); if ($new_user_count > 0) { ?> <br /> <table class="width100" cellspacing="1"> <tr> <td class="form-title"> <?php
/** * @package MantisBT * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright (C) 2002 - 2014 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ /** * MantisBT Core API's */ require_once 'core.php'; auth_reauthenticate(); $f_version_id = gpc_get_int('version_id'); $t_version = version_get($f_version_id); access_ensure_project_level(config_get('manage_project_threshold'), $t_version->project_id); html_page_top(); print_manage_menu('manage_proj_ver_edit_page.php'); ?> <br /> <div align="center"> <form method="post" action="manage_proj_ver_update.php"> <?php echo form_security_field('manage_proj_ver_update'); ?> <input type="hidden" name="version_id" value="<?php echo string_attribute($t_version->id); ?> " /> <table class="width50" cellspacing="1"> <tr> <td class="form-title" colspan="2"> <?php
# it under the terms of the GNU General Public License as published by # 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/>. auth_reauthenticate(); html_page_top(plugin_lang_get('import')); $t_this_page = plugin_page('import'); //FIXME with plugins this does not work... print_manage_menu($t_this_page); $t_max_file_size = (int) min(ini_get_number('upload_max_filesize'), ini_get_number('post_max_size'), config_get('max_file_size')); // We need a project to import into $t_project_id = helper_get_current_project(); if (ALL_PROJECTS == $t_project_id) { print_header_redirect("login_select_proj_page.php?ref={$t_this_page}"); } ?> <div class="center"> <form name="file_upload" method="post" enctype="multipart/form-data" action="<?php echo plugin_page('import_action'); ?> "> <?php echo form_security_field('plugin_xml_import_action');
require_api('authentication_api.php'); require_api('config_api.php'); require_api('constant_inc.php'); require_api('database_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('user_api.php'); access_ensure_global_level(config_get('view_configuration_threshold')); $t_read_write_access = access_has_global_level(config_get('set_configuration_threshold')); html_page_top(lang_get('configuration_report')); print_manage_menu('adm_config_report.php'); print_manage_config_menu('adm_config_report.php'); $t_config_types = array(CONFIG_TYPE_DEFAULT => 'default', CONFIG_TYPE_INT => 'integer', CONFIG_TYPE_FLOAT => 'float', CONFIG_TYPE_COMPLEX => 'complex', CONFIG_TYPE_STRING => 'string'); /** * returns the configuration type for a given configuration type id * @param integer $p_type Configuration type identifier to check. * @return string configuration type */ function get_config_type($p_type) { global $t_config_types; if (array_key_exists($p_type, $t_config_types)) { return $t_config_types[$p_type]; } else { return $t_config_types[CONFIG_TYPE_DEFAULT]; }
<?php require_once 'core.php'; access_ensure_global_level(plugin_config_get('manage_customers_threshold')); html_page_top(plugin_lang_get('manage_customers')); print_manage_menu(plugin_page('manage_customers')); $groups = CustomerManagementDao::findAllGroups(); $customers = CustomerManagementDao::findAllCustomers(); ?> <style type="text/css"> .ui-dialog-content label { display: inline-block; width: 60px; margin-left: 10px; vertical-align: top; } .ui-dialog-content input, .ui-dialog-content select { width: 180px; } </style> <h1><?php echo plugin_lang_get('manage_customers'); ?> </h1> <div id="tabs"> <ul> <li><a href="#customers"><?php echo plugin_lang_get('customers'); ?>