Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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
/
usr /
lib /
ruby /
vendor_ruby /
i18n /
[ HOME SHELL ]
Name
Size
Permission
Action
backend
[ DIR ]
drwxr-xr-x
core_ext
[ DIR ]
drwxr-xr-x
gettext
[ DIR ]
drwxr-xr-x
interpolate
[ DIR ]
drwxr-xr-x
locale
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
backend.rb
998
B
-rw-r--r--
config.rb
5.53
KB
-rw-r--r--
exceptions.rb
2.58
KB
-rw-r--r--
gettext.rb
780
B
-rw-r--r--
locale.rb
157
B
-rw-r--r--
middleware.rb
236
B
-rw-r--r--
tests.rb
479
B
-rw-r--r--
version.rb
67
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : exceptions.rb
# frozen_string_literal: true require 'cgi' module I18n class ExceptionHandler def call(exception, _locale, _key, _options) if exception.is_a?(MissingTranslation) exception.message else raise exception end end end class ArgumentError < ::ArgumentError; end class InvalidLocale < ArgumentError attr_reader :locale def initialize(locale) @locale = locale super "#{locale.inspect} is not a valid locale" end end class InvalidLocaleData < ArgumentError attr_reader :filename def initialize(filename, exception_message) @filename, @exception_message = filename, exception_message super "can not load translations from #{filename}: #{exception_message}" end end class MissingTranslation < ArgumentError module Base attr_reader :locale, :key, :options def initialize(locale, key, options = EMPTY_HASH) @key, @locale, @options = key, locale, options.dup options.each { |k, v| self.options[k] = v.inspect if v.is_a?(Proc) } end def keys @keys ||= I18n.normalize_keys(locale, key, options[:scope]).tap do |keys| keys << 'no key' if keys.size < 2 end end def message "translation missing: #{keys.join('.')}" end alias :to_s :message def to_exception MissingTranslationData.new(locale, key, options) end end include Base end class MissingTranslationData < ArgumentError include MissingTranslation::Base end class InvalidPluralizationData < ArgumentError attr_reader :entry, :count, :key def initialize(entry, count, key) @entry, @count, @key = entry, count, key super "translation data #{entry.inspect} can not be used with :count => #{count}. key '#{key}' is missing." end end class MissingInterpolationArgument < ArgumentError attr_reader :key, :values, :string def initialize(key, values, string) @key, @values, @string = key, values, string super "missing interpolation argument #{key.inspect} in #{string.inspect} (#{values.inspect} given)" end end class ReservedInterpolationKey < ArgumentError attr_reader :key, :string def initialize(key, string) @key, @string = key, string super "reserved key #{key.inspect} used in #{string.inspect}" end end class UnknownFileType < ArgumentError attr_reader :type, :filename def initialize(type, filename) @type, @filename = type, filename super "can not load translations from #{filename}, the file type #{type} is not known" end end end
Close