<%= render "layouts/portlet-config" %>
<%= render "layouts/theme-panel" %>
<% if flash[:error] %>
<% end %>
×
<%= flash[:error] %>
<% end %>
<%= render "layouts/breadcrumbs" %>
Select Option for Processing Data
Select Option for Processing Data
Processing for Data
Select Path of Data Files
File Path
http://inquisitor.tech/data
Logs
<%
#require 'mechanize'
#filename = ''
@tfiles = "http://inquisitor.tech/data"
#cd = File.basename(URI.parse(@tfiles).path)
#cd = open(@tfiles){|f| f.read }
#cd = cd.gsub(/<\/?[^>]*>/, "")
#cd = open(@tfiles){|f| f.href.match(/href=(\"?)(.+)\1/)[2]}
# cd = cd.match(/filename=(\"?)(.+)\1/)[2]
#agent = Mechanize.new
# file = agent.get(@tfiles)
# cd = file.filename
# accepted_formats = ["txt"]
# cd = accepted_formats.include? File.extname(cd.to_s)
# cd =cd.delete("^a-zA-Z0-9") #=> abcABC123
cd = []#cd.split(" ")
%>
<%
i = 1
cd.each do |itns|
if itns!='' && itns!=nil
texts = itns.split(".")
if texts[1].to_s!=''
txt = texts[0].gsub(/[^0-9]/, "").split(",")
txt.each do |mns|
if mns!=''
if i==1
%>
<%=mns%>
<% end
end
i +=1
end
end
end
end%>