Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
thearyasamaj /
public_html /
mantis /
[ HOME SHELL ]
Name
Size
Permission
Action
.well-known
[ DIR ]
drwxr-xr-x
admin
[ DIR ]
drwxr-xr-x
api
[ DIR ]
drwxr-xr-x
cgi-bin
[ DIR ]
drwxr-xr-x
core
[ DIR ]
drwxr-xr-x
css
[ DIR ]
drwxr-xr-x
doc
[ DIR ]
drwxr-xr-x
docbook
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
javascript
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
library
[ DIR ]
drwxr-xr-x
phing
[ DIR ]
drwxr-xr-x
plugins
[ DIR ]
drwxr-xr-x
scripts
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
.mailmap
1.62
KB
-rw-r--r--
account_delete.php
2.62
KB
-rw-r--r--
account_manage_columns_page.ph...
1.39
KB
-rw-r--r--
account_page.php
7.44
KB
-rw-r--r--
account_prefs_inc.php
12.53
KB
-rw-r--r--
account_prefs_page.php
1.88
KB
-rw-r--r--
account_prefs_reset.php
2.53
KB
-rw-r--r--
account_prefs_update.php
4.72
KB
-rw-r--r--
account_prof_edit_page.php
3.37
KB
-rw-r--r--
account_prof_menu_page.php
4.65
KB
-rw-r--r--
account_prof_update.php
3.97
KB
-rw-r--r--
account_sponsor_page.php
11.33
KB
-rw-r--r--
account_sponsor_update.php
2.29
KB
-rw-r--r--
account_update.php
3.71
KB
-rw-r--r--
adm_config_delete.php
1.61
KB
-rw-r--r--
adm_config_report.php
14.38
KB
-rw-r--r--
adm_config_set.php
7.67
KB
-rw-r--r--
adm_permissions_report.php
6.76
KB
-rw-r--r--
billing_inc.php
8.72
KB
-rw-r--r--
billing_page.php
1.3
KB
-rw-r--r--
browser_search_plugin.php
3.75
KB
-rw-r--r--
bug_actiongroup.php
12.74
KB
-rw-r--r--
bug_actiongroup_add_note_inc.p...
3.69
KB
-rw-r--r--
bug_actiongroup_attach_tags_in...
4.11
KB
-rw-r--r--
bug_actiongroup_ext.php
2.68
KB
-rw-r--r--
bug_actiongroup_ext_page.php
1.78
KB
-rw-r--r--
bug_actiongroup_page.php
10.25
KB
-rw-r--r--
bug_actiongroup_update_product...
2.92
KB
-rw-r--r--
bug_actiongroup_update_severit...
2.9
KB
-rw-r--r--
bug_assign.php
2.88
KB
-rw-r--r--
bug_change_status_page.php
11.62
KB
-rw-r--r--
bug_file_add.php
2.6
KB
-rw-r--r--
bug_file_delete.php
2.1
KB
-rw-r--r--
bug_file_upload_inc.php
2.86
KB
-rw-r--r--
bug_monitor_add.php
2.42
KB
-rw-r--r--
bug_monitor_delete.php
2.21
KB
-rw-r--r--
bug_monitor_list_view_inc.php
2.96
KB
-rw-r--r--
bug_relationship_add.php
4.42
KB
-rw-r--r--
bug_relationship_delete.php
3.81
KB
-rw-r--r--
bug_relationship_graph.php
4.86
KB
-rw-r--r--
bug_relationship_graph_img.php
1.91
KB
-rw-r--r--
bug_reminder.php
3.47
KB
-rw-r--r--
bug_reminder_page.php
3.44
KB
-rw-r--r--
bug_report.php
12.06
KB
-rw-r--r--
bug_report_advanced_page.php
706
B
-rw-r--r--
bug_report_page.php
22.16
KB
-rw-r--r--
bug_revision_drop.php
1.36
KB
-rw-r--r--
bug_revision_view_page.php
4.38
KB
-rw-r--r--
bug_set_sponsorship.php
2.58
KB
-rw-r--r--
bug_sponsorship_list_view_inc....
4.81
KB
-rw-r--r--
bug_stick.php
1.72
KB
-rw-r--r--
bug_update.php
10.08
KB
-rw-r--r--
bug_update_advanced_page.php
21.95
KB
-rw-r--r--
bug_update_page.php
774
B
-rw-r--r--
bug_view_advanced_page.php
1.07
KB
-rw-r--r--
bug_view_inc.php
22.61
KB
-rw-r--r--
bug_view_page.php
1.07
KB
-rw-r--r--
bugnote_add.php
2.36
KB
-rw-r--r--
bugnote_add_inc.php
4.08
KB
-rw-r--r--
bugnote_delete.php
2.34
KB
-rw-r--r--
bugnote_edit_page.php
4.17
KB
-rw-r--r--
bugnote_set_view_state.php
2.37
KB
-rw-r--r--
bugnote_stats_inc.php
5.67
KB
-rw-r--r--
bugnote_update.php
2.31
KB
-rw-r--r--
bugnote_view_inc.php
8.14
KB
-rw-r--r--
build.xml
3.1
KB
-rw-r--r--
changelog_page.php
10.39
KB
-rw-r--r--
config_defaults_inc.php
114.73
KB
-rw-r--r--
config_filter_defaults_inc.php
5.71
KB
-rw-r--r--
config_inc.php
178
B
-rw-r--r--
config_inc.php.sample
3.22
KB
-rw-r--r--
core.php
8.62
KB
-rw-r--r--
csv_export.php
3.57
KB
-rw-r--r--
error_log
240
B
-rw-r--r--
excel_xml_export.php
3.31
KB
-rw-r--r--
file_download.php
6.43
KB
-rw-r--r--
history_inc.php
2.52
KB
-rw-r--r--
index.php
1.09
KB
-rw-r--r--
issues_rss.php
6.36
KB
-rw-r--r--
jump_to_bug.php
1.12
KB
-rw-r--r--
login.php
2.27
KB
-rw-r--r--
login_anon.php
1.74
KB
-rw-r--r--
login_cookie_test.php
1.31
KB
-rw-r--r--
login_page.php
8.78
KB
-rw-r--r--
login_select_proj_page.php
2.64
KB
-rw-r--r--
logout_page.php
1.07
KB
-rw-r--r--
lost_pwd.php
3.14
KB
-rw-r--r--
lost_pwd_page.php
3.11
KB
-rw-r--r--
main_page.php
3.76
KB
-rw-r--r--
make_captcha_img.php
10.84
KB
-rw-r--r--
manage_columns_copy.php
3.69
KB
-rw-r--r--
manage_columns_inc.php
6.74
KB
-rw-r--r--
manage_config_columns_page.php
1.45
KB
-rw-r--r--
manage_config_columns_reset.ph...
1.72
KB
-rw-r--r--
manage_config_columns_set.php
4.6
KB
-rw-r--r--
manage_config_email_page.php
13.12
KB
-rw-r--r--
manage_config_email_set.php
5.74
KB
-rw-r--r--
manage_config_revert.php
2.16
KB
-rw-r--r--
manage_config_work_threshold_p...
15.08
KB
-rw-r--r--
manage_config_work_threshold_s...
6.68
KB
-rw-r--r--
manage_config_workflow_page.ph...
18.63
KB
-rw-r--r--
manage_config_workflow_set.php
7.7
KB
-rw-r--r--
manage_custom_field_create.php
1.73
KB
-rw-r--r--
manage_custom_field_delete.php
2.13
KB
-rw-r--r--
manage_custom_field_edit_page....
9.33
KB
-rw-r--r--
manage_custom_field_page.php
2.96
KB
-rw-r--r--
manage_custom_field_proj_add.p...
1.7
KB
-rw-r--r--
manage_custom_field_update.php
2.72
KB
-rw-r--r--
manage_overview_page.php
2.39
KB
-rw-r--r--
manage_plugin_install.php
1.33
KB
-rw-r--r--
manage_plugin_page.php
8.96
KB
-rw-r--r--
manage_plugin_uninstall.php
1.63
KB
-rw-r--r--
manage_plugin_update.php
1.82
KB
-rw-r--r--
manage_plugin_upgrade.php
1.34
KB
-rw-r--r--
manage_prof_menu_page.php
973
B
-rw-r--r--
manage_proj_cat_add.php
2.2
KB
-rw-r--r--
manage_proj_cat_copy.php
2.19
KB
-rw-r--r--
manage_proj_cat_delete.php
2.82
KB
-rw-r--r--
manage_proj_cat_edit_page.php
3.04
KB
-rw-r--r--
manage_proj_cat_update.php
2.21
KB
-rw-r--r--
manage_proj_create.php
2.49
KB
-rw-r--r--
manage_proj_create_page.php
4.16
KB
-rw-r--r--
manage_proj_custom_field_add_e...
1.92
KB
-rw-r--r--
manage_proj_custom_field_copy....
1.89
KB
-rw-r--r--
manage_proj_custom_field_remov...
2.37
KB
-rw-r--r--
manage_proj_custom_field_updat...
1.97
KB
-rw-r--r--
manage_proj_delete.php
1.7
KB
-rw-r--r--
manage_proj_edit_page.php
24.2
KB
-rw-r--r--
manage_proj_page.php
6.69
KB
-rw-r--r--
manage_proj_subproj_add.php
1.8
KB
-rw-r--r--
manage_proj_subproj_delete.php
1.64
KB
-rw-r--r--
manage_proj_update.php
1.78
KB
-rw-r--r--
manage_proj_update_children.ph...
1.65
KB
-rw-r--r--
manage_proj_user_add.php
1.78
KB
-rw-r--r--
manage_proj_user_copy.php
2.11
KB
-rw-r--r--
manage_proj_user_remove.php
2.63
KB
-rw-r--r--
manage_proj_ver_add.php
2.91
KB
-rw-r--r--
manage_proj_ver_copy.php
2.29
KB
-rw-r--r--
manage_proj_ver_delete.php
1.88
KB
-rw-r--r--
manage_proj_ver_edit_page.php
3.67
KB
-rw-r--r--
manage_proj_ver_update.php
2.31
KB
-rw-r--r--
manage_tags_page.php
5.52
KB
-rw-r--r--
manage_user_create.php
4.24
KB
-rw-r--r--
manage_user_create_page.php
3.64
KB
-rw-r--r--
manage_user_delete.php
2.5
KB
-rw-r--r--
manage_user_edit_page.php
8.29
KB
-rw-r--r--
manage_user_page.php
10.65
KB
-rw-r--r--
manage_user_proj_add.php
1.64
KB
-rw-r--r--
manage_user_proj_delete.php
2.03
KB
-rw-r--r--
manage_user_prune.php
2.06
KB
-rw-r--r--
manage_user_reset.php
2.55
KB
-rw-r--r--
manage_user_update.php
7.21
KB
-rw-r--r--
mantis_offline.php.sample
1.35
KB
-rw-r--r--
meta_inc.php
1.33
KB
-rw-r--r--
my_view_inc.php
14.72
KB
-rw-r--r--
my_view_page.php
5.16
KB
-rw-r--r--
news_add.php
1.83
KB
-rw-r--r--
news_edit_page.php
4.13
KB
-rw-r--r--
news_list_page.php
2.31
KB
-rw-r--r--
news_menu_page.php
3.57
KB
-rw-r--r--
news_rss.php
4.92
KB
-rw-r--r--
news_update.php
2.23
KB
-rw-r--r--
news_view_page.php
1.61
KB
-rw-r--r--
permalink_page.php
1.55
KB
-rw-r--r--
plugin.php
1.55
KB
-rw-r--r--
plugin_file.php
1.42
KB
-rw-r--r--
print_all_bug_options_inc.php
5.12
KB
-rw-r--r--
print_all_bug_options_page.php
1.27
KB
-rw-r--r--
print_all_bug_options_reset.ph...
2.29
KB
-rw-r--r--
print_all_bug_options_update.p...
2.47
KB
-rw-r--r--
print_all_bug_page.php
7.32
KB
-rw-r--r--
print_all_bug_page_word.php
15.42
KB
-rw-r--r--
print_bug_page.php
18.13
KB
-rw-r--r--
print_bugnote_inc.php
4.21
KB
-rw-r--r--
proj_doc_add.php
1.85
KB
-rw-r--r--
proj_doc_add_page.php
2.84
KB
-rw-r--r--
proj_doc_delete.php
2.12
KB
-rw-r--r--
proj_doc_edit_page.php
4.13
KB
-rw-r--r--
proj_doc_page.php
4.92
KB
-rw-r--r--
proj_doc_update.php
4.72
KB
-rw-r--r--
project_page.php
3.81
KB
-rw-r--r--
query_delete.php
1.99
KB
-rw-r--r--
query_delete_page.php
2.22
KB
-rw-r--r--
query_store.php
2.97
KB
-rw-r--r--
query_store_page.php
2.8
KB
-rw-r--r--
query_view_page.php
2.64
KB
-rw-r--r--
return_dynamic_filters.php
4.61
KB
-rw-r--r--
roadmap_page.php
10.67
KB
-rw-r--r--
search.php
7.09
KB
-rw-r--r--
set_project.php
3.53
KB
-rw-r--r--
signup.php
2.83
KB
-rw-r--r--
signup_page.php
3.4
KB
-rw-r--r--
summary_page.php
9.31
KB
-rw-r--r--
tag_attach.php
4.02
KB
-rw-r--r--
tag_create.php
1.45
KB
-rw-r--r--
tag_delete.php
1.33
KB
-rw-r--r--
tag_detach.php
1.26
KB
-rw-r--r--
tag_update.php
2.09
KB
-rw-r--r--
tag_update_page.php
4
KB
-rw-r--r--
tag_view_page.php
4.51
KB
-rw-r--r--
verify.php
2.35
KB
-rw-r--r--
view.php
1.17
KB
-rw-r--r--
view_all_bug_page.php
2.9
KB
-rw-r--r--
view_all_inc.php
7.94
KB
-rw-r--r--
view_all_set.php
23.18
KB
-rw-r--r--
view_filters_page.php
18.12
KB
-rw-r--r--
view_user_page.php
3.13
KB
-rw-r--r--
wiki.php
1.32
KB
-rw-r--r--
xmlhttprequest.php
1.55
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : view_all_set.php
<?php # MantisBT - a php based bugtracking system # MantisBT is free software: you can redistribute it and/or modify # 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/>. /** * @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' ); auth_ensure_user_authenticated(); $f_type = gpc_get_int( 'type', -1 ); $f_source_query_id = gpc_get_int( 'source_query_id', -1 ); $f_print = gpc_get_bool( 'print' ); $f_temp_filter = gpc_get_bool( 'temporary' ); # validate filter type $f_default_view_type = 'simple'; if ( ADVANCED_DEFAULT == config_get( 'view_filters' ) ) { $f_default_view_type = 'advanced'; } $f_view_type = gpc_get_string( 'view_type', $f_default_view_type ); if ( ADVANCED_ONLY == config_get( 'view_filters' ) ) { $f_view_type = 'advanced'; } if ( SIMPLE_ONLY == config_get( 'view_filters' ) ) { $f_view_type = 'simple'; } if ( !in_array( $f_view_type, array( 'simple', 'advanced' ) ) ) { $f_view_type = $f_default_view_type; } # these are all possibly multiple selections for advanced filtering $f_show_category = array(); if ( is_array( gpc_get( FILTER_PROPERTY_CATEGORY, null ) ) ) { $f_show_category = gpc_get_string_array( FILTER_PROPERTY_CATEGORY, META_FILTER_ANY ); } else { $f_show_category = gpc_get_string( FILTER_PROPERTY_CATEGORY, META_FILTER_ANY ); $f_show_category = array( $f_show_category ); } $f_platform = array(); if ( is_array( gpc_get( FILTER_PROPERTY_PLATFORM, null ) ) ) { $f_platform = gpc_get_string_array( FILTER_PROPERTY_PLATFORM, META_FILTER_ANY ); } else { $f_platform = gpc_get_string( FILTER_PROPERTY_PLATFORM, META_FILTER_ANY ); $f_platform = array( $f_platform ); } $f_os = array(); if ( is_array( gpc_get( FILTER_PROPERTY_OS, null ) ) ) { $f_os = gpc_get_string_array( FILTER_PROPERTY_OS, META_FILTER_ANY ); } else { $f_os = gpc_get_string( FILTER_PROPERTY_OS, META_FILTER_ANY ); $f_os = array( $f_os ); } $f_os_build = array(); if ( is_array( gpc_get( FILTER_PROPERTY_OS_BUILD, null ) ) ) { $f_os_build = gpc_get_string_array( FILTER_PROPERTY_OS_BUILD, META_FILTER_ANY ); } else { $f_os_build = gpc_get_string( FILTER_PROPERTY_OS_BUILD, META_FILTER_ANY ); $f_os_build = array( $f_os_build ); } $f_show_severity = array(); if ( is_array( gpc_get( FILTER_PROPERTY_SEVERITY_ID, null ) ) ) { $f_show_severity = gpc_get_string_array( FILTER_PROPERTY_SEVERITY_ID, META_FILTER_ANY ); } else { $f_show_severity = gpc_get_string( FILTER_PROPERTY_SEVERITY_ID, META_FILTER_ANY ); $f_show_severity = array( $f_show_severity ); } $f_show_status = array(); if ( is_array( gpc_get( FILTER_PROPERTY_STATUS_ID, null ) ) ) { $f_show_status = gpc_get_string_array( FILTER_PROPERTY_STATUS_ID, META_FILTER_ANY ); } else { $f_show_status = gpc_get_string( FILTER_PROPERTY_STATUS_ID, META_FILTER_ANY ); $f_show_status = array( $f_show_status ); } $f_hide_status = array(); if ( is_array( gpc_get( FILTER_PROPERTY_HIDE_STATUS_ID, null ) ) ) { $f_hide_status = gpc_get_string_array( FILTER_PROPERTY_HIDE_STATUS_ID, META_FILTER_NONE ); } else { $f_hide_status = gpc_get_string( FILTER_PROPERTY_HIDE_STATUS_ID, META_FILTER_NONE ); $f_hide_status = array( $f_hide_status ); } $f_reporter_id = array(); if ( is_array( gpc_get( FILTER_PROPERTY_REPORTER_ID, null ) ) ) { $f_reporter_id = gpc_get_string_array( FILTER_PROPERTY_REPORTER_ID, META_FILTER_ANY ); } else { $f_reporter_id = gpc_get_string( FILTER_PROPERTY_REPORTER_ID, META_FILTER_ANY ); $f_reporter_id = array( $f_reporter_id ); } $f_handler_id = array(); if ( is_array( gpc_get( FILTER_PROPERTY_HANDLER_ID, null ) ) ) { $f_handler_id = gpc_get_string_array( FILTER_PROPERTY_HANDLER_ID, META_FILTER_ANY ); } else { $f_handler_id = gpc_get_string( FILTER_PROPERTY_HANDLER_ID, META_FILTER_ANY ); $f_handler_id = array( $f_handler_id ); } $f_project_id = array(); if ( is_array( gpc_get( FILTER_PROPERTY_PROJECT_ID, null ) ) ) { $f_project_id = gpc_get_int_array( FILTER_PROPERTY_PROJECT_ID, META_FILTER_CURRENT ); } else { $f_project_id = gpc_get_int( FILTER_PROPERTY_PROJECT_ID, META_FILTER_CURRENT ); $f_project_id = array( $f_project_id ); } $f_show_resolution = array(); if ( is_array( gpc_get( FILTER_PROPERTY_RESOLUTION_ID, null ) ) ) { $f_show_resolution = gpc_get_string_array( FILTER_PROPERTY_RESOLUTION_ID, META_FILTER_ANY ); } else { $f_show_resolution = gpc_get_string( FILTER_PROPERTY_RESOLUTION_ID, META_FILTER_ANY ); $f_show_resolution = array( $f_show_resolution ); } $f_show_build = array(); if ( is_array( gpc_get( FILTER_PROPERTY_PRODUCT_BUILD, null ) ) ) { $f_show_build = gpc_get_string_array( FILTER_PROPERTY_PRODUCT_BUILD, META_FILTER_ANY ); } else { $f_show_build = gpc_get_string( FILTER_PROPERTY_PRODUCT_BUILD, META_FILTER_ANY ); $f_show_build = array( $f_show_build ); } $f_show_version = array(); if ( is_array( gpc_get( FILTER_PROPERTY_PRODUCT_VERSION, null ) ) ) { $f_show_version = gpc_get_string_array( FILTER_PROPERTY_PRODUCT_VERSION, META_FILTER_ANY ); } else { $f_show_version = gpc_get_string( FILTER_PROPERTY_PRODUCT_VERSION, META_FILTER_ANY ); $f_show_version = array( $f_show_version ); } $f_fixed_in_version = array(); if ( is_array( gpc_get( FILTER_PROPERTY_FIXED_IN_VERSION, null ) ) ) { $f_fixed_in_version = gpc_get_string_array( FILTER_PROPERTY_FIXED_IN_VERSION, META_FILTER_ANY ); } else { $f_fixed_in_version = gpc_get_string( FILTER_PROPERTY_FIXED_IN_VERSION, META_FILTER_ANY ); $f_fixed_in_version = array( $f_fixed_in_version ); } $f_target_version = array(); if ( is_array( gpc_get( FILTER_PROPERTY_TARGET_VERSION, null ) ) ) { $f_target_version = gpc_get_string_array( FILTER_PROPERTY_TARGET_VERSION, META_FILTER_ANY ); } else { $f_target_version = gpc_get_string( FILTER_PROPERTY_TARGET_VERSION, META_FILTER_ANY ); $f_target_version = array( $f_target_version ); } $f_show_profile = array(); if ( is_array( gpc_get( 'show_profile', null ) ) ) { $f_show_profile = gpc_get_string_array( 'show_profile', META_FILTER_ANY ); } else { $f_show_profile = gpc_get_string( 'show_profile', META_FILTER_ANY ); $f_show_profile = array( $f_show_profile ); } $f_show_priority = array(); if ( is_array( gpc_get( FILTER_PROPERTY_PRIORITY_ID, null ) ) ) { $f_show_priority = gpc_get_string_array( FILTER_PROPERTY_PRIORITY_ID, META_FILTER_ANY ); } else { $f_show_priority = gpc_get_string( FILTER_PROPERTY_PRIORITY_ID, META_FILTER_ANY ); $f_show_priority = array( $f_show_priority ); } $f_user_monitor = array(); if ( is_array( gpc_get( FILTER_PROPERTY_MONITOR_USER_ID, null ) ) ) { $f_user_monitor = gpc_get_string_array( FILTER_PROPERTY_MONITOR_USER_ID, META_FILTER_ANY ); } else { $f_user_monitor = gpc_get_string( FILTER_PROPERTY_MONITOR_USER_ID, META_FILTER_ANY ); $f_user_monitor = array( $f_user_monitor ); } $f_note_user_id = array(); if ( is_array( gpc_get( FILTER_PROPERTY_NOTE_USER_ID, null ) ) ) { $f_note_user_id = gpc_get_string_array( FILTER_PROPERTY_NOTE_USER_ID, META_FILTER_ANY ); } else { $f_note_user_id = gpc_get_string( FILTER_PROPERTY_NOTE_USER_ID, META_FILTER_ANY ); $f_note_user_id = array( $f_note_user_id ); } $f_match_type = gpc_get_int( FILTER_PROPERTY_MATCH_TYPE, FILTER_MATCH_ALL ); # these are only single values, even when doing advanced filtering $f_per_page = gpc_get_int( FILTER_PROPERTY_ISSUES_PER_PAGE, -1 ); $f_highlight_changed = gpc_get_int( FILTER_PROPERTY_HIGHLIGHT_CHANGED, config_get( 'default_show_changed' ) ); $f_sticky_issues = gpc_get_bool( FILTER_PROPERTY_SHOW_STICKY_ISSUES ); # sort direction $f_sort_d = gpc_get_string( FILTER_PROPERTY_SORT_FIELD_NAME, '' ); $f_dir_d = gpc_get_string( FILTER_PROPERTY_SORT_DIRECTION, '' ); $f_sort_0 = gpc_get_string( FILTER_PROPERTY_SORT_FIELD_NAME . '_0', 'last_updated' ); $f_dir_0 = gpc_get_string( FILTER_PROPERTY_SORT_DIRECTION . '_0', 'DESC' ); $f_sort_1 = gpc_get_string( FILTER_PROPERTY_SORT_FIELD_NAME . '_1', '' ); $f_dir_1 = gpc_get_string( FILTER_PROPERTY_SORT_DIRECTION . '_1', '' ); # date values $f_start_month = gpc_get_int( FILTER_PROPERTY_START_MONTH, date( 'm' ) ); $f_end_month = gpc_get_int( FILTER_PROPERTY_END_MONTH, date( 'm' ) ); $f_start_day = gpc_get_int( FILTER_PROPERTY_START_DAY, 1 ); $f_end_day = gpc_get_int( FILTER_PROPERTY_END_DAY, date( 'd' ) ); $f_start_year = gpc_get_int( FILTER_PROPERTY_START_YEAR, date( 'Y' ) ); $f_end_year = gpc_get_int( FILTER_PROPERTY_END_YEAR, date( 'Y' ) ); $f_search = gpc_get_string( FILTER_PROPERTY_FREE_TEXT, '' ); $f_and_not_assigned = gpc_get_bool( FILTER_PROPERTY_NOT_ASSIGNED ); $f_do_filter_by_date = gpc_get_bool( FILTER_PROPERTY_FILTER_BY_DATE ); $f_view_state = gpc_get_int( FILTER_PROPERTY_VIEW_STATE_ID, META_FILTER_ANY ); $f_tag_string = gpc_get_string( FILTER_PROPERTY_TAG_STRING, '' ); $f_tag_select = gpc_get_int( FILTER_PROPERTY_TAG_SELECT, '0' ); # plugin filter updates $t_plugin_filters = filter_get_plugin_filters(); $f_filter_input = array(); foreach( $t_plugin_filters as $t_field_name => $t_filter_object ) { switch( $t_filter_object->type ) { case FILTER_TYPE_STRING: $f_filter_input[ $t_field_name ] = gpc_get_string( $t_field_name, $t_filter_object->default ); break; case FILTER_TYPE_INT: $f_filter_input[ $t_field_name ] = gpc_get_int( $t_field_name, $t_filter_object->default ); break; case FILTER_TYPE_BOOLEAN: $f_filter_input[ $t_field_name ] = gpc_get_bool( $t_field_name, OFF ); break; case FILTER_TYPE_MULTI_STRING: $f_filter_input[ $t_field_name ] = gpc_get_string_array( $t_field_name, $t_filter_object->default ); break; case FILTER_TYPE_MULTI_INT: $f_filter_input[ $t_field_name ] = gpc_get_int_array( $t_field_name, $t_filter_object->default ); break; } } # custom field updates $t_custom_fields = custom_field_get_ids(); /** @todo (thraxisp) This should really be the linked ids, but we don't know the project */ $f_custom_fields_data = array(); if ( is_array( $t_custom_fields ) && ( count( $t_custom_fields ) > 0 ) ) { foreach( $t_custom_fields as $t_cfid ) { if (custom_field_type( $t_cfid ) == CUSTOM_FIELD_TYPE_DATE) { $t_control = gpc_get_string( 'custom_field_' . $t_cfid . '_control', null); $t_year = gpc_get_int( 'custom_field_' . $t_cfid . '_start_year', null); $t_month = gpc_get_int( 'custom_field_' . $t_cfid . '_start_month', null); $t_day = gpc_get_int( 'custom_field_' . $t_cfid . '_start_day', null); $t_start_date = mktime(0, 0, 0, $t_month, $t_day, $t_year); $t_year = gpc_get_int( 'custom_field_' . $t_cfid . '_end_year', null); $t_month = gpc_get_int( 'custom_field_' . $t_cfid . '_end_month', null); $t_day = gpc_get_int( 'custom_field_' . $t_cfid . '_end_day', null); $t_end_date = mktime(0, 0, 0, $t_month, $t_day, $t_year); $f_custom_fields_data[$t_cfid] = array(); $f_custom_fields_data[$t_cfid][0] = $t_control; $t_start = 1; $t_end = 1; $t_one_day = 86399; switch ($t_control) { case CUSTOM_FIELD_DATE_ANY: case CUSTOM_FIELD_DATE_NONE: break ; case CUSTOM_FIELD_DATE_BETWEEN: $t_start = $t_start_date; $t_end = $t_end_date + $t_one_day - 1; break ; case CUSTOM_FIELD_DATE_ONORBEFORE: $t_end = $t_start_date + $t_one_day - 1; break; case CUSTOM_FIELD_DATE_BEFORE: $t_end = $t_start_date; break ; case CUSTOM_FIELD_DATE_ON: $t_start = $t_start_date; $t_end = $t_start_date + $t_one_day - 1; break; case CUSTOM_FIELD_DATE_AFTER: $t_start = $t_start_date + $t_one_day - 1; $t_end = 2147483647; // Some time in 2038, max value of a signed int. break; case CUSTOM_FIELD_DATE_ONORAFTER: $t_start = $t_start_date; $t_end = 2147483647; // Some time in 2038, max value of a signed int. break; } $f_custom_fields_data[$t_cfid][1] = $t_start; $f_custom_fields_data[$t_cfid][2] = $t_end; } else { if ( is_array( gpc_get( 'custom_field_' . $t_cfid, null ) ) ) { $f_custom_fields_data[$t_cfid] = gpc_get_string_array( 'custom_field_' . $t_cfid, META_FILTER_ANY ); } else { $f_custom_fields_data[$t_cfid] = gpc_get_string( 'custom_field_' . $t_cfid, META_FILTER_ANY ); $f_custom_fields_data[$t_cfid] = array( $f_custom_fields_data[$t_cfid] ); } } } } $f_relationship_type = gpc_get_int( FILTER_PROPERTY_RELATIONSHIP_TYPE, -1 ); $f_relationship_bug = gpc_get_int( FILTER_PROPERTY_RELATIONSHIP_BUG, 0 ); if ( $f_temp_filter ) { $f_type = 1; } if ( $f_and_not_assigned ) { $f_and_not_assigned = 'on'; } if ( $f_do_filter_by_date ) { $f_do_filter_by_date = 'on'; } if ( $f_sticky_issues ) { $f_sticky_issues = 'on'; } else { $f_sticky_issues = 'off'; } if ( $f_type < 0 ) { print_header_redirect( 'view_all_bug_page.php' ); } $t_hide_status_default = config_get( 'hide_status_default' ); # show bugs per page if ( $f_per_page < 0 ) { $f_per_page = config_get( 'default_limit_view' ); } # combine sort settings # (f_sort overrides f_sort_1 if set to keep old sorting code working in view_all_bug_inc) $f_sort = ( ( $f_sort_d != "" ) ? $f_sort_d : $f_sort_0 ) . ( ( $f_sort_1 != "" ) ? "," . $f_sort_1 : "" ); $f_dir = ( ( $f_dir_d != "" ) ? $f_dir_d : $f_dir_0 ) . ( ( $f_dir_1 != "" ) ? "," . $f_dir_1 : "" ); # -1 is a special case stored query: it means we want to reset our filter if ( ( $f_type == 3 ) && ( $f_source_query_id == -1 ) ) { $f_type = 0; } /* array contents -------------- 0: version 1: $f_show_category 2: $f_show_severity 3: $f_show_status 4: $f_per_page 5: $f_highlight_changed 6: $f_hide_closed 7: $f_reporter_id 8: $f_handler_id 9: $f_sort 10: $f_dir 11: $f_start_month 12: $f_start_day 13: $f_start_year 14: $f_end_month 15: $f_end_day 16: $f_end_year 17: $f_search 18: $f_hide_resolved 19: $f_and_not_assigned 20: $f_show_resolution 21: $f_show_build 22: $f_show_version 23: $f_do_filter_by_date 24: $f_custom_field 25: $f_relationship_type 26: $f_relationship_bug 27: $f_show_profile */ # Set new filter values. These are stored in a cookie $t_view_all_cookie_id = gpc_get_cookie( config_get( 'view_all_cookie' ), '' ); $t_view_all_cookie = filter_db_get_filter( $t_view_all_cookie_id ); # process the cookie if it exists, it may be blank in a new install if ( !is_blank( $t_view_all_cookie ) ) { $t_setting_arr = filter_deserialize( $t_view_all_cookie ); if ( false === $t_setting_arr ) { # couldn't deserialize, if we were trying to use the filter, clear it and reload # for ftype = 0, 1, or 3, we are going to re-write the filter anyways if ( !in_array( $f_type, array( 0, 1, 3 ) ) ) { gpc_clear_cookie( 'view_all_cookie' ); error_proceed_url( 'view_all_set.php?type=0' ); trigger_error( ERROR_FILTER_TOO_OLD, ERROR ); exit; # stop here } } } else { # no cookie found, set it $f_type = 1; } $t_cookie_version = config_get( 'cookie_version' ); $t_default_show_changed = config_get( 'default_show_changed' ); # Clear the source query id. Since we have entered new filter criteria. $t_setting_arr['_source_query_id'] = ''; switch ( $f_type ) { # New cookie case '0': log_event( LOG_FILTERING, 'view_all_set.php: New cookie' ); $t_setting_arr = array(); break; # Update filters case '1': log_event( LOG_FILTERING, 'view_all_set.php: Update filters' ); $t_setting_arr['_version'] = $t_cookie_version; $t_setting_arr['_view_type'] = $f_view_type; $t_setting_arr[ FILTER_PROPERTY_CATEGORY ] = $f_show_category; $t_setting_arr[ FILTER_PROPERTY_SEVERITY_ID ] = $f_show_severity; $t_setting_arr[ FILTER_PROPERTY_STATUS_ID ] = $f_show_status; $t_setting_arr[ FILTER_PROPERTY_ISSUES_PER_PAGE ] = $f_per_page; $t_setting_arr[ FILTER_PROPERTY_HIGHLIGHT_CHANGED ] = $f_highlight_changed; $t_setting_arr[ FILTER_PROPERTY_REPORTER_ID ] = $f_reporter_id; $t_setting_arr[ FILTER_PROPERTY_HANDLER_ID ] = $f_handler_id; $t_setting_arr[ FILTER_PROPERTY_PROJECT_ID ] = $f_project_id; $t_setting_arr[ FILTER_PROPERTY_SORT_FIELD_NAME ] = $f_sort; $t_setting_arr[ FILTER_PROPERTY_SORT_DIRECTION ] = $f_dir; $t_setting_arr[ FILTER_PROPERTY_START_MONTH ] = $f_start_month; $t_setting_arr[ FILTER_PROPERTY_START_DAY ] = $f_start_day; $t_setting_arr[ FILTER_PROPERTY_START_YEAR ] = $f_start_year; $t_setting_arr[ FILTER_PROPERTY_END_MONTH ] = $f_end_month; $t_setting_arr[ FILTER_PROPERTY_END_DAY ] = $f_end_day; $t_setting_arr[ FILTER_PROPERTY_END_YEAR ] = $f_end_year; $t_setting_arr[ FILTER_PROPERTY_FREE_TEXT ] = $f_search; $t_setting_arr[ FILTER_PROPERTY_HIDE_STATUS_ID ] = $f_hide_status; $t_setting_arr[ FILTER_PROPERTY_NOT_ASSIGNED ] = $f_and_not_assigned; $t_setting_arr[ FILTER_PROPERTY_RESOLUTION_ID ] = $f_show_resolution; $t_setting_arr[ FILTER_PROPERTY_PRODUCT_BUILD ] = $f_show_build; $t_setting_arr[ FILTER_PROPERTY_PRODUCT_VERSION ] = $f_show_version; $t_setting_arr[ FILTER_PROPERTY_FILTER_BY_DATE ] = $f_do_filter_by_date; $t_setting_arr[ FILTER_PROPERTY_FIXED_IN_VERSION ] = $f_fixed_in_version; $t_setting_arr[ FILTER_PROPERTY_TARGET_VERSION ] = $f_target_version; $t_setting_arr[ FILTER_PROPERTY_PRIORITY_ID ] = $f_show_priority; $t_setting_arr[ FILTER_PROPERTY_MONITOR_USER_ID ] = $f_user_monitor; $t_setting_arr[ FILTER_PROPERTY_VIEW_STATE_ID ] = $f_view_state; $t_setting_arr['custom_fields'] = $f_custom_fields_data; $t_setting_arr[ FILTER_PROPERTY_SHOW_STICKY_ISSUES ] = $f_sticky_issues; $t_setting_arr[ FILTER_PROPERTY_RELATIONSHIP_TYPE ] = $f_relationship_type; $t_setting_arr[ FILTER_PROPERTY_RELATIONSHIP_BUG ] = $f_relationship_bug; $t_setting_arr['show_profile'] = $f_show_profile; $t_setting_arr[ FILTER_PROPERTY_PLATFORM ] = $f_platform; $t_setting_arr[ FILTER_PROPERTY_OS ] = $f_os; $t_setting_arr[ FILTER_PROPERTY_OS_BUILD ] = $f_os_build; $t_setting_arr[ FILTER_PROPERTY_TAG_STRING ] = $f_tag_string; $t_setting_arr[ FILTER_PROPERTY_TAG_SELECT ] = $f_tag_select; $t_setting_arr[ FILTER_PROPERTY_NOTE_USER_ID ] = $f_note_user_id; $t_setting_arr[ FILTER_PROPERTY_MATCH_TYPE ] = $f_match_type; $t_setting_arr = array_merge( $t_setting_arr, $f_filter_input ); break; # Set the sort order and direction case '2': log_event( LOG_FILTERING, 'view_all_set.php: Set the sort order and direction.' ); # We only need to set those fields that we are overriding $t_setting_arr[ FILTER_PROPERTY_SORT_FIELD_NAME ] = $f_sort; $t_setting_arr[ FILTER_PROPERTY_SORT_DIRECTION ] = $f_dir; break; # This is when we want to copy another query from the # database over the top of our current one case '3': log_event( LOG_FILTERING, 'view_all_set.php: Copy another query from database' ); $t_filter_string = filter_db_get_filter( $f_source_query_id ); # If we can use the query that we've requested, # grab it. We will overwrite the current one at the # bottom of this page $t_setting_arr = filter_deserialize( $t_filter_string ); if ( false === $t_setting_arr ) { # couldn't deserialize, if we were trying to use the filter, clear it and reload gpc_clear_cookie( 'view_all_cookie' ); error_proceed_url( 'view_all_set.php?type=0' ); trigger_error( ERROR_FILTER_TOO_OLD, ERROR ); exit; # stop here } # Store the source query id to select the correct filter in the drop down. $t_setting_arr['_source_query_id'] = $f_source_query_id; break; # Generalise the filter case '4': log_event( LOG_FILTERING, 'view_all_set.php: Generalise the filter' ); $t_setting_arr[ FILTER_PROPERTY_CATEGORY ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_REPORTER_ID ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_HANDLER_ID ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_PRODUCT_BUILD ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_PRODUCT_VERSION ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_PRIORITY_ID ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_FIXED_IN_VERSION ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_TARGET_VERSION ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_MONITOR_USER_ID ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_NOTE_USER_ID ] = array( META_FILTER_ANY ); $t_setting_arr[ FILTER_PROPERTY_RELATIONSHIP_TYPE ] = -1; $t_setting_arr[ FILTER_PROPERTY_RELATIONSHIP_BUG ] = 0; $t_custom_fields = custom_field_get_ids(); # @@@ (thraxisp) This should really be the linked ids, but we don't know the project $t_custom_fields_data = array(); if ( is_array( $t_custom_fields ) && ( count( $t_custom_fields ) > 0 ) ) { foreach( $t_custom_fields as $t_cfid ) { $t_custom_fields_data[$t_cfid] = array( META_FILTER_ANY ); } } $t_setting_arr['custom_fields'] = $t_custom_fields_data; break; # Just set the search string value case '5': log_event( LOG_FILTERING, 'view_all_set.php: Search Text' ); $t_setting_arr[ FILTER_PROPERTY_FREE_TEXT ] = $f_search; break; # Just set the view_state (simple / advanced) value case '6': log_event( LOG_FILTERING, 'view_all_set.php: View state (simple/advanced)' ); $t_setting_arr['_view_type'] = $f_view_type; break; # does nothing. catch all case default: log_event( LOG_FILTERING, 'view_all_set.php: default - do nothing' ); break; } $tc_setting_arr = filter_ensure_valid_filter( $t_setting_arr ); $t_settings_serialized = serialize( $tc_setting_arr ); $t_settings_string = $t_cookie_version . '#' . $t_settings_serialized; # If only using a temporary filter, don't store it in the database if ( !$f_temp_filter ) { # Store the filter string in the database: its the current filter, so some values won't change $t_project_id = helper_get_current_project(); $t_project_id = ( $t_project_id * -1 ); $t_row_id = filter_db_set_for_current_user( $t_project_id, false, '', $t_settings_string ); # set cookie values gpc_set_cookie( config_get( 'view_all_cookie' ), $t_row_id, time()+config_get( 'cookie_time_length' ), config_get( 'cookie_path' ) ); } # redirect to print_all or view_all page if ( $f_print ) { $t_redirect_url = 'print_all_bug_page.php'; } else { $t_redirect_url = 'view_all_bug_page.php'; } if ( $f_temp_filter ) { $t_token_id = token_set( TOKEN_FILTER, $t_settings_serialized ); $t_redirect_url = $t_redirect_url . '?filter=' . $t_token_id; html_meta_redirect( $t_redirect_url, 0 ); } else { print_header_redirect( $t_redirect_url ); }
Close