. require_once("../inc/forum_db.inc"); require_once("../inc/pm.inc"); require_once("../inc/team.inc"); require_once("../inc/news.inc"); require_once("../inc/text_transform.inc"); define('THREADS_PER_PAGE', 50); // sorting styles define('MODIFIED_NEW', 1); define('MODIFIED_OLD',2); define('VIEWS_MOST',3); define('REPLIES_MOST',4); define('CREATE_TIME_NEW',5); define('CREATE_TIME_OLD',6); define('POST_SCORE',7); // names for the above $thread_sort_styles[CREATE_TIME_OLD] = tra("Oldest first"); $thread_sort_styles[CREATE_TIME_NEW] = tra("Newest first"); $thread_sort_styles[POST_SCORE] = tra("Highest rated posts first"); $forum_sort_styles[MODIFIED_NEW] = tra("Newest post first"); $forum_sort_styles[VIEWS_MOST] = tra("Most views first"); $forum_sort_styles[REPLIES_MOST] = tra("Most posts first"); $forum_sort_styles[CREATE_TIME_NEW] = tra("Newest first"); // values for thread.status define('THREAD_SOLVED', 1); define('AVATAR_WIDTH', 100); define('AVATAR_HEIGHT',100); define('ST_NEW_TIME', 1209600); //3600*24*14 - 14 days define('ST_NEW', 'New member'); define('MAXIMUM_EDIT_TIME',3600); // allow edits of forums posts up till one hour after posting. define('MAX_FORUM_LOGGING_TIME', 2419200); //3600*24*28 - 28 days define('NO_CONTROLS', 0); define('FORUM_CONTROLS', 1); define('HELPDESK_CONTROLS', 2); define("EXCERPT_LENGTH", "120"); define('NEW_IMAGE', 'img/unread_post.png'); define('NEW_IMAGE_STICKY', 'img/unread_sticky.png'); define('NEW_IMAGE_LOCKED', 'img/unread_locked.png'); define('NEW_IMAGE_STICKY_LOCKED', 'img/unread_sticky_locked.png'); define('IMAGE_STICKY', 'img/sticky_post.png'); define('IMAGE_LOCKED', 'img/locked_post.png'); define('IMAGE_HIDDEN', 'img/hidden.png'); define('IMAGE_STICKY_LOCKED', 'img/sticky_locked_post.png'); define('IMAGE_POST', 'img/post.png'); define('NEW_IMAGE_HEIGHT','15'); define('EMPHASIZE_IMAGE', 'img/emphasized_post.png'); define('EMPHASIZE_IMAGE_HEIGHT','15'); define('FILTER_IMAGE', 'img/filtered_post.png'); define('FILTER_IMAGE_HEIGHT','15'); define('RATE_POSITIVE_IMAGE', 'img/rate_positive.png'); define('RATE_POSITIVE_IMAGE_HEIGHT','9'); define('RATE_NEGATIVE_IMAGE', 'img/rate_negative.png'); define('RATE_NEGATIVE_IMAGE_HEIGHT','9'); define('REPORT_POST_IMAGE', 'img/report_post.png'); define('REPORT_POST_IMAGE_HEIGHT','9'); define ('SOLUTION', 'This answered my question'); define ('SUFFERER', 'I also have this question'); define ('OFF_TOPIC', 'Off-topic'); define ('DEFAULT_LOW_RATING_THRESHOLD', -25); define ('DEFAULT_HIGH_RATING_THRESHOLD', 5); // A list of what kind of special users exist define('S_MODERATOR', 0); define('S_ADMIN', 1); define('S_DEV', 2); define('S_TESTER', 3); define('S_VOLUNTEER', 4); define('S_VOLUNTEER_TESTER', 5); define('S_SCIENTIST', 6); $special_user_bitfield[S_MODERATOR]="Volunteer moderator"; $special_user_bitfield[S_ADMIN]="Project administrator"; $special_user_bitfield[S_DEV]="Project developer"; $special_user_bitfield[S_TESTER]="Project tester"; $special_user_bitfield[S_VOLUNTEER]="Volunteer developer"; $special_user_bitfield[S_VOLUNTEER_TESTER]="Volunteer tester"; $special_user_bitfield[S_SCIENTIST]="Project scientist"; // show a banner with search form on left and PM info on right // function show_forum_header($user) { echo "