There hasn’t been a source release of pastebin.com in over a year, and I promised one in April, and here it is!
There’s no new features yet, just what you see on pastebin.com, but the code has been substantially reworked from the last available release. Source is GPL licenced, if you have any questions, add them as comments to this article in case the answers are of benefit to others…
Download pastebin.tar.gz (130 KB)
Pingback: BuzzzedBlog » Blog Archive » Pastebin released under GPL
Hi Paul,
thanks for the code ! But I have a problem if I choose Java:
Query failure: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\n.java .de1, .java .de2 {font-family: \’Courier New\’, Courier
update pastebin set codefmt=’
I havent any problem with the other language only java.
Any Ideas ?
Cheers
Stephan
Going live with the new version shook a few bugs out I didn’t capture before – all sorted now!
Great Sir.
Any chance of also releasing this under a BSD license? I can’t use it if it’s GPL.
Bruce – I tried to email you but not had a reply. What do you want to that would violate the GPL, i.e. what is it about a BSD licence you need?
$post[‘downloadurl’]=”pastebin.php?dl=$pid”;
– great add-on 🙂
Idea:
html view | download | new post
“html view” would be a simple preview output to show the user their output on a webpage. This would be nice for html, dhtml, java, css, more …
Perhaps inline Iframe that shows onclick or new window for the output.
Thank you for your time and energy.
“HTML view” might be too much of an XSS target, e.g. you could craft a page which looked like pastebin.com, but which said “help me with the bandwidth, donate a buck via paypal…” – you get the idea.
I couldn’t find a bug reporting area, so I’ll just say here: there’s no such thing as “HTML 4.0.1”
There wouldn’t really be much formatting difference between older versions and even XHTML or XML (and its children), either, but :p This is why validator.w3.org is for “Markup”, not just HTML or something else.
…and oh ya, pastebins rock 🙂 gj
Well spotted, I think that text was originally copied from the GeSHi source but I’ve corrected it now. Thanks for letting me know.
How do you install this? The install is .file!!
Okay I tried uploading the things but I kept getting stupid conf errors! HELP!
Pastebin is unsupported, but if you provide more info I’ll help if I can.
Do you know of any free hosts that support pastebin?