diff options
author | cohen.jacob <cohen.jacob@6adb9682-87ac-11de-b610-71a7c637a048> | 2009-08-13 05:09:54 +0000 |
---|---|---|
committer | cohen.jacob <cohen.jacob@6adb9682-87ac-11de-b610-71a7c637a048> | 2009-08-13 05:09:54 +0000 |
commit | 8242c982ebcdfc67274c8ab79a2f34aa451872d7 (patch) | |
tree | c4df699d0083300b00dd6079cda9f6adbb788202 /paste/INSTALL | |
parent | 1316c77d6941e8571b4efcdc3ab197c733cdf0ca (diff) | |
download | rafb-nopaste-8242c982ebcdfc67274c8ab79a2f34aa451872d7.tar.gz rafb-nopaste-8242c982ebcdfc67274c8ab79a2f34aa451872d7.tar.xz rafb-nopaste-8242c982ebcdfc67274c8ab79a2f34aa451872d7.zip |
Initial port of rafb.net codebase from rafb.net to Google Code.
git-svn-id: http://rafb-nopaste.googlecode.com/svn/trunk@2 6adb9682-87ac-11de-b610-71a7c637a048
Diffstat (limited to 'paste/INSTALL')
-rw-r--r-- | paste/INSTALL | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/paste/INSTALL b/paste/INSTALL new file mode 100644 index 0000000..ce8412b --- /dev/null +++ b/paste/INSTALL @@ -0,0 +1,35 @@ +INSTALLATION INSTRUCTIONS + +Making your own Pastebin + +================================ + +Files: + +index.html - Presents the HTML form for pasting text. +paste.php - Form handler that drives the rest of the process. +include/highlight.inc - Syntax highlighting routines. +include/pastify.inc - Takes syntax highlighted text and turns it into + HTML to be served when the paste is viewed. +include/createpage.inc - Handles writing the HTML page to disk and + returning the resulting file path. + +================================ + +Set up this directory structure more or less the way it comes out of +source control. + +Update the config.php file to reflect your server and setup. + +You may also want to make sure your web server has permissions to +write files into the results output directory (which is results/ by +default) + +It is also a good idea to implement some sort of upload rate throttling. +This can be done by keeping track of pastes per IP address and shedding +load if it passes a certain threshold. + +Additionally, if you wish pastes to expire after a given amount of time, +you will need to write a housekeeping script or cron job that periodically +cleans out expired pastes. + |