2001-03-09 23:33:06 +00:00
|
|
|
<?php
|
2001-04-18 06:26:01 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* includes.php
|
|
|
|
* -------------------
|
|
|
|
* begin : Saturday, Feb 13, 2001
|
|
|
|
* copyright : (C) 2001 The phpBB Group
|
|
|
|
* email : support@phpbb.com
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2001-03-09 23:33:06 +00:00
|
|
|
|
|
|
|
|
2001-04-18 06:26:01 +00:00
|
|
|
/***************************************************************************
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2001-03-09 23:33:06 +00:00
|
|
|
|
|
|
|
// Constants
|
|
|
|
// Debug Level
|
|
|
|
define(DEBUG, 1); // Debugging on
|
|
|
|
//define(DEBUG, 0); // Debugging off
|
|
|
|
|
|
|
|
// User Levels
|
|
|
|
define(ADMIN, 4);
|
|
|
|
define(SUPERMOD, 3);
|
|
|
|
define(MODERATOR, 2);
|
|
|
|
define(USER, 1);
|
|
|
|
define(DELETED, -1);
|
|
|
|
define(ANONYMOUS, -1);
|
|
|
|
|
|
|
|
// Forum access levels
|
|
|
|
define(PUBLIC, 1);
|
|
|
|
define(PRIVATE, 2);
|
|
|
|
|
|
|
|
// Forum posting levels
|
|
|
|
define(ANONALLOWED, 2);
|
|
|
|
define(REGONLY, 1);
|
|
|
|
define(MODONLY, 3);
|
|
|
|
|
|
|
|
// Topic state
|
|
|
|
define(UNLOCKED, 0);
|
|
|
|
define(LOCKED, 1);
|
|
|
|
|
|
|
|
// Ban time types
|
|
|
|
define(SECONDS, 1);
|
|
|
|
define(MINUTES, 2);
|
|
|
|
define(HOURS, 3);
|
|
|
|
define(DAYS, 4);
|
|
|
|
define(YEARS, 5);
|
|
|
|
|
|
|
|
// Error codes
|
|
|
|
define(SQL_CONNECT, 1);
|
|
|
|
define(BANNED, 2);
|
|
|
|
define(QUERY_ERROR, 3);
|
|
|
|
define(SESSION_CREATE, 4);
|
|
|
|
define(NO_TOPICS, 5);
|
|
|
|
define(GENERAL_ERROR, 6);
|
|
|
|
define(LOGIN_FAILED, 7);
|
|
|
|
|
|
|
|
// URL PARAMETERS
|
|
|
|
define(POST_TOPIC_URL, 't');
|
|
|
|
define(POST_FORUM_URL, 'f');
|
|
|
|
define(POST_USERS_URL, 'u');
|
|
|
|
|
2001-03-21 23:25:03 +00:00
|
|
|
// Session parameters
|
2001-05-06 12:34:04 +00:00
|
|
|
define(SESSION_METHOD_COOKIE, 100);
|
|
|
|
define(SESSION_METHOD_GET, 101);
|
2001-03-21 23:25:03 +00:00
|
|
|
|
2001-04-15 14:14:56 +00:00
|
|
|
// Page numbers for session handling
|
|
|
|
define(PAGE_INDEX, 0);
|
|
|
|
define(PAGE_LOGIN, -1);
|
|
|
|
define(PAGE_SEARCH, -2);
|
|
|
|
define(PAGE_REGISTER, -3);
|
|
|
|
define(PAGE_PROFILE, -4);
|
|
|
|
define(PAGE_VIEWONLINE, -6);
|
|
|
|
define(PAGE_VIEWMEMBERS, -7);
|
|
|
|
define(PAGE_FAQ, -8);
|
2001-04-18 06:26:01 +00:00
|
|
|
define(PAGE_POSTING, -9);
|
2001-04-15 14:14:56 +00:00
|
|
|
|
2001-03-09 23:33:06 +00:00
|
|
|
define('BANLIST_TABLE', $table_prefix.'banlist');
|
2001-03-19 10:56:12 +00:00
|
|
|
define('CATEGORIES_TABLE', $table_prefix.'categories');
|
2001-03-09 23:33:06 +00:00
|
|
|
define('CONFIG_TABLE', $table_prefix.'config');
|
|
|
|
define('DISALLOW_TABLE', $table_prefix.'disallow');
|
|
|
|
define('FORUM_ACCESS_TABLE', $table_prefix.'forum_access');
|
|
|
|
define('FORUM_MODS_TABLE', $table_prefix.'forum_mods');
|
|
|
|
define('FORUMS_TABLE', $table_prefix.'forums');
|
|
|
|
define('POSTS_TABLE', $table_prefix.'posts');
|
|
|
|
define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
|
|
|
|
define('PRIV_MSGS_TABLE', $table_prefix.'priv_msgs');
|
|
|
|
define('RANKS_TABLE', $table_prefix.'ranks');
|
2001-03-21 23:25:03 +00:00
|
|
|
define('SESSIONS_TABLE', $table_prefix.'session');
|
2001-05-02 22:31:56 +00:00
|
|
|
define('SESSIONS_KEY_TABLE', $table_prefix.'session_keys');
|
2001-03-09 23:33:06 +00:00
|
|
|
define('THEMES_TABLE', $table_prefix.'themes');
|
|
|
|
define('TOPICS_TABLE', $table_prefix.'topics');
|
|
|
|
define('USERS_TABLE', $table_prefix.'users');
|
|
|
|
define('WORDS_TABLE', $table_prefix.'words');
|
|
|
|
|
2001-05-02 22:31:56 +00:00
|
|
|
?>
|