summaryrefslogtreecommitdiff
path: root/lib/Bucky1.pm
blob: 9ab27195d21af3a983247a75643fd2c79129f83c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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;