daily pastebin goal
68%
SHARE
TWEET

coolio

a guest Mar 4th, 2010 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- /usr/bin/pastebinit.orig    2010-02-24 12:35:26.306735086 +0100
  2. +++ /usr/bin/pastebinit         2010-02-24 13:24:37.956760579 +0100
  3.  -53,16 +53,15 @@
  4.      def getParameters(website, content, user, jabberid, version, format, parentpid, permatag, title, username, password):
  5.          "Return the parameters array for the selected pastebin"
  6.          params={}
  7. -        # pastebin.com v0.50
  8. +        # pastebin.com 2010-02-24 (new owner + API)
  9.          if (re.search("http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))", website) and not website == "http://www.pastebin.com") or website == "http://pastebin.mozilla.org":
  10. -            params['poster'] = user
  11. -            params['code2'] = content
  12. -            params['version'] = version
  13. -            params['parent_pid'] = parentpid #For reply, "" means homepage (new thread)
  14. -            params['format'] = format #The format, for syntax hilighting
  15. -            params['paste'] = "Send"
  16. -            params['remember'] = "0" #Do you want a cookie ?
  17. -            params['expiry'] = "f" #The expiration, f = forever
  18. +            params['page'] = "/api_public.php"
  19. +            params['paste_name'] = user
  20. +            params['paste_code'] = content
  21. +            params['paste_format'] = format #The format, for syntax hilighting
  22. +            params['paste_expire_date'] = "N" #The expiration, N = no expiry
  23. +            params['submit'] = "submit"
  24. +            params['regexp'] = '^http://.*pastebin.com/(.*)$'
  25.          elif re.search("http://((([a-zA-Z0-9\-_\.]*)(pastebin\.ca)))", website):
  26.              params['name'] = user
  27.              params['content'] = content
RAW Paste Data
Top