Verzeichnisstruktur phpBB-2.0.0


Veröffentlicht
03.04.2002

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

constants.php

Zuletzt modifiziert: 09.10.2024, 12:51 - Dateigröße: 5.05 KiB


 001  <?php
 002  /***************************************************************************
 003   *                               constants.php
 004   *                            -------------------
 005   *   begin                : Saturday', Feb 13', 2001
 006   *   copyright            : ('C) 2001 The phpBB Group
 007   *   email                : support@phpbb.com
 008   *
 009   *   $Id$
 010   *
 011   *
 012   ***************************************************************************/
 013   
 014  /***************************************************************************
 015   *
 016   *   This program is free software; you can redistribute it and/or modify
 017   *   it under the terms of the GNU General Public License as published by
 018   *   the Free Software Foundation; either version 2 of the License', or
 019   *   ('at your option) any later version.
 020   *
 021   ***************************************************************************/
 022   
 023  if ( !defined('IN_PHPBB') )
 024  {
 025      die("Hacking attempt");
 026  }
 027   
 028  // Debug Level
 029  //define('DEBUG', 1); // Debugging on
 030  define('DEBUG', 1); // Debugging off
 031   
 032   
 033  // User Levels <- Do not change the values of USER or ADMIN
 034  define('DELETED', -1);
 035  define('ANONYMOUS', -1);
 036   
 037  define('USER', 0);
 038  define('ADMIN', 1);
 039  define('MOD', 2);
 040   
 041   
 042  // User related
 043  define('USER_ACTIVATION_NONE', 0);
 044  define('USER_ACTIVATION_SELF', 1);
 045  define('USER_ACTIVATION_ADMIN', 2);
 046   
 047  define('USER_AVATAR_NONE', 0);
 048  define('USER_AVATAR_UPLOAD', 1);
 049  define('USER_AVATAR_REMOTE', 2);
 050  define('USER_AVATAR_GALLERY', 3);
 051   
 052   
 053  // Group settings
 054  define('GROUP_OPEN', 0);
 055  define('GROUP_CLOSED', 1);
 056  define('GROUP_HIDDEN', 2);
 057   
 058   
 059  // Forum state
 060  define('FORUM_UNLOCKED', 0);
 061  define('FORUM_LOCKED', 1);
 062   
 063   
 064  // Topic status
 065  define('TOPIC_UNLOCKED', 0);
 066  define('TOPIC_LOCKED', 1);
 067  define('TOPIC_MOVED', 2);
 068  define('TOPIC_WATCH_NOTIFIED', 1);
 069  define('TOPIC_WATCH_UN_NOTIFIED', 0);
 070   
 071   
 072  // Topic types
 073  define('POST_NORMAL', 0);
 074  define('POST_STICKY', 1);
 075  define('POST_ANNOUNCE', 2);
 076  define('POST_GLOBAL_ANNOUNCE', 3);
 077   
 078   
 079  // SQL codes
 080  define('BEGIN_TRANSACTION', 1);
 081  define('END_TRANSACTION', 2);
 082   
 083   
 084  // Error codes
 085  define('GENERAL_MESSAGE', 200);
 086  define('GENERAL_ERROR', 202);
 087  define('CRITICAL_MESSAGE', 203);
 088  define('CRITICAL_ERROR', 204);
 089   
 090   
 091  // Private messaging
 092  define('PRIVMSGS_READ_MAIL', 0);
 093  define('PRIVMSGS_NEW_MAIL', 1);
 094  define('PRIVMSGS_SENT_MAIL', 2);
 095  define('PRIVMSGS_SAVED_IN_MAIL', 3);
 096  define('PRIVMSGS_SAVED_OUT_MAIL', 4);
 097  define('PRIVMSGS_UNREAD_MAIL', 5);
 098   
 099   
 100  // URL PARAMETERS
 101  define('POST_TOPIC_URL', 't');
 102  define('POST_CAT_URL', 'c');
 103  define('POST_FORUM_URL', 'f');
 104  define('POST_USERS_URL', 'u');
 105  define('POST_POST_URL', 'p');
 106  define('POST_GROUPS_URL', 'g');
 107   
 108  // Session parameters
 109  define('SESSION_METHOD_COOKIE', 100);
 110  define('SESSION_METHOD_GET', 101);
 111   
 112   
 113  // Page numbers for session handling
 114  define('PAGE_INDEX', 0);
 115  define('PAGE_LOGIN', -1);
 116  define('PAGE_SEARCH', -2);
 117  define('PAGE_REGISTER', -3);
 118  define('PAGE_PROFILE', -4);
 119  define('PAGE_VIEWONLINE', -6);
 120  define('PAGE_VIEWMEMBERS', -7);
 121  define('PAGE_FAQ', -8);
 122  define('PAGE_POSTING', -9);
 123  define('PAGE_PRIVMSGS', -10);
 124  define('PAGE_GROUPCP', -11);
 125  define('PAGE_TOPIC_OFFSET', 5000);
 126   
 127   
 128  // Auth settings
 129  define('AUTH_LIST_ALL', 0);
 130  define('AUTH_ALL', 0);
 131   
 132  define('AUTH_REG', 1);
 133  define('AUTH_ACL', 2);
 134  define('AUTH_MOD', 3);
 135  define('AUTH_ADMIN', 5);
 136   
 137  define('AUTH_VIEW', 1);
 138  define('AUTH_READ', 2);
 139  define('AUTH_POST', 3);
 140  define('AUTH_REPLY', 4);
 141  define('AUTH_EDIT', 5);
 142  define('AUTH_DELETE', 6);
 143  define('AUTH_ANNOUNCE', 7);
 144  define('AUTH_STICKY', 8);
 145  define('AUTH_POLLCREATE', 9);
 146  define('AUTH_VOTE', 10);
 147  define('AUTH_ATTACH', 11);
 148   
 149   
 150  // Table names
 151  define('CONFIRM_TABLE', $table_prefix.'confirm');
 152  define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
 153  define('BANLIST_TABLE', $table_prefix.'banlist');
 154  define('CATEGORIES_TABLE', $table_prefix.'categories');
 155  define('CONFIG_TABLE', $table_prefix.'config');
 156  define('DISALLOW_TABLE', $table_prefix.'disallow');
 157  define('FORUMS_TABLE', $table_prefix.'forums');
 158  define('GROUPS_TABLE', $table_prefix.'groups');
 159  define('POSTS_TABLE', $table_prefix.'posts');
 160  define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
 161  define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
 162  define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
 163  define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
 164  define('PRUNE_TABLE', $table_prefix.'forum_prune');
 165  define('RANKS_TABLE', $table_prefix.'ranks');
 166  define('SEARCH_TABLE', $table_prefix.'search_results');
 167  define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
 168  define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
 169  define('SESSIONS_TABLE', $table_prefix.'sessions');
 170  define('SESSIONS_KEYS_TABLE', $table_prefix.'sessions_keys');
 171  define('SMILIES_TABLE', $table_prefix.'smilies');
 172  define('THEMES_TABLE', $table_prefix.'themes');
 173  define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
 174  define('TOPICS_TABLE', $table_prefix.'topics');
 175  define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
 176  define('USER_GROUP_TABLE', $table_prefix.'user_group');
 177  define('USERS_TABLE', $table_prefix.'users');
 178  define('WORDS_TABLE', $table_prefix.'words');
 179  define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
 180  define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
 181  define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
 182   
 183  ?>