A site for sharing text and code snippets
Go to file
pikami 8690bd730c Updated README.md + added SQL structure 2016-06-16 16:18:16 +00:00
config A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
css Added search for syntax 2016-06-13 15:50:59 +00:00
fonts Added Bootstrap 2016-06-08 19:27:39 +00:00
includes A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
js Added more languages to syntax highlight (Now supports 24 languages) 2016-06-13 16:27:46 +00:00
.htaccess Using rewrite rules 2016-06-08 21:16:32 +00:00
LICENSE Initial commit 2016-06-08 21:58:48 +03:00
MyPastes.php A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
NewPaste.php Added newest pastes panel 2016-06-09 17:03:23 +00:00
NewPastePanel.php A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
NewestPastes.php A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
README.md Updated README.md + added SQL structure 2016-06-16 16:18:16 +00:00
ViewPaste.php A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
cronjob.php A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
index.php A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
login.php A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
palm-paste.sql Updated README.md + added SQL structure 2016-06-16 16:18:16 +00:00
post.php A better way to make a connection to the database 2016-06-16 15:33:16 +00:00
signup.php People can now signup and users can post private and unlisted pastes 2016-06-12 15:32:25 +00:00

README.md

Palm-paste

Palm-paste is an Open-Source PHP script of a site where you can share text and code snippets. It's extremely easy to use! It has syntax highlight, ability to post public/unlisted/private pastes and many more cool features. It's in active development so stay tuned for updates. Also if you have any ideas you can contact me on twitter, I'm @pik4mi If you have any issues, file them here https://github.com/pikami/palm-paste/issues

#Note Original development environment is Apache 2.4 + PHP5.6 + MySQL. Should work with Nginx and any PDO-compatible database.

#Install For the purposes of this guide, we won't cover setting up Apache, PHP, MySQL, or Nginx. So we'll just assume you already have them all running well.

  1. Download palm-paste from https://github.com/pikami/palm-paste/tags
  2. Create a user and database for palm-paste
  3. Take the 'palm-paste.sql' and import it to your database.
  4. Edit configuration settings in config/config.php
  5. Done!
  • To ensure that pastes with an expiration set get cleaned up, define the cron key in the config and set up a cronjob, for example:
    • */5 * * * * curl --silent http://your-site.com/palm-paste/cronjob.php?key=[key]
  • If you can't have cronjobs or your just to lazy - Don't wory, the pastes will expire if a user tries to view them after expiration time is over.

Things used to make this

And many more... (I'm saying "many more", because I probably missed something)