Guest User

Roger Browne

a guest
Dec 10th, 2007
220
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Show_Books(search_query) is priority medium distributed
  2.  
  3. page = new page_builder
  4.  
  5. if search_query.is_empty
  6. page.add_paragraph(internationalize(response("empty_search_query"))
  7. else
  8. database_connection.open_or_reuse(global_settings)
  9. database_connection.find_matching_records("book", search_query)
  10. if database_connection.has_results
  11. table = new html_table_builder
  12. database_connection.for_each_result as row
  13. table.add_row(row.substring(1, 30))
  14. end
  15. page.add(table)
  16. else
  17. page.add_paragraph(internationalize(response("sorry")))
  18. end
  19. database_connection.close
  20. end
  21.  
  22. if time - old time > 0.5
  23. send_email(global_settings.admin_email, database_server.status,
  24. webserver.status)
  25. end
  26.  
  27. end
  28.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×