[ Index ] |
|
Code source de PHP NUKE 7.9 |
1 <?php 2 /*************************************************************************** 3 * constants.php 4 * ------------------- 5 * begin : Saturday', Feb 13', 2001 6 * copyright : ('C) 2001 The phpBB Group 7 * email : support@phpbb.com 8 * 9 * Id: constants.php,v 1.47.2.5 2004/11/18 17:49:42 acydburn Exp 10 * 11 * 12 ***************************************************************************/ 13 14 /*************************************************************************** 15 * 16 * This program is free software; you can redistribute it and/or modify 17 * it under the terms of the GNU General Public License as published by 18 * the Free Software Foundation; either version 2 of the License', or 19 * ('at your option) any later version. 20 * 21 ***************************************************************************/ 22 23 if ( !defined('IN_PHPBB') ) 24 { 25 die("Hacking attempt"); 26 } 27 28 // Debug Level 29 //define('DEBUG', 1); // Debugging on 30 define('DEBUG', 1); // Debugging off 31 // User Levels <- Do not change the values of USER or ADMIN 32 define('DELETED', -1); 33 define('ANONYMOUS', 1); 34 define('USER', 1); 35 define('ADMIN', 2); 36 define('MOD', 3); 37 // User related 38 define('USER_ACTIVATION_NONE', 0); 39 define('USER_ACTIVATION_SELF', 1); 40 define('USER_ACTIVATION_ADMIN', 2); 41 define('USER_AVATAR_NONE', 0); 42 define('USER_AVATAR_UPLOAD', 1); 43 define('USER_AVATAR_REMOTE', 2); 44 define('USER_AVATAR_GALLERY', 3); 45 // Group settings 46 define('GROUP_OPEN', 0); 47 define('GROUP_CLOSED', 1); 48 define('GROUP_HIDDEN', 2); 49 // Forum state 50 define('FORUM_UNLOCKED', 0); 51 define('FORUM_LOCKED', 1); 52 // Topic status 53 define('TOPIC_UNLOCKED', 0); 54 define('TOPIC_LOCKED', 1); 55 define('TOPIC_MOVED', 2); 56 define('TOPIC_WATCH_NOTIFIED', 1); 57 define('TOPIC_WATCH_UN_NOTIFIED', 0); 58 // Topic types 59 define('POST_NORMAL', 0); 60 define('POST_STICKY', 1); 61 define('POST_ANNOUNCE', 2); 62 define('POST_GLOBAL_ANNOUNCE', 3); 63 // SQL codes 64 define('BEGIN_TRANSACTION', 1); 65 if(!defined('END_TRANSACTION')) { 66 define('END_TRANSACTION', 2); 67 } 68 // Error codes 69 define('GENERAL_MESSAGE', 200); 70 define('GENERAL_ERROR', 202); 71 define('CRITICAL_MESSAGE', 203); 72 define('CRITICAL_ERROR', 204); 73 // Private messaging 74 define('PRIVMSGS_READ_MAIL', 0); 75 define('PRIVMSGS_NEW_MAIL', 1); 76 define('PRIVMSGS_SENT_MAIL', 2); 77 define('PRIVMSGS_SAVED_IN_MAIL', 3); 78 define('PRIVMSGS_SAVED_OUT_MAIL', 4); 79 define('PRIVMSGS_UNREAD_MAIL', 5); 80 // URL PARAMETERS 81 define('POST_TOPIC_URL', 't'); 82 define('POST_CAT_URL', 'c'); 83 define('POST_FORUM_URL', 'f'); 84 define('POST_USERS_URL', 'u'); 85 define('POST_POST_URL', 'p'); 86 define('POST_GROUPS_URL', 'g'); 87 // Session parameters 88 define('SESSION_METHOD_COOKIE', 100); 89 define('SESSION_METHOD_GET', 101); 90 // Page numbers for session handling 91 define('PAGE_INDEX', 0); 92 define('PAGE_LOGIN', -1); 93 define('PAGE_SEARCH', -2); 94 define('PAGE_REGISTER', -3); 95 define('PAGE_PROFILE', -4); 96 define('PAGE_VIEWONLINE', -6); 97 define('PAGE_VIEWMEMBERS', -7); 98 define('PAGE_FAQ', -8); 99 define('PAGE_POSTING', -9); 100 define('PAGE_PRIVMSGS', -10); 101 define('PAGE_GROUPCP', -11); 102 define('PAGE_TOPIC_OFFSET', 5000); 103 // Auth settings 104 define('AUTH_LIST_ALL', 0); 105 define('AUTH_ALL', 0); 106 define('AUTH_REG', 1); 107 define('AUTH_ACL', 2); 108 define('AUTH_MOD', 3); 109 define('AUTH_ADMIN', 5); 110 define('AUTH_VIEW', 1); 111 define('AUTH_READ', 2); 112 define('AUTH_POST', 3); 113 define('AUTH_REPLY', 4); 114 define('AUTH_EDIT', 5); 115 define('AUTH_DELETE', 6); 116 define('AUTH_ANNOUNCE', 7); 117 define('AUTH_STICKY', 8); 118 define('AUTH_POLLCREATE', 9); 119 define('AUTH_VOTE', 10); 120 define('AUTH_ATTACH', 11); 121 // Table names 122 define('CONFIRM_TABLE', $prefix.'_bbconfirm'); 123 define('AUTH_ACCESS_TABLE', $prefix.'_bbauth_access'); 124 define('BANLIST_TABLE', $prefix.'_bbbanlist'); 125 define('CATEGORIES_TABLE', $prefix.'_bbcategories'); 126 define('CONFIG_TABLE', $prefix.'_bbconfig'); 127 define('DISALLOW_TABLE', $prefix.'_bbdisallow'); 128 define('FORUMS_TABLE', $prefix.'_bbforums'); 129 define('GROUPS_TABLE', $prefix.'_bbgroups'); 130 define('POSTS_TABLE', $prefix.'_bbposts'); 131 define('POSTS_TEXT_TABLE', $prefix.'_bbposts_text'); 132 define('PRIVMSGS_TABLE', $prefix.'_bbprivmsgs'); 133 define('PRIVMSGS_TEXT_TABLE', $prefix.'_bbprivmsgs_text'); 134 define('PRIVMSGS_IGNORE_TABLE', $prefix.'_bbprivmsgs_ignore'); 135 define('PRUNE_TABLE', $prefix.'_bbforum_prune'); 136 define('RANKS_TABLE', $prefix.'_bbranks'); 137 define('SEARCH_TABLE', $prefix.'_bbsearch_results'); 138 define('SEARCH_WORD_TABLE', $prefix.'_bbsearch_wordlist'); 139 define('SEARCH_MATCH_TABLE', $prefix.'_bbsearch_wordmatch'); 140 define('SESSIONS_TABLE', $prefix.'_bbsessions'); 141 define('SMILIES_TABLE', $prefix.'_bbsmilies'); 142 define('THEMES_TABLE', $prefix.'_bbthemes'); 143 define('THEMES_NAME_TABLE', $prefix.'_bbthemes_name'); 144 define('TOPICS_TABLE', $prefix.'_bbtopics'); 145 define('TOPICS_WATCH_TABLE', $prefix.'_bbtopics_watch'); 146 define('USER_GROUP_TABLE', $prefix.'_bbuser_group'); 147 define('USERS_TABLE', $user_prefix.'_users'); 148 define('WORDS_TABLE', $prefix.'_bbwords'); 149 define('VOTE_DESC_TABLE', $prefix.'_bbvote_desc'); 150 define('VOTE_RESULTS_TABLE', $prefix.'_bbvote_results'); 151 define('VOTE_USERS_TABLE', $prefix.'_bbvote_voters'); 152 153 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 11:11:59 2007 | par Balluche grâce à PHPXref 0.7 |