GRAYBYTE WORDPRESS FILE MANAGER2962

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
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/ruby18/lib64/ruby/1.8/webrick/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby18/lib64/ruby/1.8/webrick//accesslog.rb
#
# accesslog.rb -- Access log handling utilities
#
# Author: IPR -- Internet Programming with Ruby -- writers
# Copyright (c) 2002 keita yamaguchi
# Copyright (c) 2002 Internet Programming with Ruby writers
#
# $IPR: accesslog.rb,v 1.1 2002/10/01 17:16:32 gotoyuzo Exp $

module WEBrick
  module AccessLog
    class AccessLogError < StandardError; end

    CLF_TIME_FORMAT     = "[%d/%b/%Y:%H:%M:%S %Z]"
    COMMON_LOG_FORMAT   = "%h %l %u %t \"%r\" %s %b"
    CLF                 = COMMON_LOG_FORMAT
    REFERER_LOG_FORMAT  = "%{Referer}i -> %U"
    AGENT_LOG_FORMAT    = "%{User-Agent}i"
    COMBINED_LOG_FORMAT = "#{CLF} \"%{Referer}i\" \"%{User-agent}i\""

    module_function

    # This format specification is a subset of mod_log_config of Apache.
    #   http://httpd.apache.org/docs/mod/mod_log_config.html#formats
    def setup_params(config, req, res)
      params = Hash.new("")
      params["a"] = req.peeraddr[3]
      params["b"] = res.sent_size
      params["e"] = ENV
      params["f"] = res.filename || ""
      params["h"] = req.peeraddr[2]
      params["i"] = req
      params["l"] = "-"
      params["m"] = req.request_method
      params["n"] = req.attributes
      params["o"] = res
      params["p"] = req.port
      params["q"] = req.query_string
      params["r"] = req.request_line.sub(/\x0d?\x0a\z/o, '')
      params["s"] = res.status       # won't support "%>s"
      params["t"] = req.request_time
      params["T"] = Time.now - req.request_time
      params["u"] = req.user || "-"
      params["U"] = req.unparsed_uri
      params["v"] = config[:ServerName]
      params
    end

    def format(format_string, params)
      format_string.gsub(/\%(?:\{(.*?)\})?>?([a-zA-Z%])/){
         param, spec = $1, $2
         case spec[0]
         when ?e, ?i, ?n, ?o
           raise AccessLogError,
             "parameter is required for \"#{spec}\"" unless param
           (param = params[spec][param]) ? escape(param) : "-"
         when ?t
           params[spec].strftime(param || CLF_TIME_FORMAT)
         when ?%
           "%"
         else
           escape(params[spec].to_s)
         end
      }
    end

    def escape(data)
      if data.tainted?
        data.gsub(/[[:cntrl:]\\]+/) {$&.dump[1...-1]}.untaint
      else
        data
      end
    end
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:48:17
root / root
0755
httpauth
--
March 03 2024 22:48:14
root / linksafe
0755
httpservlet
--
March 03 2024 22:48:14
root / linksafe
0755
accesslog.rb
2.246 KB
June 23 2011 09:44:05
root / linksafe
0644
cgi.rb
6.915 KB
February 12 2007 23:01:19
root / linksafe
0644
compat.rb
0.426 KB
February 12 2007 23:01:19
root / linksafe
0644
config.rb
3.135 KB
February 12 2007 23:01:19
root / linksafe
0644
cookie.rb
3.032 KB
February 12 2007 23:01:19
root / linksafe
0644
htmlutils.rb
0.57 KB
February 12 2007 23:01:19
root / linksafe
0644
httpauth.rb
1.31 KB
February 12 2007 23:01:19
root / linksafe
0644
httpproxy.rb
7.46 KB
June 06 2008 08:05:24
root / linksafe
0644
httprequest.rb
9.99 KB
November 22 2010 07:22:01
root / linksafe
0644
httpresponse.rb
7.961 KB
August 16 2010 07:31:35
root / linksafe
0644
https.rb
1.639 KB
December 20 2010 16:55:16
root / linksafe
0644
httpserver.rb
5.632 KB
February 12 2007 23:01:19
root / linksafe
0644
httpservlet.rb
0.653 KB
February 12 2007 23:01:19
root / linksafe
0644
httpstatus.rb
3.51 KB
June 10 2010 05:23:49
root / linksafe
0644
httputils.rb
9.964 KB
January 10 2010 10:30:06
root / linksafe
0644
httpversion.rb
1.115 KB
February 12 2007 23:01:19
root / linksafe
0644
log.rb
2.034 KB
February 12 2007 23:01:19
root / linksafe
0644
server.rb
5.279 KB
February 12 2007 23:01:19
root / linksafe
0644
ssl.rb
4.222 KB
November 22 2010 07:21:52
root / linksafe
0644
utils.rb
2.543 KB
June 06 2012 05:20:08
root / linksafe
0644
version.rb
0.343 KB
February 12 2007 23:01:19
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF