Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if pdata.key?("connect")
- $modarray = $db.execute("SELECT name FROM modules")
- print "\nDB.EXEC IS: #{$db.execute("SELECT name FROM modules")}\n\n"
- print "MODARRAY IS: #{$modarray}\n\n"
- print "PDATA IS: #{pdata['connect']['name']}\n\n"
- $modarray.each do |el|
- puts el
- if el.include? pdata['connect']['name']
- print "[!] Module already connected!"
- else
- print "[!] Activating module!"
- $db.execute("INSERT INTO modules (name,dev,desc) values ('#{pdata['connect']['name']}','#{pdata['connect']['dev']}','#{pdata['connect']['desc']}');")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement