summaryrefslogtreecommitdiff
path: root/lib/constants.pm
diff options
context:
space:
mode:
authorJules Laplace <carbon@melanarchy.org>2013-08-02 17:14:41 -0500
committerJules Laplace <carbon@melanarchy.org>2013-08-02 17:14:41 -0500
commite9192b3d42660a5781101df4357d276318151e8a (patch)
tree059eb6ace6147cf9559af74ed1ab5e221c80e280 /lib/constants.pm
parent79670053c7247d3a49b607960efd284e93f057e5 (diff)
cgi-bin & lib
Diffstat (limited to 'lib/constants.pm')
-rw-r--r--lib/constants.pm82
1 files changed, 82 insertions, 0 deletions
diff --git a/lib/constants.pm b/lib/constants.pm
new file mode 100644
index 0000000..129a9fa
--- /dev/null
+++ b/lib/constants.pm
@@ -0,0 +1,82 @@
+#our $BUCKY_CONFIG_FTP_ENABLED = 1;
+our $BUCKY_CONFIG =
+ {
+ 'FTP_ENABLED' => 1,
+ 'PRIVACY_WORLD' => 'bucky only',
+ 'PRIVACY_BBS' => undef,
+ 'PRIVACY_KEYWORD' => undef,
+ 'PRIVACY_OWNER' => 'private',
+ 'BASE_PATH' => '/var/www/vhosts/carbonpictures.com/bucky/',
+ 'BPOD_SERVICES_WAREZ_DIR' => 'https://www.carbonpictures.com/bucky/data/',
+ 'USERLIST_TITLE' => 'the carbon consortium',
+ 'BUCKY_NAME' => 'bucky',
+ 'UNSORTED_POSITION' => 'top',
+ 'SNOWBALL_MACHINE' => 'off',
+# version author link age datetime date time comments sizeinfiles size files views tags
+ 'THREAD_ROW_INDEX' => 'author link age comments size files',
+ 'THREAD_ROW_TAG' => 'author link age comments files',
+ 'THREAD_ROW_CATEGORY' => 'author link age comments files',
+ 'THREAD_ROW_DETAILS' => 'author link age comments files'
+ };
+
+our $BUCKY_LEXICON_TAG = 'tag';
+our $BUCKY_LEXICON_KEYWORD = 'category';
+our $BUCKY_LEXICON_DETAILS = 'details';
+
+our $BUCKY_DEFAULT_COLOR = 'blue';
+our $BUCKY_UNSORTED_COLOR = 'ivory';
+
+our %COLORS =
+ (
+ plain => "#E6F0f0",
+ ivory => "#F0F0EB",
+ pink => "#F0DFEB",
+ red => "#F0E0DF",
+ orange => "#F0E8DF",
+ yellow => "#F0F0E7",
+ green => "#E9F0E7",
+ blue => "#E0E2F0",
+ purple => "#EBE7F0",
+ black => "#202025",
+ );
+
+
+our $THUMB_FLAGGED_PREFIX = 's.';
+our $THUMB_LIBRARY_PREFIX = 't.';
+our $THUMB_BPOD_PREFIX = 'b.';
+
+our $AVATAR_PROFILE_WIDTH = 270;
+our $AVATAR_PROFILE_HEIGHT = 340;
+our $AVATAR_BIG_WIDTH = 50;
+our $AVATAR_MED_WIDTH = 30;
+
+our $AVATAR_PROFILE_PREFIX = "pro.";
+our $AVATAR_BIG_PREFIX = "al.";
+our $AVATAR_MED_PREFIX = "am.";
+
+# ftp import paths
+our $BUCKY_FTP_HOST = "carbonpictures.com";
+our $BUCKY_FTP_USER = "bucky";
+our $BUCKY_FTP_PASS = "m0refreediskspace";
+
+# (shoutcast) radio data
+our $RADIO_STATUS_PATH = $BUCKY_CONFIG->{BASE_PATH}."radio/radio-status";
+our $RADIO_INFO_PATH = $BUCKY_CONFIG->{BASE_PATH}."radio/radio-info";
+
+our $CONVERT_PATH = "/usr/bin/convert";
+our $WGET_STRING = "/usr/bin/wget -nd -N -O";
+our $MV_PATH = "/bin/mv";
+our $RM_PATH = "/bin/rm";
+our $MKDIR_PATH = "/bin/mkdir";
+our $CHMOD_PATH = "/bin/chmod";
+our $NOHUP_PATH = "nohup";
+our $ZIP_PATH = "/usr/bin/zip";
+
+our $BUCKY_WELCOME_SUBJECT = "WELCOME TO BUCKY";
+our $BUCKY_WELCOME_BODY = <<WORDUP;
+<b>bucky</b> is a bulletin board where you can post comments and upload files (music, video, pics, software, etc). you can share these links with your friends. to start your own post, you can use the "post" link at the top of the screen, or the quickstart form on the <a href="$BUCKY/index/">home page</a>. you can ftp files too if you have to send something large.
+
+hope you find this board useful!!
+
+WORDUP
+