Path: | femto.rb |
Last Update: | Wed Feb 25 13:55:59 +0100 2009 |
Copyright 2009 Stefan Kamphausen <www.skamphausen.de>
Written and (currently) maintained by Stefan Kamphausen
This program is free software. You can re-distribute and/or modify this program under the same terms as Ruby itself, Ruby Distribute License or GNU General Public License.
Femto is a very small (hence the name) bulletin board software suited to be used in a CGI environment.
One specific design purpose is, that, if you want to use Femto, you just drop it in a CGI directory and you‘re done. No database, no libraries, no installation, no nothing.
See rdoc or —longhelp for more documentation.
Put it into any CGI directory and adjust the $URL at the top of this file to reflect the installation. (Unfortunately Rubys cgi.rb does not (yet?) generate the access URL automatically as Perls CGI does.) Then adjust the sections way down in the file
You, know: Use the source!
This file includes the Javascipt and the CSS down below, following the spcial END token. Adjust this to your needs.
And if that isn‘t enough: change the source! You‘re not familiar with Ruby? Well, either this is the software you start using as your entry point into the Ruby world, or you don‘t use it at all.
Femto want‘s to be a cooperative simple bulletin board:
FEMTO_VERSION | = | "1.3" | Version | |
ITEM_STORE | = | "../femto_items.db" | Where to store the items | |
MAX_AGE | = | 60 * 60 * 24 * 30 | When will old items be removed. | |
ASSET_EXPIRE_AGE | = | 60 * 60 * 24 | When will assets (JS, CSS) expire? | |
MAX_HEADER_SIZE | = | 40 | The maximum size of the header of an item | |
MAX_DESC_SIZE | = | 200 | The maximum size of the description | |
PUBLIC_DELETE_LINK | = | true | Set this to true to see a deletion link on each post or to false to get the secret deletion link upon posting a message |