Skip to content

Instantly share code, notes, and snippets.

/delte.rb Secret

Created November 22, 2013 15:52
Show Gist options
  • Save anonymous/1a7eda715feb753cb8e5 to your computer and use it in GitHub Desktop.
Save anonymous/1a7eda715feb753cb8e5 to your computer and use it in GitHub Desktop.
@paramfile.each do |instance|
if File.exists?("#{instance}#{@url_instance}.php")
@get_uid_instance = File.open("configuration_#{@url_instance}.php", "r").grep(/config\[['"]uid['"]\]/)
@res_uid = @get_uid_instance[0].match(/uid(\S*)(.*)/)
@uid = @res_uid[2].delete(";'\"\=").strip
puts "Instance uid ---> #{@uid.green}"
sup_file_instance @uid
else
puts"cant find the file: #{instance}#{@url_instance.red}.php"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment