summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-24 11:08:34 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-24 11:08:34 -0400
commit392137b4033793620fcd36d641625b5591b046bf (patch)
treed72c88c8653d76d3b9ae226b374896acee252329 /lib/common.php
parent845db5ec168e26759c79de4f8216d1b54f7c0d8a (diff)
change foreign links flags code to use bitmasks
Zach was doing a lot of integer comparisons on the Foreign_link sync fields. I switched them to use named bitmasks instead. I also switched the semantics of bit 3 to be the opposite of what Zach had -- I find lots of double-negatives in a checkbox to be hard to read. darcs-hash:20080924150834-5ed1f-54cd945f61e43bc06768037c60c1e6180a8feead.gz
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 60c820ee6..015ecd639 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -28,6 +28,13 @@ define('MAX_AVATAR_SIZE', 256 * 1024);
define('NOTICES_PER_PAGE', 20);
+define('FOREIGN_NOTICE_SEND', 1);
+define('FOREIGN_NOTICE_RECV', 2);
+define('FOREIGN_NOTICE_SEND_REPLY', 4);
+
+define('FOREIGN_FRIEND_SEND', 1);
+define('FOREIGN_FRIEND_RECV', 2);
+
define_syslog_variables();
# append our extlib dir as the last-resort place to find libs