Pastebin

There are so many pastebins on the Internet these days. Why does the world need another one? I don’t know, but I wanted one for myself because of my friends and I when we were in Computer Science. Others found the pastebin so I then made password protected pastes. I like how the Pastebin is now. The only problems I have with it are that in FireFox when you copy and paste from it it also includes some weird numbers, so you have to copy and paste from the code box which isn’t that bad. Also I was trying to implement a printer friendly feature but I’m too sick of working on it so I gave up after I realized that with it people were able to circumvent password protection, I know there’s a way to fix that but I’m just too tired.

It was originally written by Paul Dixon, released under the GPL. Naturally, this is also under the GPL. I was planning on fixing up the code to make it look nicer because the original author made weird use of whitespace but screw it I’m too tired. You can see it in action here.

Features
- Password Protected Pastes
- reCAPTCHA anti-spam security
- Archive Page
- FamFamFam Icons
- Updated with the latest version of GeSHi from SVN. Support for many more languages.

Changelog
1.5
- Fixed bug where people could download password protected pastes
- Cleaned all URLs with mod_rewrite for SEO

Sites Using this Pastebin
- mscripts.net: A site dedicated to mIRC scripts

Download pastebin.tgz 1.5 - Last Updated: 6-29-08

72 Responses to “Pastebin”


Pages: [1] 2 3 - Show All
  1. Hi there,

    First I would like to say, awesome work! and good job.

    2nd. I downloaded the pastebin.tar.gz file and it seesms to be missing the mysql database file.

    am I wrong?

    -Yoni

  2. Yes it is, thanks for reminding me, I can’t believe I forgot it!

    Since you already downloaded the archive, I suggest you just check this out, it’s the same thing and should work. I’ll put it in the archive and re-upload it in a second.

    Thanks for the comment!

  3. By the way I suggest you redownload. If you’ve already installed then just overwrite the files. It was my fault, I was linking to the older version. I now linked to the newer version and it also now includes the SQL file and some installation instructions.

  4. I could not get mirc highlighting to work, it gives an error :/

  5. Thanks for the heads up, I’ll look into it, though it looks more like a GeSHI problem. If all else fails, I’m going to update the version the pastebin has, hopefully that fixes it.

  6. Yes, the same thing happens at the GeSHI Site. I emailed the author the bug information, hopefully he can fix it soon.

    In case you don’t know, GeSHI is what does the syntax highlighting in this pastebin, as well as in many other pastebins and scripts.

  7. yes, I checked in the geshi site too just after I posted here and I saw the same problem, I hope you can fix it because I am very impressed with your version of pastebin and since I intend to use it for a website which primarily deals with mirc scripts that part is crucial. Looking forward to a new version which fixes the issue. Cheers :)

  8. ok, worked on a work around, it works with TCL syntax, BUT.. when I load it in my site, nothing shows up :/

  9. Alright, thanks for the heads up, again. I already emailed the developer, and I will fix it as soon as he fixes GeSHI. I suggest you subscribe to this post through email if you haven’t already done so (It says it in the Comment form) so that you can be notified of replies or comments.

  10. Blaenk Denum wrote:

    ok, worked on a work around, it works with TCL syntax, BUT.. when I load it in my site, nothing shows up :/

    Sorry, can you elaborate? Do you mean you can’t get the pastebin to work on your site, or it does work but when you post the code using the TCL syntax highlighting? Like what happens with when you try mIRC, except without the error?

  11. no, when i just loaded the script, the first time i got the pastebin page (although in a basic form, the css didn’t catch), if i pasted there with any syntax, it was going back to http://www.example.com/pastebin.php although the pastebin is in http://www.example.com/pb/ .. soon after that it shows a blank page and nothing else.

    This is what i did to load it up:
    1) extract the files in my hdd
    2) make the /config/domain.conf.php
    3) upload it in my site

  12. I keep checking this page every hour for your reply hehe.

  13. Alright, thanks for the information, let me just eat lunch real quick then I’ll help you out.

  14. alright :)

  15. Did you edit line 103 in the configuration file.

    $CONF['this_script']='/pastebin.php';

    You should try changing that to /pb/pastebin.php. Let me know how it goes.

  16. thats when it showed blank pages heh, i guess i will have to do it in a sub domain to make it work right ?

  17. Okay, so you did what I said about changing it to /pb/pastebin.php and that’s how it shows the blank pages? Have you tried changing it back to just /pastebin.php ?

  18. no doesn;t work in any case. i wanna make it work in a sub directory named “pb” :/ i just want it in a directory like “pb” n then i want it to work like http://www.example.com/pb

  19. What is your $CONF['pastebin'] value set to?

    $CONF['pastebin']='http://www.addresstothepastebin.com';

    Try setting it to http://yoursite.com/pb.

  20. Also make sure you have an .htaccess file in the pb folder with the following in it:

    DirectoryIndex pastebin.php
    RewriteEngine on
    RewriteRule ^([0-9]+)$ /pastebin.php?show=$1

    If you don’t have Apache, then change the $CONF['url_format'] value back to:

    $CONF['url_format']="/pastebin.php?show=%d";

    Also, all the files and folders, i.e. pastebin.php, layout.php, .htaccess, etc., are in the pb folder right?

  21. Did what you said. I did all this:

    1] download the package from this page

    2] change the values in config/default.conf.php

    3] upload the whole folder to my site

    This is what I have atm –> http://www.mscripts.net/pp

  22. Ok I did it till here from what you said, the css isn’t working yet, and when i post something it doesn’t give me the url. I attached the link in the previous post, please let me know what else can be done, thanks in advance :)

  23. No problem, I’ll help you till you get this working. I thought you said the directory was pb, not pp. So, you’ll have to edit the $CONF[’pastebin’] value and change it to http://www.mscripts.net/pp ,

    Also, from my understanding, in the pp folder you should have the files like pastebin.php, layout.php, pastebin.css, and the other files and folders. This is what you have right?

    Oh and by the way, you did the MySQL stuff right? You know, set up the database table and all, more info in the install.sql file, if you need help doing it let me know. This could be the reason nothing is working, though I’d figure the CSS should still work.

  24. Also, I’m sure you want shorter URLs for your pastebin (pp/123 instead of pp/pastebin.php?show=123), so you did the .htaccess file like I told you right?

    By the way, I’m going to install pastebin in a sub-directory on my existing pastebin’s site, that way I’ll know for sure how to do it. Sorry about all the confusion, it’s just that it’s really ambiguous.

    I think your .htaccess should be something like:

    DirectoryIndex pastebin.php
    
    RewriteEngine on
    
    RewriteRule ^([0-9]+)$ /pastebin.php?show=$1
    

    I’ll let you know how it went once I’m done!

  25. Scratch the MySQL thing I said, that was stupid. If you hadn’t done it yet then the previous pastes wouldn’t appear on the left, xD Sorry!

Pages: [1] 2 3 - Show All

Leave a Reply