diff options
| author | Jules Laplace <carbon@melanarchy.org> | 2013-08-02 17:14:41 -0500 |
|---|---|---|
| committer | Jules Laplace <carbon@melanarchy.org> | 2013-08-02 17:14:41 -0500 |
| commit | e9192b3d42660a5781101df4357d276318151e8a (patch) | |
| tree | 059eb6ace6147cf9559af74ed1ab5e221c80e280 /lib/Bucky1.pm | |
| parent | 79670053c7247d3a49b607960efd284e93f057e5 (diff) | |
cgi-bin & lib
Diffstat (limited to 'lib/Bucky1.pm')
| -rw-r--r-- | lib/Bucky1.pm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/Bucky1.pm b/lib/Bucky1.pm new file mode 100644 index 0000000..9ab2719 --- /dev/null +++ b/lib/Bucky1.pm @@ -0,0 +1,53 @@ +#!/usr/bin/perl +#use localbucky; + +# always used, for the most part +use db; +use getargs; +use cookies; +use lastlog; +use session; +use rand; +use privacy; +use keywords; +use headers; +use images; +use format; +use constants; + +# more general and can probably be added selectively somehow +use boxes; +use color; +use comments; +use files; +use forms; +use import; +use message; +use profile; +use radio; +use tags; +use threads; + +use RGB; + +our @BUCKY_INPUT_DELIMITERS = qw(\, \= \_ \+ \| \.); +sub scrub + { + my $string = shift; + $string =~ s/\0//g; + $string =~ s/\n//g; + $string =~ s/\r//g; + $string =~ s/\%//g; + $string =~ s/\*//g; + return trim($string); + } +sub trim + { + my $string = shift; + $string =~ s/^\s+//; + $string =~ s/\s+$//; + return $string; + } + +1; + |
