summaryrefslogtreecommitdiffstats
path: root/pastebinit/build
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2010-03-13 20:19:11 +0000
committer Eric Hameleers <alien@slackware.com>2010-03-13 20:19:11 +0000
commit3bdb789068fc8d7e6fdad003788df7b313184195 (patch)
tree526eb94a5bb3ef62c925cab4411cdda5d82f67e5 /pastebinit/build
parent8fec9e40198aff5b37e82907e914338e6f7b5e41 (diff)
downloadasb-3bdb789068fc8d7e6fdad003788df7b313184195.tar.gz
asb-3bdb789068fc8d7e6fdad003788df7b313184195.tar.xz
This one actually works.
Diffstat (limited to 'pastebinit/build')
-rw-r--r--pastebinit/build/pastebinit_pbc.diff67
1 files changed, 40 insertions, 27 deletions
diff --git a/pastebinit/build/pastebinit_pbc.diff b/pastebinit/build/pastebinit_pbc.diff
index 8cc0f111..cf19c1d2 100644
--- a/pastebinit/build/pastebinit_pbc.diff
+++ b/pastebinit/build/pastebinit_pbc.diff
@@ -1,27 +1,40 @@
---- /usr/bin/pastebinit.orig 2010-02-24 12:35:26.306735086 +0100
-+++ /usr/bin/pastebinit 2010-02-24 13:24:37.956760579 +0100
-@@ -53,16 +53,15 @@
- def getParameters(website, content, user, jabberid, version, format, parentpid, permatag, title, username, password):
- "Return the parameters array for the selected pastebin"
- params={}
-- # pastebin.com v0.50
-+ # pastebin.com 2010-02-24 (new owner + API)
- if (re.search("http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))", website) and not website == "http://www.pastebin.com") or website == "http://pastebin.mozilla.org":
-- params['poster'] = user
-- params['code2'] = content
-- params['version'] = version
-- params['parent_pid'] = parentpid #For reply, "" means homepage (new thread)
-- params['format'] = format #The format, for syntax hilighting
-- params['paste'] = "Send"
-- params['remember'] = "0" #Do you want a cookie ?
-- params['expiry'] = "f" #The expiration, f = forever
-+ params['page'] = "/api_public.php"
-+ params['paste_name'] = user
-+ params['paste_code'] = content
-+ params['paste_format'] = format #The format, for syntax hilighting
-+ params['paste_expire_date'] = "N" #The expiration, N = no expiry
-+ params['submit'] = "submit"
-+ params['regexp'] = '^http://.*pastebin.com/(.*)$'
- elif re.search("http://((([a-zA-Z0-9\-_\.]*)(pastebin\.ca)))", website):
- params['name'] = user
- params['content'] = content
+=== modified file 'pastebin.d/pastebin.com.conf'
+--- pastebin.d/pastebin.com.conf 2010-02-18 01:04:08 +0000
++++ pastebin.d/pastebin.com.conf 2010-02-24 00:41:43 +0000
+@@ -1,19 +1,23 @@
+ [pastebin]
+ basename = pastebin.com
+ regexp = "http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))"
+-#FIXME: not website == "http://www.pastebin.com") or website == "http://pastebin.mozilla.org":
+
+ [format]
+-user = poster
+-content = code2
+-version = version
+-parentpid = parent_pid
+-format = format
+-paste = paste
+-remember = remember
+-expiry = expiry
++submit = submit
++parentpid = paste_parent_key
++subdomain = paste_subdomain
++content = paste_code
++paste_format = paste_format
++expiry = paste_expire_date
++private = paste_private
++remember = paste_remember
++page = page
+
+ [defaults]
+-remember = f
+-expiry = 1
+-paste = Send
++paste_format = 1
++private = 0
++remember = 1
++expiry = N
++submit = submit
++subdomain = ""
++page = "/post.php"
+